Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in XML only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
XML
XML Problem
XML Problem
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Muhammad Raheel
New Member
Join Date:
Feb 2011
Posts:
2
#1
XML Problem
Feb 22 '11, 11:08 AM
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
Join Date:
Aug 2008
Posts:
8694
#2
Feb 22 '11, 06:47 PM
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
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment