Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nazanin1369/xmlparser
DomParser and SAXParser Java implementation
https://github.com/nazanin1369/xmlparser
Last synced: 26 days ago
JSON representation
DomParser and SAXParser Java implementation
- Host: GitHub
- URL: https://github.com/nazanin1369/xmlparser
- Owner: Nazanin1369
- Created: 2014-05-30T01:57:59.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-08-31T23:39:27.000Z (about 9 years ago)
- Last Synced: 2024-04-16T20:08:30.869Z (7 months ago)
- Language: Java
- Homepage:
- Size: 148 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## XMLPARSER
DomParser and SAXParser Java implementation.
####XML Parsing in Java
XMLParser is the abstract base class for the XML parser for Java. An instantiated parser invokes the parse() method to read an XML document.
XMLDOMImplementation factory methods provide another method to parse Binary XML to create scalable DOM.
The following APIs provide a Java application with access to a parsed XML document:
* DOM API, which parses XML documents and builds a tree representation of the documents in memory. Use either a DOMParser object to parse with DOM or the XMLDOMImplementation interface factory methods to create a pluggable, scalable DOM.
* SAX API, which processes an XML document as a stream of events, which means that a program cannot access random locations in a document. Use a SAXParser object to parse with SAX.
* JAXP, which is a Java-specific API that supports DOM, SAX, and XSL. Use a DocumentBuilder or SAXParser object to parse with JAXP.
####Directory Structure
* DOMParser.java
* SAXParser.java### How to run?
javac *.java
java DOMParser
//or
java SAXParser