To get just the value (without attribute names), use string()
:
string(//Parent[@id='1']/Children/child/@name)
The fn:string() fucntion will return the value of its argument as xs:string
. In case its argument is an attribute, it will therefore return the attribute's value as xs:string
.