XML data binding syntax

APIs are called with the input XML that is bound in the screen, and that XML binding should match the output of the API.

  • XML Binding Syntax

    xml:NameSpace:/Root/Child@Attribute

    The following examples show correctly structured syntax:

    xml:/Order/PersonInfoShipTo/@Name
    xml:Order:/Order/PersonInfoShipTo/@Name

    The following examples show incorrectly structured syntax:

    xml:/@Name
    xml:/Order
    xml:Order:/Order
  • XML Binding Parameters
    The various XML binding parameters used are as follows:
    • xml:—used literally
    • Namespace—namespace containing the XML to which this binding applies. If not specified, it is taken to be the root node of the path that follows. Namespace should only be included when binding to common codes.
    • :/Root/Child@Attribute—XML path of the attribute. If the attribute is the root node itself, specify the syntax as /Root@Attribute . Root represents the root node name in the XML to which the binding applies. Child represents the child element node name. This rule applies to any level of depth.

      This function parses the binding string, searches for the at ( "@" ) character, and returns the string following the at ( "@" ) character.