Skip navigation links
com.bea.wcp.diameter.util
Class XmlUtils
java.lang.Object
com.bea.wcp.diameter.util.XmlUtils
-
public class XmlUtils
- extends Object
Miscellaneous utility methods for handling XML documents.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlUtils
public XmlUtils()
getElement
public static Element getElement(Element e,
String path)
getElements
public static List getElements(Element e,
String path)
getChild
public static Element getChild(Element e,
String tagName)
getChildren
public static List getChildren(Element e,
String tagName)
getTextValue
public static String getTextValue(Element e)
setTextValue
public static void setTextValue(Element e,
String s)
removeChildren
public static void removeChildren(Element e)
createTextElement
public static Element createTextElement(Document doc,
String name,
String value)
parse
public static Document parse(File file)
throws SAXException,
IOException
-
- Throws:
SAXException
IOException
parse
public static Document parse(URL url)
throws IOException,
SAXException
-
- Throws:
IOException
SAXException
parse
public static Document parse(InputStream is)
throws SAXException,
IOException
-
- Throws:
SAXException
IOException
newDocumentBuilder
public static DocumentBuilder newDocumentBuilder()
newDocument
public static Document newDocument()
toByteArray
public static byte[] toByteArray(Node node)
throws TransformerException
-
- Throws:
TransformerException
toString
public static String toString(Node node)
throws TransformerException
-
- Throws:
TransformerException
newTransformer
public static Transformer newTransformer()
throws TransformerException
-
- Throws:
TransformerException
Skip navigation links
Copyright © 2012 Oracle Corporation. All Rights Reserved.