reading an xml file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ajeeshc
    New Member
    • Sep 2009
    • 20

    reading an xml file

    how to load an XML file using JS and display all the data in the XML file to the HTML DOM elements
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    Originally posted by ajeeshc
    how to load an XML file
    use the XMLHttpRequest object to fetch the file. then you have the XML parsed and ready to use in the responseXML property.

    Originally posted by ajeeshc
    display all the data in the XML file to the HTML DOM elements
    well, this is up to you, but as long as you use DOM, there should be no problems.

    Comment

    Working...