An apparatus for and method of accommodating an XML document within a data
base management system. The XML document is parsed on an
element-by-element basis into an acceptable format for use by a data base
management system by information contained in an XML mapping tree. Each
element may be accompanied by appropriate attributes. The tree may be
saved for future use. The XML document may be defined by a Document Type
Definition (DTD).