Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: reading an xpath attribute value (just the value) reading an xpath attribute value (just the value)To: NULL Date: 5/4/2007 8:53:00 AM
Hi,
Is there an xpath command to return just the value of an attribute and
not the enitre "attribute=value" string?
For example, on this data:
<people>
<person id="1">
<name>
Pete Freitag
</name>
</person>
<person id="2">
<name>
Dude
</name>
</person>
</people>
the xpath command: /people/person/@id
returns: id="1"
I only want the "1" , not the id= part.
Is this possible?
Thanks.
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
