User Guide
Advanced topics in data integration 303
• Predicate syntax to further specify nodes to be selected:
/B[C] (child node syntax; selects all B nodes that have a C node as a child)
/B[@id] (attribute existence syntax; selects all B nodes that have an attribute named id)
/B[@id="A1"] (attribute value syntax; selects all B nodes that have an id attribute whose
value is A1)
• Support for predicate comparison operators:
=
• Support for Boolean AND and OR values in predicates:
/B[@id=1 AND @customer="macromedia"]
Note: The following operators are not supported: "<", ">", "//".
To add a binding using path expressions:
1.
In either the Add Binding dialog box or the Bound To dialog box, select Use path expression.
2.
Enter a path expression to identify the schema item to which you want to bind. Path expressions
are entered in the following formats:
■ For properties that contain ActionScript data, the path follows this format:
field [.field]...
In this format, field is equal to the name of a field (such as addresslist.street).
■ For properties that contain XML data, the path follows this format:
XPath
In this format, XPath is a standard XPath statement (such as addressList/street).
3.
Click OK to return to the Bindings tab.
Default data binding events
When you use the Bindings tab to create a binding between two components, the binding is
triggered by the default component event. If you want a binding to execute independently of the
default component event (which is predetermined by Flash), you must manually refresh the
binding with ActionScript code. For more information, see “ComponentMixins class (Flash
Professional only)” in Using Components (in particular, see the
ComponentMixins.refreshDestinations() and ComponentMixins.refreshFromSources()
methods).
In general, for UI components, the
change or click events are the default events used to trigger
data bindings, such as
TextInput.change, Button.click, RadioButton.click. For connector
components, the
result event triggers the binding, such as XMLConnector.result.
Server-side requirements for resolving XML data
This section describes requirements that your server code must fulfill when receiving results from
an XUpdateResolver component. It contains information relevant for the server administrator
who is handling server-side functions for your Flash application.