aspose file tools*
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
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply locked New topic
Author

Reading attribute values of Element

ravindra patil
Ranch Hand

Joined: Sep 01, 2006
Posts: 214
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
Bartender

Joined: May 31, 2011
Posts: 1776
Duplicate of http://www.coderanch.com/t/571204/java/java/Reading-attribute-values-Element
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19544
    
  16

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: http://aspose.com/file-tools
 
subject: Reading attribute values of Element
 
Similar Threads
ant problme
Reading attribute values of Element
XMLWhiz test ...
Digester in XML
modify the value of an existing attribute in XSLT