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 XML convertor 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 "XML convertor" Watch "XML convertor" New topic

XML convertor

Sam De Albin

Joined: May 10, 2004
Posts: 3
hi all

can anyone suggest some tools which convert XML files to text files and vice versa, according to our validation rules???
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
You should first take a look at whether XSL is powerful enough.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
This " vice versa" made XSLT is absolutely not working.
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Originally posted by Roseanne Zhang:
This " vice versa" made XSLT is absolutely not working.

Well not exactly. Check out Michael Kay's book about XLST and you will see, that you cold transform plain text to XML as well. It makes eventually sense to write some wrapper around xlst transformation. We usually transform ASCII into a flat XML and into it's target schema after that.
XMLSpy or Stylus Studio would be good tools.
;-) stw
I agree. Here's the link:
subject: XML convertor
jQuery in Action, 3rd edition