cancel
Showing results for 
Search instead for 
Did you mean: 

Convert xml to xmldom object

Former Member
0 Kudos

Hi Frnd

Once the XML is converted to the xml dom, how can we read it out and print it accordingly on to the screen plz help me out.

Thnx

Adhir

Accepted Solutions (1)

Accepted Solutions (1)

prashil
Advisor
Advisor
0 Kudos

Hi Adhir,

Once the XML DOM object has been created.

You can read the node /attribute easily. Suppose DOM object is xmlDoc.

attribValue = xmlDoc.getElementsByTagName("nodename")<i>.childNodes[0].nodeValue

or xmlNode = getElementsByTagName("nodename")<i>

Hope this will answer your query.

Regards,

Prashil

Answers (1)

Answers (1)

Former Member
0 Kudos

hi

good

go through this link

http://www.javaworld.com/javaworld/jw-09-2004/jw-0906-xml.html

thanks

mrutyun^