Click to See Complete Forum and Search --> : Loading xml data with javascript


BlueSuedeShoes
05-02-2004, 05:35 PM
Hi,

Im trying to load some xml data on to a html page using javascript. I am able to load the root attributes, the problem is displaying the child nodes, such as the director of film etc.

The thing thats worrying me is that i have to go through 2/3 for loops to do this, which could get messy. Any solutions to this problem would be much appreciated

Khalid Ali
05-02-2004, 07:01 PM
it should not be that difficult,
just using the name of the element and getting its child elements should work,
SHow us some code...search this forum,I have posted links countless times here for exact problems.

BlueSuedeShoes
05-03-2004, 04:46 AM
here is my code so far...

Khalid Ali
05-03-2004, 01:35 PM
did you try to lookup any existing answers for this question in this forum?

BlueSuedeShoes
05-04-2004, 06:09 AM
i have but there doesnt seem to be anything dealing with retrieving these nodes from an xml file using javascript

Khalid Ali
05-04-2004, 12:38 PM
[ur=http://www.webapplikations.com/pages/html_js/xml_js.html?menu_id=Web_sub]
take a look at this page[/url]
these are the most possible approaches one can take to read XML in a webpage.