You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by "Kurapati, Rama" <Ra...@labbook.com> on 2001/07/26 19:03:13 UTC

accessing parts of a resource

Hi,

With the xmlfile.xml as given below
<rootnode>
<node1>data1</node1>
<node2>data2</node2>
<node3>data3</node3>
<node4>data4</node4>
<node5>data5</node5>
<node6>data6</node6>
</rootnode>

After placing the file in WebDAV store , i can access the file with
http://host:8080/slide/xmlfile.xml

Now is it possible to access/modify a single node in the xmlfile.xml with
url say http://host:8080/slide/xmlfile/node2

Any hints are helpful.
 
Thanks in advance
Rama Kurapati


Re: accessing parts of a resource

Posted by Remy Maucherat <re...@apache.org>.
> Hi,
>
> With the xmlfile.xml as given below
> <rootnode>
> <node1>data1</node1>
> <node2>data2</node2>
> <node3>data3</node3>
> <node4>data4</node4>
> <node5>data5</node5>
> <node6>data6</node6>
> </rootnode>
>
> After placing the file in WebDAV store , i can access the file with
> http://host:8080/slide/xmlfile.xml
>
> Now is it possible to access/modify a single node in the xmlfile.xml with
> url say http://host:8080/slide/xmlfile/node2
>
> Any hints are helpful.

Short answer : You can't do it.
Long answer : A significant amount of hacking is going to be needed. The
structure helper must be modifed, as well as the content helper.

Remy