ExtractVariables: OR'ing XPath to select an element

Not applicable

In the ExtractVariables Policy, is it valid to have multiple <XPath> elements under the <Variable> element. For example

        <Variable name="orderCancelInXml" type="nodeset">
            <XPath>//orderCancelIn/*</XPath>
            <XPath>/*</XPath>            
        </Variable>

I have a case where either orderCancelIn exists in the XML or it does not. If it does not, then I want to select everything under the root.

This seems to work, but I'm wondering what the best practice is.

0 0 218
0 REPLIES 0