RE: [xml-dev] newbie XUpdate how to use with java!

From
Michael Kay <>
To
'Carmen QUINTERO' <>,
Date
2005-04-20T19:40:51Z
Thread
RE: [xml-dev] newbie XUpdate how to use with java!
> I start working with XML, I have to modify a document
> by adding new elements. I know that I must use XUpdate
> syntax but in java what class, method do I call to
> send the XUpdate query and execute it?

XUpdate is designed essentially for updating documents within XML databases.
For updating standalone documents, the usual approach is to use XSLT to
transform the old document to a new document, which you can then use to
overwrite the old document if you wish. XSLT has a well-defined Java API
(JAXP) which is supported by three or four different XSLT processing
engines, including my own Saxon product.

Michael Kay
http://www.saxonica.com/