wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes xml's nested same element  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "xml Watch "xml New topic

xml's nested same element

Mortin kim
Ranch Hand

Joined: Nov 15, 2007
Posts: 44
I have one simple problem..on how to read xml doc nested same element..

Problem is like this :

XML File :
a sample xml file


to papulate the values into filed I am doing like this..

document.getElementById('Fname').value = xmlDoc.getElementsByTagName("Fname")[0].childNodes[0].nodeValue;
document.getElementById('Lname').value = xmlDoc.getElementsByTagName("Lname")[0].childNodes[0].nodeValue;

But how to get the nested same elment Fname,Lname of <Fathername> node..?

I agree. Here's the link: http://aspose.com/file-tools
subject: xml's nested same element
Similar Threads
XML Info Database Help
Creating table inside div
parsing the xml returned from ajax call
object required in java script error
Sorting xml string