Save This Page
Home » dom4j-1.6.1 » org.dom4j.samples.dom » [javadoc | source]
org.dom4j.samples.dom
public class: SAXDOMDemo [javadoc | source]
java.lang.Object
   org.dom4j.samples.AbstractDemo
      org.dom4j.samples.dom.SAXDOMDemo
This sample program parses an XML document as a DOM4J tree using SAX, it then creates a W3C DOM tree which is then used as input for creating a new DOM4J tree which is then output to SAX which is then parsed into another DOM4J tree which is then output as XML. This is clearly not terribly useful but demonstrates how to convert from SAX <->DOM4J and DOM4J <->DOM and DOM4J <->text
Fields inherited from org.dom4j.samples.AbstractDemo:
format,  writer
Constructor:
 public SAXDOMDemo() 
Method from org.dom4j.samples.dom.SAXDOMDemo Summary:
main,   parse
Methods from org.dom4j.samples.AbstractDemo:
createXMLWriter,   getXMLWriter,   parse,   print,   printUsage,   println,   process,   run,   run
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.dom4j.samples.dom.SAXDOMDemo Detail:
 public static  void main(String[] args) 
 protected Document parse(String url) throws Exception