XML information pipe

Ihre Spezialisten für XML

Banner Werbung

XPath as filesystem addressing

The basic XPath syntax is similar to filesystem addressing.


If the path starts with the slash / , then it represents an absolute path to the required element.


/AAA

Select the root element AAA


<AAA>

    <BBB/>

    <CCC/>

    <BBB/>

    <BBB/>

    <DDD>

        <BBB/>

    </DDD>

    <CCC/>

</AAA>



/AAA/CCC

Select all elements CCC which are children of the root element AAA


<AAA>

    <BBB/>

    <CCC/>

    <BBB/>

    <BBB/>

    <DDD>

        <BBB/>

    </DDD>

    <CCC/>

</AAA>



/AAA/DDD/BBB

Select all elements BBB which are children of DDD which are children of the root element AAA


<AAA>

    <BBB/>

    <CCC/>

    <BBB/>

    <BBB/>

    <DDD>

        <BBB/>

    </DDD>

    <CCC/>

</AAA>