Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using XPath to retrieve attribute values?

 
Namitha karupaiya
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I retrieve the value of an attribute in an XML document using XPath?

For example, consider the followin XML fragment:

<message id=123>
</message>

I want to retrieve the value of id here?

Thank you very much.
 
Rajagopal Manohar
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I retrieve the value of an attribute in an XML document using XPath?

For example, consider the followin XML fragment:

<message id=123>
</message>

I want to retrieve the value of id here?



 
Namitha karupaiya
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! Rajagopal Manohar!

Thank you very much, your reply is very very useful for me.

Bye for now.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic