XML Parser: Parser is a program part which represents the physical form of a data and converts it into storage form for the program. The one which reads XML Data in a XML file is referred to as XML Parser. Until unless the code is copied as a unit block blindly, every XML program should call the XML Parser.
The world working in XML with Java is not alphabet soup of acronyms such as DOM, JDOM, JAXP and so on. One of the frequently used JavaXML Parsers is
JAXP
whcih stands for Java API for XML Processing that describes the standards for the XML API's that are included in Java SE like:
DOM : Document Object Model defines a set of interfaces to the parsed version of an XML document. The parser reads in the entire document and builds an in-memory tree.
DOM is platform browser and language neutral. It does not assume anything about what platform is running on what browser turning on and there are several language implementations of the DOM that can be used to work with. One of the most common languages that people work with the DOM is JavaScript.
JDOM :
Java-based Document Object Model parses the XML document same as DOM but in easier manner.
Schemas give the capacity to characterize a component’s sort and much better limitations . DTDs uphold a strict requesting of components; constructions have a more adaptable scope of alternatives. At long last schema’s are composed in XML, while DTDs have their own particular syntax.
SAX : The
Simple API for XML defines the events and interfaces used to interact with a SAX-compliant XML parser.
StAX :
Streaming API for XML is a pull process where only data is looked and only call methods that are meaningful.
XPATH :
XML Path Language defines locations for XML documents which can be used in XSLT style sheets.
JAXB :
Java Architecture for XML Binding minimizes access to an XML document from a Java program by presenting the XML document to the program in a Java format.