Lines Matching refs:node
100 * Traverses a DOM node and writes out on a streaming writer.
102 * @param node
105 public static void serializeNode(Element node, XMLStreamWriter writer) throws XMLStreamException {
106 writeTagWithAttributes(node, writer);
108 if (node.hasChildNodes()) {
109 NodeList children = node.getChildNodes();
135 public static void writeTagWithAttributes(Element node, XMLStreamWriter writer) throws XMLStreamException {
136 String nodePrefix = fixNull(node.getPrefix());
137 String nodeNS = fixNull(node.getNamespaceURI());
139 String nodeLocalName = node.getLocalName()== null?node.getNodeName():node.getLocalName();
146 if (node.hasAttributes()) {
147 NamedNodeMap attrs = node.getAttributes();
171 // node's namespace is not declared as attribute, but declared on ancestor
177 if (node.hasAttributes()) {
178 NamedNodeMap attrs = node.getAttributes();
194 // attr has namespace but namespace decl is there in ancestor node