DAV Maintenance tutorial
DAV Special URI's DAV Special URI's

## WebDAV parameters

The WebDAV server has the following special URL parameters:

- XPATH - the XPATH query to perform against the existing XML document
- set_tag - the root XML element (default is 'document')
- result_tag - the elements tag

## Preparation

This example uses the SQL/XML documents generated by VS-D-3.

## Example with result_tag

From within a browser do an XPATH query for a subset of attributes. Use the following URL:

    http://host:port/DAV/vs_d_3/URLMultiTable.xml?XPATH=/root/Customers/@CustomerID&result_tag=id

Or click this relative link.

## Expected result with result_tag

For browsers such as Opera and Netscape, view the source of the result page to see the XML. For browsers capable of rendering the XML, such as Internet Explorer 5+, the XML result will be shown.

This excerpt from the expected output shows the xml document containing the CustomerID only:

       <?xml version="1.0" encoding="ISO-8859-1"?>
       <document>
       <id>
       ALFKI</id>
       <id>
       ANATR</id>
       <id>
       ANTON</id>
       <id>
       AROUT</id>
       <id>
       BERGS</id>
       <id>
       BLAUS</id>
       <id>
       BLONP</id>
       <id>
       BOLID</id>
       <id>
       BONAP</id>
       ...
       </document>

## Example with set_tag

Similar to previous example, but replacing result_tag with the set_tag parameter. Enter this URL into a browser:

    http://host:port/DAV/vs_d_3/URLMultiTable.xml?XPATH=/root/Customers[@CustomerID+like+'A*']/@CustomerID&set_tag=id

Or click this relative link.

Note: the XPATH queries can only be performed against the persistent storage.

## Expected result with set_tag

     <?xml version="1.0" encoding="ISO-8859-1"?>
     <id>
     ALFKIANATRANTONAROUT</id>

## Example with set_tag and result_tag

Similar to previous example, but adding result_tag parameter. Enter this URL into a browser:

    http://host:port/DAV/vs_d_3/URLMultiTable.xml?XPATH=/root/Customers[@CustomerID+like+'A*']/@CustomerID&set_tag=id&result_tag=p

Or click this relative link.

Note: the XPATH queries can only be performed against the persistent storage.

## Expected result with set_tag and result_tag

     <?xml version="1.0" encoding="ISO-8859-1"?>
     <id>
    <p>
    ALFKI</p>
    <p>
    ANATR</p>
    <p>
    ANTON</p>
    <p>
    AROUT</p>
    </id>