public final class DocumentParser extends Object
| Modifier and Type | Method and Description |
|---|---|
static Document |
getDocument(URL url,
boolean isValidating,
EntityResolver entityResolver)
Builds a new Document for a given xml file.
|
public static Document getDocument(URL url, boolean isValidating, 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.Copyright © 2007-2013 OW2 Consortium. All Rights Reserved.