Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes XML and Related Technologies and the fly likes How to read XML node hierarchy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to read XML node hierarchy" Watch "How to read XML node hierarchy" New topic
Author

How to read XML node hierarchy

swapnel surade
Ranch Hand

Joined: Mar 05, 2009
Posts: 129
Hello,

Suppose there is a XML file


I have to print the whole A tag on the screen.
Is there any way to print these element as they appear in file.
Output should be like this


 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to read XML node hierarchy