Thread: Print XML tag
View Single Post
  #2 (permalink)  
Old 08-07-2007, 07:52 PM
goldhouse goldhouse is offline
Senior Member
 
Join Date: Mar 2007
Posts: 136
goldhouse is on a distinguished road
Code:
System.out.println("Age : " + ((Node)textAgeList.item(0)).getNodeValue().trim());
Assumes this is printing the age Change like this
Code:
System.out.println("Age : " + ((Node)textAgeList.item(0)).asXMLString().subString(55));
XMLString() will return an xmlstring just remove the "<?xml version="1.0"?>" so we added the substring function
Reply With Quote