Package com.sun.xml.ws.util
Class DOMUtil
- java.lang.Object
-
- com.sun.xml.ws.util.DOMUtil
-
public class DOMUtil extends Object
- Author:
- JAXWS Development Team
-
-
Constructor Summary
Constructors Constructor Description DOMUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DocumentcreateDom()Creates a new DOM document.static List<Element>getChildElements(Node parent)static ElementgetFirstChild(Element e, String nsUri, String local)Gets the first child of the given name, or null.static ElementgetFirstElementChild(Node parent)Gets the first element child.static voidserializeNode(Element node, XMLStreamWriter writer)Traverses a DOM node and writes out on a streaming writer.static voidwriteTagWithAttributes(Element node, XMLStreamWriter writer)
-
-
-
Method Detail
-
createDom
public static Document createDom()
Creates a new DOM document.
-
serializeNode
public static void serializeNode(Element node, XMLStreamWriter writer) throws XMLStreamException
Traverses a DOM node and writes out on a streaming writer.- Parameters:
node-writer-- Throws:
XMLStreamException
-
writeTagWithAttributes
public static void writeTagWithAttributes(Element node, XMLStreamWriter writer) throws XMLStreamException
- Throws:
XMLStreamException
-
getFirstChild
public static Element getFirstChild(Element e, String nsUri, String local)
Gets the first child of the given name, or null.
-
getFirstElementChild
@Nullable public static Element getFirstElementChild(Node parent)
Gets the first element child.
-
-