XML Namespaces - Using Functions (Magic xpa 3.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
To deactivate the Namespace Aware Mode, do not specify a prefix for any element in the element path.
XML Namespace Examples
XML Error Codes – Using Functions
Summary of XML Functions