RE: XQuery Update Facility Working Drafts
"Michael Rys" <[email protected]> Wed, 1 Feb 2006 13:39:44 -0800
| Newsgroups | gmane.comp.web.query-languages |
|---|---|
| Message-ID | <BAE415CEAA831548800F68C44E905AF50479CD99@RED-MSG-60.redmond.corp.microsoft.com> |
The insert statement as currently defined needs a node as insertion target. Since you cannot insert a document node into any other node, you cannot insert it using the insert statement. You should use a mechanism that is specific to your environment to insert documents. E.g. in SQL you would use the SQL INSERT or UPDATE statement to insert the XML document into a cell... Best regards Michael > -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf Of > Fiebig, Thorsten > Sent: Wednesday, February 01, 2006 1:22 PM > To: Jonathan Robie; [email protected] > Subject: RE: XQuery Update Facility Working Drafts >=20 >=20 > Hi, >=20 > I like the update proposal, but I have one major concern. My current > observation is that proposal allows the removal of document nodes from > an XDM instance via the "delete" operation. Assuming that my XDM > instance represents an XML database I can remove a document (node) from > my database via the "delete" operation. > On the other hand the constraints defined for the "insert" operation > seem to forbid the insertion of document nodes into an XDM instance. I > have a problem with that, because from my point of view this makes it > impossible to insert new document nodes into a database via XQuery > update. >=20 > Best Regards, >=20 > Thorsten Fiebig >=20 >=20 > -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf Of > Jonathan Robie > Sent: Friday, January 27, 2006 9:11 PM > To: [email protected] > Subject: XQuery Update Facility Working Drafts >=20 >=20 > Two new Working Drafts were published today: >=20 > XQuery Update Facility > W3C Working Draft 27 January 2006 > http://www.w3.org/TR/2006/WD-xqupdate-20060127/ >=20 > XQuery Update Facility Use Cases > W3C Working Draft 27 January 2006 > http://www.w3.org/TR/2006/WD-xqupdateusecases-20060127/ >=20 > I wrote a quick summary of the functionality provided in the following > blog entry: >=20 > http://blogs.datadirect.com/jonathan_robie/2006/01/first_working_d.html >=20 > Hope this is useful! >=20 > Jonathan >=20 > -- > Read my Blog: http://blogs.datadirect.com/jonathan_robie/ > Learn XQuery: > http://media.datadirect.com/download/docs/ddxquery/tutorial_query.html > Learn XQJ (the JDBC for XQuery): > http://www.datadirect.com/developer/xquery/topics/xqj_tutorial/ > Get DataDirect XQuery: http://www.datadirect.com/products/xquery/ >=20 >=20 >=20