Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » util » xml » [javadoc | source]
org.jboss.util.xml
public class: DOMWriter [javadoc | source]
java.lang.Object
   org.jboss.util.xml.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(Writer w) 
 public DOMWriter(Writer w,
    boolean canonical) 
Method from org.jboss.util.xml.DOMWriter Summary:
normalize,   print,   print,   sortAttributes
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.util.xml.DOMWriter Detail:
 protected String normalize(String s) 
    Normalizes the given string.
 public  void print(Node node) 
 public  void print(Node node,
    boolean prettyprint) 
 protected Attr[] sortAttributes(NamedNodeMap attrs) 
    Returns a sorted list of attributes.