|
(Deepak Vohra) We all use XML for data exchange in enterprise applications. The DOM Level 3 Load and Save specification provides a standard mechanism for loading and saving (serializing) an XML document. As specified in the DOM Level 3 Load and Save specification, "This specification defines the Document Object Model Load and Save Level 3, a platform- and language-neutral interface that allows programs and scripts to dynamically load the content of an XML document into a DOM document and serialize a DOM document into an XML document." The Java API for XML Parsing (JAXP) DocumentBuilder class also provides a standard method to create a parser and load an XML document, but this is specific to the Java language. The DOM 3 Load and Save API may be implemented in any language. JAXP also provides the Transformer API to serialize an XML document. In addition to facilitating the loading and saving of an XML document, the DOM 3 Load and Save provides event handling and filtering of XML documents as the document is parsed or serialized. This article illustrates these new features, which should result in increased portability of DOM applications. |