Salesforce

XML Namespaces - Using Functions (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

XML Namespaces - Using Functions (Magic xpa 4.x)

You can use the XML functions when the Namespace Awareness mode is activated or not activated. If no prefix is specified, the Namespace Awareness mode is not activated.

In the Namespace Aware mode, you should specify a prefix (namespace alias) for an element. For each I/O device, an association between an alias and URI is kept internally. For an XML file read by Magic xpa, an association between the alias and namespace URI is created for elements with a namespace. The XMLGetAlias function retrieves the alias related to a specific URI. The XMLSetNS function defines the association between an alias and URI.

The prefix can be specified for each element in the element path. In the Namespace Aware mode, each non-prefixed element is compared according to the default namespace URI.

For example, in element path a.al1:b.c.al2:d

  • Root element a has no prefix

  • Element b has alias, al1

  • Element c has no prefix

  • Element d has alias, al2

To deactivate the Namespace Aware Mode, do not specify a prefix for any element in the element path.

Related Topics

Reference
Attachment 
Attachment