Data Request Broker
2-3-release

Package fr.gael.drb.impl.xml

Implementation of DRB for the support of XML documents.

See:
          Description

Class Summary
XmlDocument DOM Document
XmlFactory Factory of XML nodes.
XmlNode XML node implementation.
XmlString Process character conversion on string.
XmlWriter Writer of XML nodes.
XmlWriter.Context The dynamic context.
 

Package fr.gael.drb.impl.xml Description

Implementation of DRB for the support of XML documents.

DRB API® XML implementation is wrapping XML documents through Document Object Model - DOM API. It loads the data file content and build the tree-structure in memory before processing. This will allow efficient operations on the whole file. Nevertheless, processing is slowed down by the fact that DOM API imposes to keep the whole document in memory. Therefore, when XML document is larger than 512 Kbytes, DRB API® XML implementation is mapping XML documents through Simple API for XML - SAX. SAX API browses XML document page after page, loading offset index in memory. This event driven approach is useful for large documents in which the program only needs to process a small portion of the document.

Both API's are included in Xerces Parser, today included natively in the Java distributions. DRB API® calls associated functions in the JDK through Java API for XML Processing - JAXP which embeds it. The XmlFactory calls packages org.w3c.dom and org.xml.sax.

The fr.gael.drb.impl.xml package contains all classes corresponding to interfaces settled in fr.gael.drb package. It represents the XML document as a file node composed of a tree of XML nodes and attributes. Other XML information items such as comments, processing instructions are discarded.


Data Request Broker - DRB API®
2-3-release

Copyright© 2001-2009 GAEL Consultant. All rights reserved. Use is subject to license terms .