public class Parser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
validate
Validate XML
|
Constructor and Description |
---|
Parser()
Constructor
|
Parser(boolean validateFlag)
Constructor
|
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Document |
makeDocument(java.net.URL url,
org.xml.sax.EntityResolver resolver)
Make document
|
static org.w3c.dom.Document |
makeDocument(java.net.URL in,
java.net.URL xslt,
org.xml.sax.EntityResolver resolver)
Document
|
private javax.xml.parsers.DocumentBuilder |
makeDocumentBuilder()
Make Document builder
|
public Parser()
public Parser(boolean validateFlag)
validateFlag
- validate flagpublic org.w3c.dom.Document makeDocument(java.net.URL url, org.xml.sax.EntityResolver resolver) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException
url
- in data urlresolver
- entity resolverjava.io.IOException
- exceptionorg.xml.sax.SAXException
- exceptionjavax.xml.parsers.ParserConfigurationException
- exceptionprivate javax.xml.parsers.DocumentBuilder makeDocumentBuilder() throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException
- exceptionpublic static org.w3c.dom.Document makeDocument(java.net.URL in, java.net.URL xslt, org.xml.sax.EntityResolver resolver)
in
- in data urlxslt
- xslt urlresolver
- entity resolver, null if none