Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display XML Data in same html file as Javascript

Status
Not open for further replies.

dle46163

IS-IT--Management
Jul 9, 2004
81
US
Hi all,

I'm very new to xml... I have the following XML inside an html page:

<html>
<xml Id = msg>
<message>
<to> Visitors </to>
<from> Author </from>
<Subject> XML Code Islands</Subject>
<body> Test</body>
</message>
</xml>
</html>

All I want to do is display the data within the XML tags by using Javscript located within the SAME page. I've seen lots of scripts to read external XML files but this needs to read embedded data...Can anyone point me in the direction of some code that would do this?


-dle


 
It's a good practice to post your solution so anyone can know how to do it.

Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top