This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Reading attribute values of Element Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply locked New topic

Reading attribute values of Element

ravindra patil
Ranch Hand

Joined: Sep 01, 2006
Posts: 234
on .

i have xml like this

<x name="NONAME" />
<x name="NONAME1" />
<x name="NONAME2" />
<x name="NONAME2" />
here i want to read values of attribute name using XPath , i want to check for duplicate names so want all values of name attribute

John Jai

Joined: May 31, 2011
Posts: 1776
Duplicate of
Rob Spoor

Joined: Oct 27, 2005
Posts: 20132

Ravindra, if you believe your thread has been posted in the wrong forum, don't create a copy in the right forum but ask our staff to move the thread for you. I'll do so with your other thread.
I agree. Here's the link:
subject: Reading attribute values of Element
It's not a secret anymore!