xacute.ksp
Class SAX2DOM

xacute.ksp.SAX2DOM

public class SAX2DOM

This class computes consumes SAX events to produce a DOM tree. input: document, top-level element output: top-level element, with some new nodes underneath document is needed to grab DOM methods element is needed to insert the nodes


Constructor Summary
SAX2DOM(org.w3c.dom.Document doc, org.w3c.dom.Element top)
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endDocument()
           
 void endElement(java.lang.String name)
           
 void ignorableWhitespace(char[] ch, int start, int length)
           
static void main(java.lang.String[] args)
           
 void processingInstruction(java.lang.String target, java.lang.String data)
           
 void setDocumentLocator(org.xml.sax.Locator locator)
           
 void startDocument()
           
 void startElement(java.lang.String name, org.xml.sax.AttributeList atts)
           
 

Constructor Detail

SAX2DOM

public SAX2DOM(org.w3c.dom.Document doc,
               org.w3c.dom.Element top)
Method Detail

characters

public void characters(char[] ch,
                       int start,
                       int length)

endDocument

public void endDocument()

endElement

public void endElement(java.lang.String name)

ignorableWhitespace

public void ignorableWhitespace(char[] ch,
                                int start,
                                int length)

processingInstruction

public void processingInstruction(java.lang.String target,
                                  java.lang.String data)

setDocumentLocator

public void setDocumentLocator(org.xml.sax.Locator locator)

startDocument

public void startDocument()

startElement

public void startElement(java.lang.String name,
                         org.xml.sax.AttributeList atts)

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception