Re: [bdbxml] Update Metadata only
John Snelson <[email protected]> Sat, 17 Sep 2005 01:12:23 +0100
| Newsgroups | gmane.comp.db.dbxml.general |
|---|---|
| Message-ID | <[email protected]> |
Use XmlContainer::getDocument() to retrieve the document, using the DBXML_LAZY_DOCS flag. Then use XmlDocument::setMetaData() to change the required metadata, and use XmlContainer::updateDocument() to make the changes back to the XmlContainer. DB XML will keep track of what changes have been made, and only update the necessary parts of the document. John Mark Salamon wrote: > How can I update/insert metadata only for an existing document, without > updating/replacing the entire xml document as well, using the java api. there > don't seem to be any methods in the api to do this. i'm worried if I create an > xml document, give it the name of an existing entry, don't set the content but > set metadata, that I will end up with an empty document in the database. > > > > ------------------------------------------ > To remove yourself from this list, send an > email to [email protected] > -- John Snelson, Berkeley DB XML Engineer Sleepycat Software, Inc http://www.sleepycat.com Contracted to Sleepycat through Parthenon Computing Ltd http://blog.parthcomp.com/dbxml ------------------------------------------ To remove yourself from this list, send an email to [email protected]