public class TestXmlParser extends Object
It reads a file as a resource and parses it as an XML file.
http://stackoverflow.com/questions/9429037/getting-encoding-type-of-a-xml-in-java
https://commons.apache.org/proper/commons-io/javadocs/api-2.4/org/apache/commons/io/input/XmlStreamReader.html
| Modifier and Type | Class and Description |
|---|---|
protected class |
TestXmlParser.MyHandler |
| Constructor and Description |
|---|
TestXmlParser() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Main driver.
|
protected void |
runParser()
Carries out the actual parsing.
|
public TestXmlParser()
protected void runParser()
FileInputStream,
SAXParserFactory,
SAXParser,
XMLStreamReaderCopyright © 2017. All rights reserved.