JAXP
JAXP is the Java API for XML Processing. It is one of the Java XML programming APIs which offers the potentiality of parsing and validating XML documents. It has three basic parsing interfaces listed below:
The DOM interfaces also known as the Document Object Model parsing interface.
The SAX interface also known as Simple API for XML parsing interface.
The StAX interface also known as Streaming API for XML.
In addition to the parsing interfaces, the API provides an XSLT interface to render data and structural transformations on an XML document.
a) The DOM interface
The DOM interface parses an entire XML document and builds a complete in memory representation of the document. The DOM parser is known as a DocumentBuilder, as it constructs an in memory Document representation. Many different types of tree nodes, representing the data type in an XML document. Some of them are listed below:
Element nodes represent attributes.
Text nodes represent the text found between the start and end tags of a document element.
b) SAX interface The SAX parser is known as the SAXParser and is generated by the javax.xml.parsers.SAXParserFactory. The SAX parser does not generate an in memory representation of the XML document and thus it is faster and utilizes less memory.
It informs clients of the XML document structure by evoking callbacks, by invoking methods on a org.xml.sax.helpers. This way of r gain access to document is known as Streaming XML.
c) StAX interface
StAX interface was planned as a median between the DOM and SAX interface. The programmatic entry point is a cursor, in its metaphor, that represents a point within the document. The application moves the cursor forward and thus pulling the information from the parser as required. This is entirely different from SAX, which pushes data to the application .
Java Assignment Help - Java Homework Help
Struggling with java programming language? Are you not finding solution for your java homework and assignments? Live java experts are working for students by solving their doubts & questions during their course studies and training program. We at Expertsmind.com offer java homework help, java assignment help and Java projects help anytime from anywhere for 24x7 hours. Computer science programming assignments help making life easy for students.
ExpertsMind.com - the Java API for XML Processing Assignment Help, the Java API for XML Processing Homework Help, the Java API for XML Processing Assignment Tutors, the Java API for XML Processing Solutions, the Java API for XML Processing Answers, Java SE Platform Assignment Tutors