|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinfo.aduna.xml.DocumentUtil
public class DocumentUtil
Utilities to make working with DOM documents easier.
| Constructor Summary | |
|---|---|
DocumentUtil()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentUtil()
| Method Detail |
|---|
public static Document getDocument(URL location)
throws IOException
location - the location of an XML document
IOException - 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 namespaces
IOException - 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 against
IOException - when there was a problem retrieving or parsing the document.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||