code: 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 :
                  // Children are traversed
                  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 :
                  }
      }
docs: Start processing given node
  
  @param node Node to process
  
  @throws org.xml.sax.SAXException