||  -----Original Message-----
||  From: [EMAIL PROTECTED] 
||  [mailto:[EMAIL PROTECTED] On Behalf Of Paul J. Caritj
||  Sent: woensdag 11 december 2002 08:19
||  To: [EMAIL PROTECTED]
||  Subject: Updating Attribute Values
||  
||  given the document:
||  
||  <itemgroup>
||      <item id="1" name="brick">
||              .....
||      <item id="2" name="cat">
||              ....
||  </itemgroup>
||  
||  how would I select the ID of a "brick" ?
||  
||  My inclination would be the following: 
||  /[EMAIL PROTECTED]"brick"]/attribute::id
||  

Hi Paul, 

Try this: 

/itemgroup/[EMAIL PROTECTED]"brick"]/@id

Or this

//[EMAIL PROTECTED]"brick"]/@id 

Btw this is more an XPath issue that a XUpdate issue because XUpdate
uses XPath to select nodes to perform operations on.

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/
----------------------------------------------------------------------

Reply via email to