public class DocumentUtil extends Object
| Constructor and Description |
|---|
DocumentUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Document |
getDocument(URL location)
Create a Document representing the XML file at the specified location.
|
static Document |
getDocument(URL location,
boolean validating,
boolean namespaceAware)
Create a Document representing the XML file at the specified location.
|
static Document |
getDocument(URL location,
Schema schema)
Create a Document representing the XML file at the specified location.
|
public static Document getDocument(URL location) throws IOException
location - the location of an XML documentIOException - when there was a problem retrieving or parsing the document.public static Document getDocument(URL location, boolean validating, boolean namespaceAware) throws IOException
location - the location of an XML documentvalidating - whether the XML parser used in the construction of the document should validate the XMLnamespaceAware - whether the XML parser used in the construction of the document should be aware of
namespacesIOException - when there was a problem retrieving or parsing the document.public static Document getDocument(URL location, Schema schema) throws IOException
location - the location of an XML documentschema - a Schama instance to validate againstIOException - when there was a problem retrieving or parsing the document.Copyright © 2015-2021 Eclipse Foundation. All Rights Reserved.