I know that is a newbie question, but is there a way to get the text value of an attribute via xquery o x-query without parsing the element?

/Root//@attribute give me also the Element Root.
How can i get only the result ‘value’"?


[This message was edited by @nto on 15 May 2003 at 11:15.]

Hello @nto,

you can use the string() function. For example: string(/Root/@attribute)

I hope that helps,