Lines Matching refs:node
76 public void print(Node node) throws XMLStreamException {
77 switch (node.getNodeType()) {
79 visitDocument((Document) node);
82 visitDocumentFragment((DocumentFragment) node);
85 visitElement((Element) node);
88 visitText((Text) node);
91 visitCDATASection((CDATASection) node);
94 visitProcessingInstruction((ProcessingInstruction) node);
97 visitReference((EntityReference) node);
100 visitComment((Comment) node);
108 + node.getNodeType()
113 protected void visitChildren(Node node)
115 NodeList nodeList = node.getChildNodes();
135 protected void visitElement(Element node)
137 out.writeStartElement(node.getPrefix()
138 , node.getLocalName()
139 , node.getNamespaceURI()
141 NamedNodeMap attrs = node.getAttributes();
145 visitChildren(node);
149 protected void visitAttr(Attr node)
151 String name = node.getLocalName();
153 out.writeDefaultNamespace(node.getNamespaceURI());
155 String prefix = node.getPrefix();
157 out.writeNamespace(prefix, node.getNamespaceURI());
160 , node.getNamespaceURI()
162 , node.getNodeValue()
165 out.writeAttribute(node.getNamespaceURI()
167 , node.getNodeValue());
176 protected void visitText(Text node) throws XMLStreamException {
177 out.writeCharacters(node.getNodeValue());