OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

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

[ Lists Home | Date Index | Thread Index ]

 
> 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/






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS