3.0 beta 2

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
November 7,
You can specify with XPath which columns/rows should be selected -

/aw.xml.table/columns.html
/aw.xml.table/rows.html

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

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.