[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Updating / replacing the content of a Container



On Sat, 28 Jul 2001 20:21:32 +0200
"Per Nyfelt" <per.nyfelt@nordicwave.com> wrote:

> > See the xupdateQuery() method in ozone/samples/XML/Client.java for
> > usage and the spec at http://www.xmldb.org/xupdate/xupdate-wd.html
> > for sample queries. Right now I'm not sure how the "update" element
> > handles a whole subtree of a Document (root element). Otherwise you
> > can use the "remove" and "append" elements - but this is somewhat
> > ugly...
> 
> Thanks, I'll look at it...
> 
> > On the other hand I don't understand why storeDOM() (your current
> > solution) should not allow you to set (overwrite) the content of a
> > whole and already exisiting document with just one method call?!?
> 
> That is exactly what i wanted to do but I found no way to do this with
> XMLContainer. The documentation seems to say that
> XMLContainer.storeDOM(null, document) will replace the current document, but
> i guess i misunderstodd what is meant by current document since it does not
> work the way i thought it would, which is to replace the XML content of the
> container with the new content provided. Or maybe i did get it right and it
> is a bug in XMLContainer?

Hmm, it's a bug in XMLContainerHelper.java. I'm right about to provide
a bugfix but there is an other small problem with transactions that
only appears when I apply the patch.

--
______________________________________________________________________
Lars Martin                                    mailto:lars@smb-tec.com
SMB GmbH                                        http://www.smb-tec.com

----------------------------------------------------------------------
Post a message:         mailto:ozone-dev@ozone-db.org
Unsubscribe:            mailto:ozone-dev-request@ozone-db.org?body=unsubscribe
Contact adminstrator:   mailto:ozone-dev-owner@ozone-db.org
Read archived messages: http://www.ozone-db.org/
----------------------------------------------------------------------