|
Java™ by example!
|
|
|
How do I write out a DOM tree to System.out?
You can do this using the XSLT transform package. In XSLT, it is called an identity transform when the transformation is generating the source without any changes. The following example programmatically creates a DOM tree and uses the Transformer class to output it to System.out. Main.java:
outputs:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|