
Advanced topics in data integration
439
The XPath to uniquely identify the row node is shown in the following example:
datapacket/row[@id=’xxx’]
In this example, xxx represents a value for the
id
attribute. In a typical case, the
id
attribute in the XML file would be bound to the
id
field of the DataSet component.
Therefore, the
rowNodeKey
value would be as follows:
datapacket/row[@id=’?id’]
The question mark symbol (
?)
identifies that this is a field parameter. The
id
value
specifies the name of the field in the data set. At runtime, the XUpdateResolver
component substitutes the value from the
id
field of the data set to generate the correct
XPath for the specified record.
In the next example, the contacts node with a category attribute of Management
represents the record(s) within the XML file, and the
employeeId
subnode contains the
value that makes the record unique:
<datapacket>
<company id="5" name="ABC tech">
<contacts category="Mgmt">
<contact>
<empId>555</employeeId>
<name>Steve Woo</name>
<email>[email protected]</email>
</contact>
<contact>
<empId>382</employeeId>
<name>John Phillips</name>
<email>[email protected]</email>
</contact>
...
...
</contacts>
<contacts category="Executives">
...
...
</contacts>
...
...
</company>
</datapacket>
The
rowNodeKey
value for this XML file would be as follows:
datapacket/company/contacts[@category=’Mgmt’]/contact[empId=’?empId’]
Содержание FLASH 8-USING FLASH
Страница 1: ...Using Flash...
Страница 12: ...12 Contents...
Страница 110: ...110 Using Symbols Instances and Library Assets...
Страница 128: ...128 Working with Color Strokes and Fills...
Страница 156: ...156 Drawing...
Страница 190: ...190 Working with Text...
Страница 224: ...224 Working with Graphic Objects...
Страница 270: ...270 Creating Motion...
Страница 310: ...310 Working with Video...
Страница 362: ...362 Working with Screens Flash Professional Only...
Страница 386: ...386 Creating Multilanguage Text...
Страница 454: ...454 Data Integration Flash Professional Only...
Страница 500: ...500 Publishing...
Страница 534: ...534 Creating Accessible Content...