For example, the schema for Animals.xml file described in
XMLConnector component (Flash Professional only)" on page 416
called Bird. Each object contains two fields (
with one field called
property) with three fields—
dataProvider
from the array is constructed in the following way, for each item in the XML file:
Create an empty item.
Loop through the defined schema properties, extracting the values for each property from
the XML data, and assign these values to the created item. The Name and URL fields will
have values.
Provide this item to the DataSet component.
The ID field does not exist on the item, and the DataSet component has a blank entry for
each item assigned.
The solution is to create a new schema field under the object within the Bird array. The
new schema field is named
an XPath statement that points to the data in your XML file. In this case the XPath
expression would be
data binding finds an
XPath statement to get the correct data from the XML file. The correct data is then passed
to the DataSet component.
. If you bind the Bird array to a DataSet component (using the
id
. Every schema field has a property called
id
. When you get to the second bullet in the above process,
key/@id
field for the object. It looks at the
id
"Connecting to XML data with the
and
). They also contain a sub-element
name
url
,
, and
—each item that is returned
name
url
id
path
Advanced topics in data integration
defines an array of objects
that accepts
path
property and uses the
445
Need help?
Do you have a question about the FLASH 8-USING FLASH and is the answer not in the manual?
Questions and answers