my dog learned polymorphism
The moose likes XML and Related Technologies and the fly likes How to read Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to read" Watch "How to read" New topic

How to read

Muthu Vel

Joined: Jan 09, 2003
Posts: 12
Hello Everybody,
I am new to XML. How to read the values stored in an XML file using Java? Where can I get the sample programs? Where can I get more details regarding this?

Thanks in Advance..<br /> smvel
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
    5 has an answer for you. That example uses a standard XML parsing API called DOM. There are also alternatives such as SAX and JDOM (an open source project).
Elliotte Rusty Harrold has generously published his book online and the site, Cafe con Leche, is a great XML resource for Java developers.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
I agree. Here's the link:
subject: How to read
It's not a secret anymore!