Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java class from xml ?

 
Ankit Pedro
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to generate a java class from xml file ?

Is there any specific API's and tutorials ?

Any help would be appreciated.
 
Tim West
Ranch Hand
Posts: 539
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are a zillion libraries for this - the one that's best depends on your needs. From memory, some terms to Google for are JAXB (Sun's system), or JAX-RPC if you want a full Web services kit. Apache has Commons Digester, a simple but less powerful system, and XMLBeans, a JAXB implementation (I think!)

These are only some of many options - if you tell us what you intend to do with the Java classes / XML files, perhaps we can give more specific recommendations.


-Tim
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic