public class XmlUtil extends Object
| Constructor and Description |
|---|
XmlUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Document |
parseXmlFileToDom(File file)
Parses an xml file to the corresponding DOM.
|
static Document |
parseXmlStreamToDom(InputStream stream)
Parses an xml inputstream to the corresponding DOM.
|
public static Document parseXmlFileToDom(File file) throws SAXException, IOException, ParserConfigurationException
file - the file (xml) to parseDocument according to theIOException - thrown if input File cannot be foundSAXException - thrown if input file is not a valid xml documentParserConfigurationException - thrown if document builder is configured wrongpublic static Document parseXmlStreamToDom(InputStream stream) throws SAXException, IOException, ParserConfigurationException
stream - the inputstream (xml) to parseDocument according to theIOException - thrown if input File cannot be foundSAXException - thrown if input file is not a valid xml documentParserConfigurationException - thrown if document builder is configured wrongCopyright © 2018 DevonFw. All rights reserved.