Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is it possible to generate Java classes from XML?

 
Saurabh Pillai
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 344
Java Linux Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 524
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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'. :-)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic