File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes Is it possible to generate Java classes from XML? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "Is it possible to generate Java classes from XML?" Watch "Is it possible to generate Java classes from XML?" New topic
Author

Is it possible to generate Java classes from XML?

Saurabh Pillai
Ranch Hand

Joined: Sep 12, 2008
Posts: 410
I don't have schema file.

[Edit :- Removed 'JAXB' from subject, I want to be able to generate Java classes from XML using any technology.]
Koen Aerts
Ranch Hand

Joined: Feb 07, 2012
Posts: 339

I don't think it's possible without a schema. Can you generate a schema from the XML with XMLSpy? More info here: http://bitrazor.com/content/tivo/hme/howtos/jaxb/index.php
Saurabh Pillai
Ranch Hand

Joined: Sep 12, 2008
Posts: 410
Thank you Koen. I did go on the same path as you pointed. But I used different tool, XML Schema Definition Tool from Microsoft.

Somehow my company firewall is blocking the page you pointed out saying it is categorized as 'Games'. :-)
 
 
subject: Is it possible to generate Java classes from XML?
 
Threads others viewed
Generate XML using XSD and data in CSV
Generating XML from reports stored in Database
without xml schema, generate java classes from xml data file ?
Getting xml contents from wsdl2java class
JAXB in eclipse
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com