public class XmlUtils extends Object
| Constructor and Description |
|---|
XmlUtils() |
| Modifier and Type | Method and Description |
|---|---|
static DocumentBuilder |
documentBuilder() |
static Document |
parse(File f) |
static Document |
parse(File f,
ErrorHandler errorHandler) |
static Document |
parse(InputStream stream) |
static Document |
parse(String uri) |
static void |
transform(Source xmlSource,
Result outputTarget) |
static void |
transform(Source xsltSource,
Source xmlSource,
Result outputTarget) |
static Transformer |
transformer() |
static XMLReader |
xmlReader() |
public static Document parse(String uri) throws TransformerException, IOException, SAXException, ParserConfigurationException
public static Document parse(InputStream stream) throws TransformerException, IOException, SAXException, ParserConfigurationException
public static Document parse(File f) throws TransformerException, IOException, SAXException, ParserConfigurationException
public static Document parse(File f, ErrorHandler errorHandler) throws TransformerException, IOException, SAXException, ParserConfigurationException
public static void transform(Source xmlSource, Result outputTarget) throws TransformerException
TransformerExceptionpublic static void transform(Source xsltSource, Source xmlSource, Result outputTarget) throws TransformerException
TransformerExceptionpublic static XMLReader xmlReader() throws ParserConfigurationException, SAXException
public static DocumentBuilder documentBuilder() throws ParserConfigurationException
ParserConfigurationExceptionpublic static Transformer transformer() throws TransformerConfigurationException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.