:: Forum >>

XML Data

Hi Everyone,

I am sure if I knew more about XML and ActiveWidgets Grid, this would be obvious, but does the XML naming structure matter?

It seems like I could have this kind of structure:

<BEGIN>
<ROW>
<FIELD>data</FIELD>
<FIELD>data2</FIELD>
</ROW>
<ROW>
<FIELD>data</FIELD>
<FIELD>data2</FIELD>
</ROW>
</BEGIN>

Or this:

<Companies>
<Company>
<Name>data</Name>
<Address>data2</Address>
</Company>
<Company>
<Name>data</Name>
<Address>data2</Address>
</Company>
</Companies>


And the XML loading from table.setURL wouldn't care.
It would load both into the grid exactly the same.

So...the name tags around the data doesn't matter as long as the structure is correct?

Is this right?

Jim
Jim Nickel
Wednesday, November 7, 2007
You can specify with XPath which columns/rows should be selected -

http://www.activewidgets.com/aw.xml.table/columns.html
http://www.activewidgets.com/aw.xml.table/rows.html

By default the XPath is * so element names don't matter.
Alex (ActiveWidgets)
Thursday, November 8, 2007

This topic is archived.


Back to support forum

Forum search