Lines Matching refs:node
68 ElementImpl node = new ElementImpl(line, column, offset);
69 processElement(element, attributes, node);
70 // now the current node added, becomes the parent
71 parent = node;
72 return node;
77 ElementImpl node = new ElementImpl(line, column, offset);
78 processElement(element, attributes, node);
79 return node;
92 private void processElement(QName element, XMLAttributes attributes, ElementImpl node) {
94 // populate node
95 node.prefix = element.prefix;
96 node.localpart = element.localpart;
97 node.rawname = element.rawname;
98 node.uri = element.uri;
99 node.schemaDOM = this;
104 attrs[i] = new AttrImpl(node,
111 node.attrs = attrs;
125 // add the current node as child of parent
138 relations[currLoc][i] = node;
141 node.row = currLoc;
142 node.col = i;
147 // the parent of current parent node becomes the parent
148 // for the next node.
312 public static void traverse(Node node, int depth) {
314 System.out.print("<"+node.getNodeName());
316 if (node.hasAttributes()) {
317 NamedNodeMap attrs = node.getAttributes();
323 if (node.hasChildNodes()) {
326 for (Node child = node.getFirstChild(); child != null; child = child.getNextSibling()) {
331 System.out.println("</"+node.getNodeName()+">");
346 // this returns a parent node, known to be an ElementImpl