|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 boolean |
canonical
Canonical output. |
protected PrintWriter |
out
Print writer. |
Constructor Summary | |
DOMWriter(Writer w)
|
|
DOMWriter(Writer w,
boolean canonical)
|
Method Summary | |
protected String |
normalize(String s)
Normalizes the given string. |
void |
print(Node node)
|
void |
print(Node node,
boolean prettyprint)
|
protected Attr[] |
sortAttributes(NamedNodeMap attrs)
Returns a sorted list of attributes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected PrintWriter out
protected boolean canonical
Constructor Detail |
public DOMWriter(Writer w)
public DOMWriter(Writer w, boolean canonical)
Method Detail |
public void print(Node node)
public void print(Node node, boolean prettyprint)
protected Attr[] sortAttributes(NamedNodeMap attrs)
protected String normalize(String s)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |