protected void startNode(Node node) throws org.xml.sax.SAXException {
  if (node instanceof Locator) {
    Locator loc=(Locator)node;
    fLocator.setColumnNumber(loc.getColumnNumber());
    fLocator.setLineNumber(loc.getLineNumber());
    fLocator.setPublicId(loc.getPublicId());
    fLocator.setSystemId(loc.getSystemId());
  }
 else {
    fLocator.setColumnNumber(0);
    fLocator.setLineNumber(0);
  }
switch (node.getNodeType()) {
case Node.DOCUMENT_TYPE_NODE:
    serializeDocType((DocumentType)node,true);
  break;
case Node.COMMENT_NODE:
serializeComment((Comment)node);
break;
case Node.DOCUMENT_FRAGMENT_NODE:
break;
case Node.DOCUMENT_NODE:
break;
case Node.ELEMENT_NODE:
serializeElement((Element)node,true);
break;
case Node.PROCESSING_INSTRUCTION_NODE:
serializePI((ProcessingInstruction)node);
break;
case Node.CDATA_SECTION_NODE:
serializeCDATASection((CDATASection)node);
break;
case Node.TEXT_NODE:
serializeText((Text)node);
break;
case Node.ENTITY_REFERENCE_NODE:
serializeEntityReference((EntityReference)node,true);
break;
default :
}
}

protected void startNode ( Node node ) throws org . xml . sax . SAXException { if ( node instanceof Locator ) { Locator loc = ( Locator ) node ; fLocator . setColumnNumber ( loc . getColumnNumber ( ) ) ; fLocator . setLineNumber ( loc . getLineNumber ( ) ) ; fLocator . setPublicId ( loc . getPublicId ( ) ) ; fLocator . setSystemId ( loc . getSystemId ( ) ) ; } else { fLocator . setColumnNumber ( 0 ) ; fLocator . setLineNumber ( 0 ) ; } switch ( node . getNodeType ( ) ) { case Node . DOCUMENT_TYPE_NODE : serializeDocType ( ( DocumentType ) node , true ) ; break ; case Node . COMMENT_NODE : serializeComment ( ( Comment ) node ) ; break ; case Node . DOCUMENT_FRAGMENT_NODE : break ; case Node . DOCUMENT_NODE : break ; case Node . ELEMENT_NODE : serializeElement ( ( Element ) node , true ) ; break ; case Node . PROCESSING_INSTRUCTION_NODE : serializePI ( ( ProcessingInstruction ) node ) ; break ; case Node . CDATA_SECTION_NODE : serializeCDATASection ( ( CDATASection ) node ) ; break ; case Node . TEXT_NODE : serializeText ( ( Text ) node ) ; break ; case Node . ENTITY_REFERENCE_NODE : serializeEntityReference ( ( EntityReference ) node , true ) ; break ; default : } }
start processing given node
