Home » Xerces-J-src.2.9.1 » dom » [javadoc | source]
dom
public class: DOMWriter [javadoc | source]
java.lang.Object
   dom.DOMWriter
A sample DOM writer. This sample program illustrates how to traverse a DOM tree in order to print a document that is parsed.
Field Summary
protected  PrintWriter out    Print writer. 
protected  boolean canonical    Canonical output. 
Constructor:
 public DOMWriter(boolean canonical) throws UnsupportedEncodingException 
    Default constructor.
 public DOMWriter(String encoding,
    boolean canonical) throws UnsupportedEncodingException 
Method from dom.DOMWriter Summary:
getWriterEncoding,   isValidJavaEncoding,   main,   normalize,   print,   print,   setWriterEncoding,   sortAttributes
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from dom.DOMWriter Detail:
 public static String getWriterEncoding() 
 public static boolean isValidJavaEncoding(String encoding) 
 public static  void main(String[] argv) 
    Main program entry point.
 protected String normalize(String s) 
    Normalizes the given string.
 public  void print(Node node) 
    Prints the specified node, recursively.
 public static  void print(String parserWrapperName,
    String uri,
    boolean canonical) 
    Prints the resulting document tree.
 public static  void setWriterEncoding(String encoding) 
 protected Attr[] sortAttributes(NamedNodeMap attrs) 
    Returns a sorted list of attributes.