Package com.sun.xml.ws.util
Class DOMUtil
java.lang.Object
com.sun.xml.ws.util.DOMUtil
- Author:
- JAXWS Development Team
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentCreates a new DOM document.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)
-
Constructor Details
-
DOMUtil
public DOMUtil()
-
-
Method Details
-
createDom
Creates a new DOM document. -
serializeNode
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
Gets the first child of the given name, or null. -
getFirstElementChild
Gets the first element child. -
getChildElements
-