public class XmlFunctions
extends java.lang.Object
| Constructor and Description |
|---|
XmlFunctions() |
| Modifier and Type | Method and Description |
|---|---|
static org.w3c.dom.Document |
parse(java.io.File xmlFile)
parse.
|
static org.w3c.dom.Document |
parse(java.lang.String xmlString)
Parse a string containing XML.
|
static java.lang.String |
toString(org.w3c.dom.Document document)
Convert XML DOM document to a string.
|
static void |
validate(java.net.URL schemaFile,
org.w3c.dom.Document xmlDocument)
Validate a XML-
Document against a XSD-SchemaFile. |
public static org.w3c.dom.Document parse(java.lang.String xmlString)
xmlString - the XML stringpublic static org.w3c.dom.Document parse(java.io.File xmlFile)
parse.
xmlFile - a File object.Document object.public static java.lang.String toString(org.w3c.dom.Document document)
document - XML DOM documentpublic static void validate(java.net.URL schemaFile,
org.w3c.dom.Document xmlDocument)
throws org.xml.sax.SAXException,
java.io.IOException
Document against a XSD-SchemaFile.schemaFile - the XSD-URL.xmlDocument - the XML-Document.org.xml.sax.SAXException - if there is an validation error.java.io.IOException - if unable to access the files.