Package com.sun.xml.ws.test.util
Class XMLUtil
java.lang.Object
com.sun.xml.ws.test.util.XMLUtil
- Author:
- lukas
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetAttributeOrDefault(Element e, String attrName, String def) static StringgetAttributeOrNull(Element e, String attrName) static <T> List<T> getChildren(Node n, Class<T> cls) getElements(Node node, String xpath) static StringgetTextFrom(Node n) static StringgetTextFrom(Node n, String xpath) static Documentstatic voidwriteXML(Document doc, OutputStream os)
-
Method Details
-
readXML
public static Document readXML(File f, URL schemaUrl) throws ParserConfigurationException, SAXException, IOException -
writeXML
- Throws:
TransformerException
-
getElements
- Throws:
IOException
-
getChildren
-
getTextFrom
-
getTextFrom
- Throws:
IOException
-
getAttributeOrNull
-
getAttributeOrDefault
-