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

RE: Updating / replacing the content of a Container



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

Best regards,
Per

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