|
Java™ by example!
|
|
|
How do I write out a DOM subtree to System.out?
You can use the XSLT Transformer class to do this.
Here's an example. Test.xml
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!
|
|
|
|
|