XML Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Muhammad Raheel
    New Member
    • Feb 2011
    • 2

    #1

    XML Problem

    How can I access xml data within attribute in XML using XPATH? Like <books category='Datab ase'>. I want to get records of all book which have category 'Database'.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    you mean you want to get all <books> that have the attribute category set to Database?

    then use the XPath condition node[expression].
    in your case that would be //books[attribute::cate gory = 'Database']

    Comment

    Working...