User Guide
Using the XUpdateResolver component (Flash Professional only) 1509
The following is an example of an XML update packet when the includeDeltaPacketInfo
parameter is set to
true:
<xupdate:modifications version="1.0" xmlns:xupdate="http://www.xmldb.org/
xupdate"
transId="46386292065:Wed Jun 25 15:52:34 GMT-0700 2003">
<xupdate:remove select="/datapacket/row[@id='100']" opId="0123456789"/>
</xupdate:modifications>
Common workflow for the XUpdateResolver
component
The following procedure outlines the typical workflow for the XUpdateResolver component.
To use an XUpdateResolver component:
1. Add two instances of the XMLConnector component and one instance each of the DataSet
component and the XUpdateResolver component to your application, and give them
instance names.
2. Select the first XMLConnector component, and use the Parameters tab of the Component
inspector to enter the URL for the external XML data source that you want to access.
3. With the XMLConnector component still selected, click the Schema tab of the
Component inspector and import a sample XML file to generate your schema.
4. Use the Bindings tab of the Component inspector to bind an array in the XMLConnector
component to the
dataProvider property of the DataSet component.
5. Select the DataSet component and use the Schema tab of the Component inspector to
create the DataSet fields that will be bound to the fields of the object within the array.
6. Use the Bindings tab of the Component inspector to bind data elements (DataSet fields)
to the visual components in your application.
7. Select the Schema tab of the XUpdateResolver component. With the deltaPacket
component property selected, use the Schema Attributes pane to set the
encoder property
to the DataSetDeltaToXUpdateDelta encoder.
NOTE
You may need to create a virtual schema for your XML file if you want to access a
subelement of the array that you are binding to the data set. For more information,
see “Virtual schemas” in Using Flash.