my dog learned polymorphism
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "reading xml with java" Watch "reading xml with java" New topic

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.


Prabhu Venkatachalam<br />SCJP 1.4,SCWCD 1.4<br />
Paul Clapham

Joined: Oct 14, 2005
Posts: 19758

"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:
subject: reading xml with java
jQuery in Action, 3rd edition