XIncProc XPointer Processor >

Element Scheme

XIncProc XPointer processor support fully XPointer Element Scheme

The scheme data consists of either a NCName (as defined in the XML namespaces specification [XML-Names]) or a child sequence, or both.

Example

Given a simple xml :

            <catalog>
                <book id="book1">
                    <author id="auth1">Gambardella, Matthew</author>
                    <title>XML Developer's Guide</title>
                    <genre id="bk101">Computer</genre>
                    <price>44.95</price>
                    <publish_date>2000-10-01</publish_date>
                    <description>An in-depth look at creating applications
                        with XML.</description>
                </book>
            </catalog>
        

Expressions matching nodes:

Pointer content Result
element(auth1) <author id="auth1">Gambardella, Matthew</author>
element(/1/1/2) <title>XML Developer's Guide</title>
element(book1/3) <genre id="bk101">Computer</genre>
A NCName appearing alone identifies a single element exactly as it would in a shorthand pointer as defined in the XPointer Framework [XPtrFrame] specification.

Example

Given the same xml document than previous example.

expression "auth1" returns <author id="auth1">Gambardella, Matthew</author>

expression "element(auth1)" returns <author id="auth1">Gambardella, Matthew</author>

Result is same

Except that failure to identify an element results simply in no subresource being identified by this pointer part rather than an XPointer Framework error.

Example

element(toto) return " ".

Further Details