|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ow2.util.xml.DocumentParser
public final class DocumentParser
Allows to parse an xml file.
| Method Summary | |
|---|---|
static org.w3c.dom.Document |
getDocument(org.xml.sax.InputSource inputSource,
boolean isValidating,
org.xml.sax.EntityResolver entityResolver)
Builds a new Document for a given xml file. |
static org.w3c.dom.Document |
getDocument(org.xml.sax.InputSource inputSource,
boolean isValidating,
org.xml.sax.EntityResolver entityResolver,
java.util.Collection<java.lang.String> schemaLocations)
Builds a new Document for a given xml file. |
static org.w3c.dom.Document |
getDocument(java.io.InputStream stream,
boolean isValidating,
org.xml.sax.EntityResolver entityResolver)
Builds a new Document for a given xml file. |
static org.w3c.dom.Document |
getDocument(java.net.URL url,
boolean isValidating,
org.xml.sax.EntityResolver entityResolver)
Builds a new Document for a given xml file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static org.w3c.dom.Document getDocument(java.net.URL url,
boolean isValidating,
org.xml.sax.EntityResolver entityResolver)
throws DocumentParserException
url - the URL of the the XML file.isValidating - validate or not the xml file ?entityResolver - the entityResolver used to validate document (if
validating = true)
DocumentParserException - if creating of builder fails or parsing
fails.
public static org.w3c.dom.Document getDocument(java.io.InputStream stream,
boolean isValidating,
org.xml.sax.EntityResolver entityResolver)
throws DocumentParserException
stream - the InputStream of the XML file.isValidating - validate or not the xml file ?entityResolver - the entityResolver used to validate document (if
validating = true)
DocumentParserException - if creating of builder fails or parsing
fails.
public static org.w3c.dom.Document getDocument(org.xml.sax.InputSource inputSource,
boolean isValidating,
org.xml.sax.EntityResolver entityResolver)
throws DocumentParserException
inputSource - the InputSource of the XML file.isValidating - validate or not the xml file ?entityResolver - the entityResolver used to validate document (if
validating = true)
DocumentParserException - if creating of builder fails or parsing
fails.
public static org.w3c.dom.Document getDocument(org.xml.sax.InputSource inputSource,
boolean isValidating,
org.xml.sax.EntityResolver entityResolver,
java.util.Collection<java.lang.String> schemaLocations)
throws DocumentParserException
inputSource - the InputSource of the XML file.isValidating - validate or not the xml file ?entityResolver - the entityResolver used to validate document (if
validating = true)schemaLocations - the list of external schemaLocation to force (if
validating = true)
DocumentParserException - if creating of builder fails or parsing
fails.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||