Win a copy of Learn Spring Security (video course) this week in the Spring forum!
    Bookmark Topic Watch Topic
  • New Topic

Reading attribute values of Element

 
ravindra patil
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Report post to moderator
on .

i have xml like this

<Root>
<elemt1>
<x name="NONAME" />
<x name="NONAME1" />
<x name="NONAME2" />
<x name="NONAME2" />
</elemt1>
</Root>
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

-ravi
 
John Jai
Rancher
Posts: 1776
 
Rob Spoor
Sheriff
Pie
Posts: 20492
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
    Bookmark Topic Watch Topic
  • New Topic