[bdbxml] How update metadata with XmlModify

Marcin Kuthan <mkuthan-tQDQIiJ/[email protected]> Tue, 23 Aug 2005 16:08:04 +0200
Newsgroups gmane.comp.db.dbxml.general
Message-ID <[email protected]>
Hi All

My application modifies some part of document with XmlModify. 

Fragment of application code:

//
XmlQueryExpression expr1 = manager.prepare("query1", qContext);
XmlQueryExpression expr2 = manager.prepare("query2", qContext);

xmlModify.addAppendStep(expr1, XmlModify.Element, "new1", content1);
xmlModify.addAppendStep(expr2, XmlModify.Element, "new2", content2);

XmlDocument document = container.getDocument(documentId);
XmlValue value = new XmlValue(document);

xmlModify.execute(value, qContext, uContext);
//

How should I update metadata with modified document? 

1. Add updateStep to xmlModify. But how to design selection query for
metadata attribute?
2. Call setMetaData on document. But after or before execute of
xmlModify, and when call updateDocument on xmlContainer?


Any help would be appreciated.



------------------------------------------
To remove yourself from this list, send an
email to [email protected]