Hi Fabio,

 | -----Original Message-----
 | From: [EMAIL PROTECTED] 
 | [mailto:[EMAIL PROTECTED]
 | Behalf Of Fabio Zschornack
 | Sent: maandag 8 juli 2002 22:50
 | To: [EMAIL PROTECTED]
 | Subject: question
 | 
 | <xupdate:modifications version="1.0" 
 | xmlns:xupdate="http://www.xmldb.org/xupdate";>
 |      <xupdate:remove select="/friends/[EMAIL PROTECTED]'1']/age"/>
 |      <xupdate:insert-before select="/friends/[EMAIL PROTECTED]'1']/age">
 |              <xupdate:element name="address">Rua X, 
 | 190</xupdate:element>
 |      </xupdate:insert-before>
 | </xupdate:modifications>
 | 
 | would this be possible to do?

You will receive an exception saying that you haven't selected a node
when you perform this xupdate query.

 | Re-making the question: is the modification document applied 
 | atomically over 
 | XML, or is each operation (remove, insert, ...) performed 
 | separately? I guess 
 | that this kind of modification may appear in some cases but 
 | I don't have 
 | conditions to test in my system. 

Each operation is performed atomically so the age element in your
example is already removed when you try to select it to insert another
element before it hence the exception.

regards,

Jeroen Breedveld

--

X-Hive Corporation
e-mail: [EMAIL PROTECTED]
phone: +31 10 7108622
http://www.x-hive.com


----------------------------------------------------------------------
Post a message:         mailto:[EMAIL PROTECTED]
Unsubscribe:            mailto:[EMAIL PROTECTED]
Contact administrator:  mailto:[EMAIL PROTECTED]
Read archived messages: http://archive.xmldb.org/
----------------------------------------------------------------------
  • question Fabio Zschornack
    • Jeroen Breedveld

Reply via email to