only after it has parsed the whole document. However, once the document has been created in memory, it can be navigated and changed. A DOM parser would be a
Event-based parsing
These parsers process the document as it encounters the tags of the document. It is a
The most popular XML parsers on the market is the Apache XML Project’s Xerces. The parsers provides XML parsing and generation, and are
Another parser is IBM’s XML Parser for Java (XML4J and XML4C). The XML4J is a validating XML parser written in 100% pure Java, whereas XML4C is a validating XML parser written for C++. It provides classes for parsing, generating, manipulating, and validating XML documents. Both parsers are support the XML
1.0Recommendation and associated standards (DOM 1.0, SAX 1.0, DOM 2.0). XML4J contains implementations of the DOM Level 2, the SAX Level 2 implementations, and parts of W3C schema, but these are experimental at this stage. XML4C is supported on most operating systems including AIX and Linux.
Both parsers are open source and have the same code base, where the XML4J parser has the latest code enhancements, while Xerces has been through production level testing.
2.2 DTD and XML Schema
DTDs and XML Schema are both used to describe structured information, however, in the last two years acceptance of XML Schema has gained momentum. Both DTDs and schemas are building blocks for XML documents and consists of elements, tags, attributes, and entities
XML Schemas evolved to overcome limitations in DTDs. W3C has three documents published, the latest update being in May 2001:
Chapter 2. Technologies in XML 19