File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes Convert XML file to String 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 "Convert XML file to String" Watch "Convert XML file to String" New topic

Convert XML file to String

tushar jayawant

Joined: Aug 20, 2003
Posts: 19
Hi to All

How to read a XML file and convert it into a String.......

Thankx and Regard's
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
How to read a XML file...

See The Quintessential Program to Create a DOM Document from an XML File at the Java Developer's Almanac.
...and convert it into a String?

See DocumentToString in our wiki.

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