XPath on document with multiple default namespaces

In this example, an XML document contains multiple namespaces, and even has more than one namespace as the default namespace. To make life easier when doing XPath queries (XPath being oblivious of the concept of default namespaces), Smartsite will make these namespaces available under the prefixes 'defaultns', 'defaultns2', etc...

Smartsite SXML CopyCode image Copy Code
<se:xmlprocessor>
    <se:parameters>
        <se:parameter name="xml">
            <WebServiceResponse>
                <IsResidentResponse xmlns="http://smartsite.nl/namespaces/efo/1.0">
                    <IsResidentResult>0</IsResidentResult>
                    <output xmlns:a="http://schemas.datacontract.org/2004/07/Smartsite.EFO.PsServer"
                        xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
                        <a:Code i:nil="true" />
                        <a:Description i:nil="true" />
                        <a:Nr>0</a:Nr>
                        <a:Type i:nil="true" />
                    </output>
                </IsResidentResponse>
            </WebServiceResponse>
        </se:parameter>
        <se:parameter name="actions">
            <se:collection>
                <se:member query="/defaultns:WebServiceResponse/defaultns2:IsResidentResponse/defaultns2:output/a:Nr">
                    {this.setresult(this.getvalue())}
                </se:member>
            </se:collection>
        </se:parameter>
    </se:parameters>
</se:xmlprocessor>
Example Result CopyCode image Copy Code
0