« Test media filter ... DSPACE UDC side | Main | Eliminating the host table from awstats »

Simple Java code to dump an xml document using DOM

This zip file contains java code and an xml file to test it.
When it is run you will see: [silvi003~/xmlDom_play]$ javac DomEcho01.java [silvi003~/xmlDom_play]$ java DomEcho01 slideSample01.xml <xml version="1.0"> <slideshow author="Yours Truly" date="Date of publication" title="Sample Slide Show"> <slide type="all"> <title>Wake up to WonderWidgets!</title> </slide> <slide type="all"> <title>Overview</title> <item>Why <em>WonderWidgets</em> are great</item> <item></item> <item>Who <em>buys</em> WonderWidgets</item> </slide>

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)