Lines Matching refs:node

267      * @param node   Modified node or null. If node is returned, we need
268 * to normalize again starting on the node returned.
271 protected Node normalizeNode (Node node){
273 int type = node.getNodeType();
275 fLocator.fRelatedNode=node;
282 DocumentTypeImpl docType = (DocumentTypeImpl)node;
297 System.out.println("==>normalizeNode:{element} "+node.getNodeName());
306 wellformed = CoreDocumentImpl.isValidQName(node.getPrefix() , node.getLocalName(), fDocument.isXML11Version()) ;
309 wellformed = CoreDocumentImpl.isXMLName(node.getNodeName() , fDocument.isXML11Version());
314 "wf-invalid-character-in-node-name",
315 new Object[]{"Element", node.getNodeName()});
317 "wf-invalid-character-in-node-name");
325 ElementImpl elem = (ElementImpl)node;
358 wellformed=CoreDocumentImpl.isXMLName(node.getNodeName() , fDocument.isXML11Version());
362 "wf-invalid-character-in-node-name",
363 new Object[]{"Attr",node.getNodeName()});
365 "wf-invalid-character-in-node-name");
380 // set error node in the dom error wrapper
381 // so if error occurs we can report an error node
382 fConfiguration.fErrorHandlerWrapper.fCurrentNode = node;
383 fCurrentNode = node;
394 // set error node in the dom error wrapper
395 // so if error occurs we can report an error node
396 fConfiguration.fErrorHandlerWrapper.fCurrentNode = node;
397 fCurrentNode = node;
413 System.out.println("***The children of {"+node.getNodeName()+"} are normalized");
425 // set error node in the dom error wrapper
426 // so if error occurs we can report an error node
427 fConfiguration.fErrorHandlerWrapper.fCurrentNode = node;
428 fCurrentNode = node;
435 // set error node in the dom error wrapper
436 // so if error occurs we can report an error node
437 fConfiguration.fErrorHandlerWrapper.fCurrentNode = node;
438 fCurrentNode = node;
454 Node prevSibling = node.getPreviousSibling();
455 Node parent = node.getParentNode();
456 // remove the comment node
457 parent.removeChild(node);
466 }//if comment node need not be removed
469 String commentdata = ((Comment)node).getData();
474 }//end-else if comment node is not to be removed.
479 System.out.println("==>normalizeNode:{entityRef} "+node.getNodeName());
483 Node prevSibling = node.getPreviousSibling();
484 Node parent = node.getParentNode();
485 ((EntityReferenceImpl)node).setReadOnly(false, true);
486 expandEntityRef (parent, node);
487 parent.removeChild(node);
500 CoreDocumentImpl.isXMLName(node.getNodeName() , fDocument.isXML11Version());
515 Node prevSibling = node.getPreviousSibling();
517 ((Text)prevSibling).appendData(node.getNodeValue());
518 node.getParentNode().removeChild(node);
522 Text text = fDocument.createTextNode(node.getNodeValue());
523 Node parent = node.getParentNode();
524 node = parent.replaceChild(text, node);
532 // set error node in the dom error wrapper
533 // so if error occurs we can report an error node
534 fConfiguration.fErrorHandlerWrapper.fCurrentNode = node;
535 fCurrentNode = node;
537 fValidationHandler.characterData(node.getNodeValue(), null);
542 // set error node in the dom error wrapper
543 // so if error occurs we can report an error node
544 fConfiguration.fErrorHandlerWrapper.fCurrentNode = node;
545 fCurrentNode = node;
547 fDTDValidator.characterData(node.getNodeValue(), null);
550 String value = node.getNodeValue();
554 Node parent = node.getParentNode();
556 isXMLCharWF(fErrorHandler, fError, fLocator, node.getNodeValue(), fDocument.isXML11Version());
559 node.setNodeValue(value.substring(0, index+2));
562 Node firstSplitNode = node;
564 parent.insertBefore(newChild, node.getNextSibling());
565 node = newChild;
586 System.out.println("==>normalizeNode(text):{"+node.getNodeValue()+"}");
588 // If node is a text node, we need to check for one of two
590 // 1) There is an adjacent text node
591 // 2) There is no adjacent text node, but node is
592 // an empty text node.
593 Node next = node.getNextSibling();
594 // If an adjacent text node, merge it with this node
596 ((Text)node).appendData(next.getNodeValue());
597 node.getParentNode().removeChild( next );
599 // done with this node.
601 return node; // Don't advance;
602 } else if (node.getNodeValue().length()==0) {
604 node.getParentNode().removeChild( node );
620 isXMLCharWF(fErrorHandler, fError, fLocator, node.getNodeValue(), fDocument.isXML11Version());
623 fConfiguration.fErrorHandlerWrapper.fCurrentNode = node;
624 fCurrentNode = node;
625 fValidationHandler.characterData(node.getNodeValue(), null);
632 fConfiguration.fErrorHandlerWrapper.fCurrentNode = node;
633 fCurrentNode = node;
634 fDTDValidator.characterData(node.getNodeValue(), null);
641 ((TextImpl)node).setIgnorableWhitespace(true);
658 ProcessingInstruction pinode = (ProcessingInstruction)node ;
672 "wf-invalid-character-in-node-name",
673 new Object[]{"Element", node.getNodeName()});
675 "wf-invalid-character-in-node-name");
858 // Error: DOM Level 1 node!
873 } else { // uri=null and no colon (DOM L2 node)
935 "wf-invalid-character-in-node-name",
938 "wf-invalid-character-in-node-name");
1322 //check each child node of the attribute's value
1350 // Text node
1381 protected final void updateQName (Node node, QName qname){
1383 String prefix = node.getPrefix();
1384 String namespace = node.getNamespaceURI();
1385 String localName = node.getLocalName();
1390 qname.rawname = fSymbolTable.addSymbol(node.getNodeName());
1627 Node node = fAttributes.getNamedItemNS(uri, localName);
1628 return(node != null)? node.getNodeValue():null;
1837 // the node value because that turns the "specified"