Home » Xerces-J-src.2.9.1 » dom » [javadoc | source]
dom
public class: DOMAddLines [javadoc | source]
java.lang.Object
   org.apache.xerces.parsers.XMLParser
      org.apache.xerces.parsers.AbstractXMLDocumentParser
         org.apache.xerces.parsers.AbstractDOMParser
            org.apache.xerces.parsers.DOMParser
               dom.DOMAddLines

All Implemented Interfaces:
    XMLDocumentHandler, XMLDTDContentModelHandler, XMLDTDHandler

A sample of Adding lines to the DOM Node. This sample program illustrates: - How to override methods from DocumentHandler ( XMLDocumentHandler) - How to turn off ignorable white spaces by overriding ignorableWhiteSpace - How to use the SAX Locator to return row position ( line number of DOM element). - How to attach user defined Objects to Nodes using method setUserData This example relies on the following: - Turning off the "fast" DOM so we can use set expansion to FULL
Fields inherited from org.apache.xerces.parsers.DOMParser:
USE_ENTITY_RESOLVER2,  SYMBOL_TABLE,  XMLGRAMMAR_POOL,  fUseEntityResolver2
Fields inherited from org.apache.xerces.parsers.AbstractDOMParser:
NAMESPACES,  CREATE_ENTITY_REF_NODES,  INCLUDE_COMMENTS_FEATURE,  CREATE_CDATA_NODES_FEATURE,  INCLUDE_IGNORABLE_WHITESPACE,  DEFER_NODE_EXPANSION,  DOCUMENT_CLASS_NAME,  CURRENT_ELEMENT_NODE,  DEFAULT_DOCUMENT_CLASS_NAME,  CORE_DOCUMENT_CLASS_NAME,  PSVI_DOCUMENT_CLASS_NAME,  ABORT,  fErrorHandler,  fInDTD,  fCreateEntityRefNodes,  fIncludeIgnorableWhitespace,  fIncludeComments,  fCreateCDATANodes,  fDocument,  fDocumentImpl,  fStorePSVI,  fDocumentClassName,  fDocumentType,  fCurrentNode,  fCurrentCDATASection,  fCurrentEntityDecl,  fDeferredEntityDecl,  fStringBuffer,  fInternalSubset,  fDeferNodeExpansion,  fNamespaceAware,  fDeferredDocumentImpl,  fDocumentIndex,  fDocumentTypeIndex,  fCurrentNodeIndex,  fCurrentCDATASectionIndex,  fInDTDExternalSubset,  fRoot,  fInCDATASection,  fFirstChunk,  fFilterReject,  fBaseURIStack,  fRejectedElement,  fSkippedElemStack,  fInEntityRef,  fDOMFilter
Fields inherited from org.apache.xerces.parsers.AbstractXMLDocumentParser:
fInDTD,  fDocumentSource,  fDTDSource,  fDTDContentModelSource
Fields inherited from org.apache.xerces.parsers.XMLParser:
ENTITY_RESOLVER,  ERROR_HANDLER,  fConfiguration
Constructor:
 public DOMAddLines(String inputName) 
Method from dom.DOMAddLines Summary:
ignorableWhitespace,   main,   print,   startDocument,   startElement
Methods from org.apache.xerces.parsers.DOMParser:
getEntityResolver,   getErrorHandler,   getFeature,   getProperty,   getXMLParserConfiguration,   parse,   parse,   setEntityResolver,   setErrorHandler,   setFeature,   setProperty
Methods from org.apache.xerces.parsers.AbstractDOMParser:
abort,   attributeDecl,   characters,   comment,   createAttrNode,   createElementNode,   doctypeDecl,   dropDocumentReferences,   elementDecl,   emptyElement,   endAttlist,   endCDATA,   endConditional,   endDTD,   endDocument,   endElement,   endExternalSubset,   endGeneralEntity,   endParameterEntity,   externalEntityDecl,   getDocument,   getDocumentClassName,   handleBaseURI,   handleBaseURI,   ignorableWhitespace,   ignoredCharacters,   internalEntityDecl,   notationDecl,   processingInstruction,   reset,   setCharacterData,   setDocumentClassName,   setLocale,   startAttlist,   startCDATA,   startConditional,   startDTD,   startDocument,   startElement,   startExternalSubset,   startGeneralEntity,   startParameterEntity,   textDecl,   unparsedEntityDecl,   xmlDecl
Methods from org.apache.xerces.parsers.AbstractXMLDocumentParser:
any,   attributeDecl,   characters,   comment,   doctypeDecl,   element,   elementDecl,   empty,   emptyElement,   endAttlist,   endCDATA,   endConditional,   endContentModel,   endDTD,   endDocument,   endElement,   endExternalSubset,   endGeneralEntity,   endGroup,   endParameterEntity,   externalEntityDecl,   getDTDContentModelSource,   getDTDSource,   getDocumentSource,   ignorableWhitespace,   ignoredCharacters,   internalEntityDecl,   notationDecl,   occurrence,   pcdata,   processingInstruction,   reset,   separator,   setDTDContentModelSource,   setDTDSource,   setDocumentSource,   startAttlist,   startCDATA,   startConditional,   startContentModel,   startDTD,   startDocument,   startElement,   startExternalSubset,   startGeneralEntity,   startGroup,   startParameterEntity,   textDecl,   unparsedEntityDecl,   xmlDecl
Methods from org.apache.xerces.parsers.XMLParser:
parse,   reset
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from dom.DOMAddLines Detail:
 public  void ignorableWhitespace(XMLString text,
    Augmentations augs) throws XNIException 
 public static  void main(String[] argv) 
    Main program entry point.
 public  void print(Node node) 
    Prints the specified node, recursively.
 public  void startDocument(XMLLocator locator,
    String encoding,
    NamespaceContext namespaceContext,
    Augmentations augs) throws XNIException 
 public  void startElement(QName elementQName,
    XMLAttributes attrList,
    Augmentations augs) throws XNIException