I am trying to construct a prototype that uses an XML file to fill a table.
In the example below I am using inline XML instead of an external file.
If I exclude the
<item>
<itemdata>12345</itemdata>
</item>
piece, all works fine.
Can someone suggest how I can structure the table so that the
<item> pieces can be bypassed?
If not, (other than editing the XML) is there another way of logically
excluding those data elemtents so that the binding works nicely?
Many thanks for any help
I tried the group microsoft.public.inetsdk.programming.html_objmodel without
success
but if you can also suggest alternative places to ask, I'd welcome them.
This is obviously a simple explanation of what will be a scripted solution.
=======example
<html>
<head>
<Title>XML Test by RixTrix</title>
</HEAD><TITLE></TITLE>
<BODY>
<XML ID="xmlStatements">
<?xml version = "1.0" encoding = "UTF-8"?>
<index>
<item>
<itemdata>12345</itemdata>
</item>
<Content>
<ContentFile>/STATEMENTS/0000.PDF</ContentFile>
<ContentName>Combined 50695</ContentName>
<ContentType>application/pdf</ContentType>
</Content>
<Content>
<ContentFile>/STATEMENTS/0001.PDF</ContentFile>
<ContentName>Checking 241267</ContentName>
<ContentType>application/pdf</ContentType>
</Content>
<Content>
<ContentFile>/STATEMENTS/0002.PDF</ContentFile>
<ContentName>Combined 405882</ContentName>
<ContentType>application/pdf</ContentType>
</Content>
</index>
</XML>
<table datasrc="#xmlstatements" border=3>
<tr><td>First Cell</td>
<td><div datafld="ContentName"></div></td>
<td><div datafld="ContentFile"></div></td>
<td><div datafld="ContentType"></div></td>
<td>Last Cell</td>
</tr>
</table>
</BODY>
</HTML>
--
Rickety