Package com.bea.wcp.diameter.util
Class XmlUtils
java.lang.Object
com.bea.wcp.diameter.util.XmlUtils
Miscellaneous utility methods for handling XML documents.
- Author:
- Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ElementcreateTextElement(Document doc, String name, String value) static Elementstatic ListgetChildren(Element e, String tagName) static ElementgetElement(Element e, String path) static ListgetElements(Element e, String path) static Stringstatic Documentstatic DocumentBuilderstatic Transformerstatic Documentstatic Documentparse(InputStream is) static Documentstatic voidstatic voidsetTextValue(Element e, String s) static byte[]toByteArray(Node node) static String
-
Constructor Details
-
XmlUtils
public XmlUtils()
-
-
Method Details
-
getElement
-
getElements
-
getChild
-
getChildren
-
getTextValue
-
setTextValue
-
removeChildren
-
createTextElement
-
parse
- Throws:
SAXExceptionIOException
-
parse
- Throws:
IOExceptionSAXException
-
parse
- Throws:
SAXExceptionIOException
-
newDocumentBuilder
-
newDocument
-
toByteArray
- Throws:
TransformerException
-
toString
- Throws:
TransformerException
-
newTransformer
- Throws:
TransformerException
-