![]() In the DOM approach, the parser creates a tree of objects that represents the content and organization of data in the document. For example, it can't update the data in memory and return the updated data to the XML file. The application can take action on the data as it gets it from the parser, but it can't do any in-memory manipulation of the data. In the SAX approach, the parser starts at the beginning of the document and passes each piece of the document to the application in the sequence it finds it. The parsed content is then made available to the application. Java developers can invoke a SAX or DOM parser in an application through the JAXP API to parse an XML document - that is, scan the document and logically break it up into discrete pieces. ![]() A new Java API called Java Architecture for XML Binding (JAXB) can make it easier to access XML documents from applications written in the Java programming language. XML and Java technology are recognized as ideal building blocks for developing Web services and applications that access Web services.
0 Comments
Leave a Reply. |