But in the case of DOM parsing it will load all the nodes and make the tree model. Please correct me If I am wrong or explain to me event-based and tree model in a simpler manner. Using a SAX parser implies you need to handle these events and make sense of the data returned with each event.
In DOM, there are no events triggered while parsing.
From what I have understood, event-based means some kind of event happens to the node.
Like when one clicks a particular node it will give all the sub nodes rather than loading all the nodes at the same time.
The request and response can be marshalled and unmarshalled to/from Java object using JAXB.
The W3C's XML 1.0 Specification It is a textual data format with strong support via Unicode for different human languages.
The entire XML is parsed and a DOM tree (of the nodes in the XML) is generated and returned.
Once parsed, the user can navigate the tree to access the various data previously embedded in the various nodes in the XML.
Although the design of XML focuses on documents, the language is widely used for the representation of arbitrary data structures such as those used in web services.
Several schema systems exist to aid in the definition of XML-based languages, while programmers have developed many application programming interfaces (APIs) to aid the processing of XML data. XML-based formats have become the default for many office-productivity tools, including Microsoft Office (Office Open XML), Open and Libre Office (Open Document), and Apple's i Work. Apple has an implementation of a registry based on XML.