From: Mayank M. <may...@gm...> - 2006-04-21 19:18:29
|
Thanks for the example. However, I still have a problem about the 'select=3Dpath' statement. Is it possible to specify the document to update= , for example using doc("filename.xml") statement? Thanks for the XQuery update link. I might use that as well. MM. On 4/21/06, Adam Retter <ada...@de...> wrote: > > Example from Wiki, without namespaces - > > > <xupdate:modifications version=3D"1.0" xmlns:xupdate=3D" > http://www.xmldb.org/xupdate"> > <!-- execute an xupdate:append operation to add the new term for wine --> > <xupdate:append > select=3D"/Mpeg7/Description/ClassificationScheme[./@uri=3D'urn:i5:exampl= e:alcoholicbeverage']"> > <!-- add a new Term element --> > <xupdate:element name=3D"Term"> > <!-- add attribute termID to wine --> > <xupdate:attribute name=3D"termID">wine</xupdate:attribute> > <!-- add term name --> > <xupdate:element name=3D"Name"> > Wine > </xupdate:element> > <!-- add term definition --> > <xupdate:element name=3D"Definition"> > A tasty alcoholic beverage produced from grapes. > </xupdate:element> > </xupdate:element> > </xupdate:append> > </xupdate:modifications> > > > This may interest you more than XUpdate, its XQuery Update extensions - > http://www.exist-db.org/update_ext.html > > > > Cheers Adam. > > On Fri, 2006-04-21 at 12:54 -0600, Mayank Maheshwary wrote: > > Hi, > > > > I have a question regarding xUpdate. I looked at the tutorial on the > > wiki (http://wiki.exist-db.org/space/tutorials/XUpdate+and > > +Namespaces ), but that tutorial uses namespaces and uris. However, my > > group's documents do not use those. How would the xUpdate expression > > be modified for use without namespaces and uris? > > > > Thanks. > > > > MM. > -- > Adam Retter > Devon Portal Developer > > Devon Portal Project > County Hall > Exeter > Devon > EX2 4QD > > t: 01392 38 3683 > f: 01392 38 2966 > e: ada...@de... > w: http://www.devonline.gov.uk |