File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 18886
    
    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.
 
 
subject: reading xml with java