Using the XML Writer in Append Mode

The XML writer can be used to assemble XML documents. Very large datasets may be assembled by appending XML fragments to the root element. The fragments and root element are identified via two special feature type definitions:

  1. XML_ROOT_ELEMENT, and
  2. XML_FRAGMENT

The XML_ROOT_ELEMENT holds the "wrapper" element. The first attribute whose type is "xml_xml" will be the attribute holding the fragment representing the root element for the output document.

The XML_FRAGMENT holds the xml fragments that are to be appended to the root document. Any attribute with the "xml_xml" in the XML_FRAGMENT feature type definition will be appended. If there are multiple "xml_xml" attribute in the fragment, then these will be appended sequentially in the order listed.

Note  The XSD output is suppressed if either the XML_ROOT_ELEMENT or the XML_FRAGMENT DEF_LINES are present.