Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Binding an XML Hierarchy
Message
From
31/10/2001 06:38:33
 
 
To
All
General information
Forum:
Internet
Category:
XML
Title:
Binding an XML Hierarchy
Miscellaneous
Thread ID:
00575523
Message ID:
00575523
Views:
48
Hi

I was wondering whether anyone has any tips on binding a deeper XML hierarchy in HTML, i.e. binding a XML set that has several levels in the hierarchy. As far as I know, binding XML is only possible at first level:

<xml id='XMLExample'>
<data>
<row>
<customer>A & B Computers</customer>
<description>Computer Retailer</description>
<active>0</active>
</row>
<row>
<customer>Consumer Marketing</customer>
<description>Advertising Agency</description>
<active>1</active>
</row>
</data>
</xml>

<table datasrc='#XMLExample' border='0' class='tablelayout'>
<tr>
<td><input datafld='customer'></input></td>
<td><input datafld='description'></input></td>
<td><input datafld='active' type='checkbox'></input></td>
</tr>
</table>

But what if XML was like following:

<xml id='XMLExample'>
<data>
<row>
<customer>
<name>A & B Computers</name>
<id>123</id>
</customer>
<description>Computer Retailer</description>
<active>0</active>
</row>
<row>
<customer>
<name>Consumer Marketing</name>
<id>456</id>
</customer>
<description>Advertising Agency</description>
<active>1</active>
</row>
</data>
</xml>

How would I bind HTML objects to <name> and <id> tags. I tried XPath syntax, but it wouldt bind.

Thanks a million
Daniel
Danijel
Next
Reply
Map
View

Click here to load this message in the networking platform