public class XmlDomParser extends Object
Modifier and Type | Method and Description |
---|---|
static Document |
parse(InputSource xml,
boolean namespaceAware) |
static Document |
parse(InputStream stream) |
static Document |
parse(Path xml) |
static Document |
parse(String xmlContents) |
public static Document parse(Path xml) throws IOException, SAXException
IOException
SAXException
public static Document parse(String xmlContents) throws IOException, SAXException
IOException
SAXException
public static Document parse(InputStream stream) throws IOException, SAXException
IOException
SAXException
public static Document parse(InputSource xml, boolean namespaceAware) throws IOException, SAXException
IOException
SAXException