Thread: Print XML tag
View Single Post
  #1 (permalink)  
Old 08-07-2007, 07:27 PM
DonCash's Avatar
DonCash DonCash is offline
Moderator
 
Join Date: Aug 2007
Location: London, UK
Posts: 239
DonCash will become famous soon enoughDonCash will become famous soon enough
Print XML tag
Hey,

I have written some java code to Parse an XML file.

It is almost exactly the same as the code here:

A Simple Way to Read an XML File in Java - Print Version

Basically, I have it returning the XML values but what I want to be able to do now is to return the actual tag.

So if we have:

<age>22</age>

I have the code which will return: 22

Now I need the code to show the actual TAG: <age>

Does anyone know how this can be done????

THANKS!!!!!!
Reply With Quote
Sponsored Links