469,347 Members | 1,809 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,347 developers. It's quick & easy.

How to handle Muli-record of responseXML?

I have read a number of article about the responseXML,
all articles just mention one row XML, I mean
<book>
<name>The Sea</name>
<authur>Jogn</authur>
</book>

javascript:
xmlHttp.responseXML.documentElement.getElementsByT agName("name").childNodes[0].nodeValue

But no one talk about XML like the following:
<book>
<name>The Sea</name>
<authur>Jogn</authur>
</book>
<book>
<name>The Sea2</name>
<authur>Jogn</authur>
</book>

How to handle in javascript for the 2nd XML?
Thanks!

May 17 '07 #1
1 1530
Cylix wrote:
I have read a number of article about the responseXML,
all articles just mention one row XML, I mean
<book>
<name>The Sea</name>
<authur>Jogn</authur>
</book>

But no one talk about XML like the following:
<book>
<name>The Sea</name>
<authur>Jogn</authur>
</book>
<book>
<name>The Sea2</name>
<authur>Jogn</authur>
</book>
XML can only have one root tag (<book/of your first example). For
your second example, you could surround it by <library/or something
and it'll be okay.

--
Bart

May 17 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Tony Johansson | last post: by
reply views Thread by Tony Johansson | last post: by
2 posts views Thread by Indiana Epilepsy and Child Neurology | last post: by
14 posts views Thread by Howard | last post: by
6 posts views Thread by Leandro Berti via DotNetMonster.com | last post: by
13 posts views Thread by Abhishek | last post: by
3 posts views Thread by Peterwkc | last post: by
1 post views Thread by CARIGAR | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.