• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

reading xml with java

 
vijay kumar
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends ,

How to read an XML file data by giving a specific element value as input
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Prabhu Venkatachalam
Ranch Hand
Posts: 502
Java jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can use dom4j open source library which implements DOM and XPATH specification using JAXP.

hth,
 
Paul Clapham
Sheriff
Posts: 21002
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic