Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to read XML node hierarchy

 
swapnel surade
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic