File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes  java class from xml ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark " java class from xml ?" Watch " java class from xml ?" New topic

java class from xml ?

Ankit Pedro

Joined: Mar 23, 2005
Posts: 12
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

Joined: Mar 15, 2004
Posts: 539
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.

I agree. Here's the link:
subject: java class from xml ?
jQuery in Action, 3rd edition