• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 434
  • Last Modified:

how to read xml file in java

Hi,
  How to read a xml file in java and display the contents of the xml file
0
mohankumarbangalore
Asked:
mohankumarbangalore
1 Solution
 
EricCommented:
0
 
arataniCommented:
Okay, I believe you asked Java and not javascript.

This is what I use,

http://www.developer.com/java/other/article.php/3099751

Abhishek (AJ) Ratani
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
lilian-arnaudCommented:

Try jdom (http://www.jdom.org), it's very easy to parse xml-tree
0
 
arataniCommented:
Its 20 points and 4 anaswers .. so every one must get 5 points each .. :D

AJ
0
 
arataniCommented:
I disagree .. egiblock gave a recommendation for an article that talks about Javascript and XML. However, the author had asked for something with Java and XML. My answer gives a tutorial with Java and XML.

AJ
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now