I am having similar problems and I think I can reduce the problem a little more
basically,
Conider the tutorial from Macromedia,
http://livedocs.macromedia.com/flash/8/main/00000354.html which uses the XML
file,
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<datapacket>
<row act="10" custId="0" date="05/12/2002" billable="true" duration="3"
id="1" notes="Here is note(1)" projId="1" rate="45.50" servId="0"/>
<row act="9" custId="0" date="05/13/2002" billable="true" duration="8.25"
id="2" notes="Here is note(2)" projId="1" rate="45.50" servId="1"/>
<row act="8" custId="0" date="05/14/2002" billable="false" duration="7.75"
id="3" notes="Here is note(3)" projId="1" rate="45.50" servId="1"/>
<row act="7" custId="0" date="05/15/2002" billable="false" duration="6.5"
id="4" notes="Here is note(4)" projId="1" rate="45.50" servId="2"/>
<row act="6" custId="0" date="05/16/2002" billable="false" duration="5.5"
id="5" notes="Here is note(5)" projId="1" rate="45.50" servId="2"/>
</datapacket>
The tutorial carefully steps you through the process of creating the Bindings
and the Schema in all three components. But now I'd like to try my own XML
file and DataGrid, but my XML file is a little different. Here is a sample of
what I am looking at,
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ROOT SYSTEM "CountrySample.dtd">
<ROOT>
<row>
<field name="Code">AFG</field>
<field name="Name">Afghanistan</field>
<field name="Continent">Asia</field>
</row>
<row>
<field name="Code">NLD</field>
<field name="Name">Netherlands</field>
<field name="Continent">Europe</field>
</row>
<row>
<field name="Code">ANT</field>
<field name="Name">Netherlands Antilles</field>
<field name="Continent">North America</field>
</row>
<row>
<field name="Code">ALB</field>
<field name="Name">Albania</field>
<field name="Continent">Europe</field>
</row>
<row>
<field name="Code">DZA</field>
<field name="Name">Algeria</field>
<field name="Continent">Africa</field>
</row>
</ROOT>
In the Macromedia tutorial, the data are attributes in the row element and the
field names are the attribute names. In my example the child element is the
field and the field name is the attribute "name".
I can find no documentation to help make the transition from the demonstrated
XML to this other schema. I haven't the slightest idea what to do.
How do you apply the Component Inspector and the Properties windows for
XMLConnector, DataSet and DataGrid to display this data in the DataGrid?