You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Tankut Koray <tk...@aselsan.com.tr> on 2002/09/25 14:57:10 UTC
Xupdate an Attribute
Hi,
I am trying to update an attribute of a xml node. Lets say xml in Xindice is:
<item state="A"/>
I tried to use Xupdate as:
<xupdate:update select="/item/@state">B</xupdate:update>
But this return an query error in runtime( I think it is a parse error) I knew that
:DB API does not support attribute in Xpath but I heard someone saying this type of think works in Xupdate.
I also tried the following:
<xupdate:update select="/item[last()]/@state">B</xupdate:update>
But also, this does not work.
Any comments,
TKoray