public class XmlFunctions extends Object
| Constructor and Description |
|---|
XmlFunctions() |
| Modifier and Type | Method and Description |
|---|---|
static Document |
parse(File xmlFile)
parse.
|
static Document |
parse(String xmlString)
Parse a string containing XML.
|
static String |
toString(Document document)
Convert XML DOM document to a string.
|
static void |
validate(URL schemaFile,
Document xmlDocument)
Validate a XML-
Document against a XSD-SchemaFile. |
public static Document parse(String xmlString)
xmlString - the XML stringpublic static String toString(Document document)
document - XML DOM documentTransformerException - if any.public static void validate(URL schemaFile, Document xmlDocument) throws SAXException, IOException
Document against a XSD-SchemaFile.schemaFile - the XSD-URL.xmlDocument - the XML-Document.SAXException - if there is an validation error.IOException - if unable to access the files.Copyright © 2015 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK). All rights reserved.