Namespaces in CheckOrder

CheckOrder process step uses XPath to identify XML elements where namespaces is also used. Unlike in XML Detection, when you specify the Xpath you must define a unique prefix for the XML elements that belong to the "Default Namespace".

In this example, we retrieve the value for the element env:address, where the value is: "this is detected!".

<?xml version ="1.0"?>
<Envelope xmlns="http://www.intentia.com/MBM"
xmlns:env="http://www.intentia.com/MBM_Another_Envelope"
xmlns:env="http://www.w3.org/2001/SMLSchema-instance"
xmlns:env="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.intentia.com/MBM MBM_Test_20_in.xsd">
   <Header>
     <env:delivery>
       <env:from>
          <env:address>this is detected!</address>
       </env:from>
In CheckOrder, use this example to specify the namespaces information:
  • Default Namespace: http//www.intentia.com/MBM
  • Default Namespace prefix: default
  • Xpath: /default:Envelope/default:Header/env:delivery/env:from/env:address