Ann Smyth wrote:
I am having difficulties with the XUpdateQueryService. I am trying to
follow the examples in the developer's Guide at: http://xml.apache.org/xindice/guide-developer.html I am trying to create an application modeled on the Addressbook sample
application but with a slightly different data structure where I have
multiple person "records" in one file rather than each person in a
different file like the Addressbook. In this case, it would be best if I
could just update one element rather that remove the document and rewrite
it with the updated data as in the Addressbook application. I am having trouble finding out about the format of the contents of the
String variable xupdate in the code fragment below:
XUpdateQueryService service = (XUpdateQueryService)
col.getService("XUpdateQueryService", "1.0"); service.update(xupdate); I am unable to get to the reference for the examples at http://www.xmldb.org/xupdate
Any suggestions???
There are several samples here:
http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/blocks/xmldb/samples/populate.xml?rev=1.6&view=auto
Look for tags in "xu" namespace.
Vadim
