Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Javascript / Client Side Development

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.getElementsByTagName("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!

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

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc