Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Binding an XML Hierarchy
Message
De
31/10/2001 06:38:33
 
 
À
Tous
Information générale
Forum:
Internet
Catégorie:
XML
Titre:
Binding an XML Hierarchy
Divers
Thread ID:
00575523
Message ID:
00575523
Vues:
47
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform