*
The moose likes XML and Related Technologies and the fly likes reading xml with java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "reading xml with java" Watch "reading xml with java" New topic
Author

reading xml with java

vijay kumar
Ranch Hand

Joined: Nov 10, 2006
Posts: 62
hi friends ,

How to read an XML file data by giving a specific element value as input
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
I could not get the question properly.Do you want to read value of a particular element from a xml file? If that is the case, you can read the xml into a dom and then xpath to fetch the values.


Rahul Bhattacharjee
LinkedIn - Blog
Prabhu Venkatachalam
Ranch Hand

Joined: Nov 16, 2005
Posts: 502

you can use dom4j open source library which implements DOM and XPATH specification using JAXP.

hth,


Prabhu Venkatachalam<br />SCJP 1.4,SCWCD 1.4<br />prabhu.venkatachalam@gmail.com
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

"vijay", welcome to the JavaRanch.

We're friendly here, but we do require members to have valid display names.

Display names must be at least two words: your first name, a space, then your last name. Fictitious names are not allowed. And if you think about it a bit, you aren't the only "vijay" posting here.

Please edit your profile and correct your display name since accounts with invalid display names will be deleted.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: reading xml with java
 
Similar Threads
Pronounciation of "Buzz Words"
making XML Doc from JDBC Results
Ajax Jqery xml response - not able to read response
Castor Mapping
iText problem with html-table to pdf