How about something like this:
"/root/firstChild/@someAttribute := 'aNewValue'"?
Or:
"remove(//allTheseElements)"
Someone at my employer wrote an XPath update syntax. It's fairly handy.
Personally, I'd rather see XQuery implemented with the update proposal[1].
Sure, the update syntax is not in the official standard yet, but it will be
someday, and XQuery is The Way. (Ok, ok, maybe not yet, but someday.)
[1] The XQuery update proposal: http://www.lehti.de/beruf/diplomarbeit.pdf
----- Original Message -----
From: "Jim Fuller" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 29, 2004 5:41 PM
Subject: RE: XML:DB XUpdate List
> the state of technology with respect to xml update has always been a
> concern... And it is worrying that xupdate is a weakly supported
> technology.....if there are thoughts of moving it into apache I would
> lightly consider having an update mechanism that is purely based on
> xpath or even xslt.
>
> Maybe something like Collection queryCollection method,
> updateCollection() perhaps creating a new type='XSLT'.
>
> Just my .2
>
> Ta, jim
>