Using XMLDSO

guest2013-1

guest
Joined
Aug 22, 2003
Messages
19,800
Reaction score
13
Hi guys,

I want to use XMLDSO to load an XML file with datafields mapped. Normally people have examples of :

Code:
<parentnode>
<name></name>
<surname></surname>
<address></address>
</parentnode>

But I need to bind to an XML file that looks like this :

Code:
<parentnode>
<name></name>
<surname></surname>
<address>
        <address1></address1>
        <address2></address2>
</address>
</parentnode>

Any idea how I would be able to do this with XMLDSO?

Code I'm using is :

Code:
<html>
<body>

<xml id="names" src="names.xml"></xml>

<table border="1" datasrc="#names">

<tr>
<td><span datafld="Name"></span></td>
<td><span datafld="Surname"></span></td>
</tr>

</table>

</body>
</html>
 
using xmldso is not a good option IMHO. You generally need a lot of javascript to traverse through the parent/child/grandchildren nodes... the datafld declaration seems to have that as a default behaviour.

Rather use an XLS - simpler and it will work cross platform
 
Top
Sign up to the MyBroadband newsletter
X