aspose file tools*
The moose likes XML and Related Technologies and the fly likes java classes for xml schema Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "java classes for xml schema" Watch "java classes for xml schema" New topic

java classes for xml schema

Swapan Mazumdar
Ranch Hand

Joined: Jul 23, 2003
Posts: 83
Please suggest the best practices of creating java classes for xml schema (.xsd). Actually the requirement is to instantiate java objects, payment details and eventually send an xml file with details of shooping cart to payment gateway.
In have some understanding about JAXB that I had used earlier for capturing of census data from remote locations.

Please provide your inputs.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12675
JAXB seems to be widely accepted - for example in the Java Web Services Developer Pack.
Have you tried your schema with a recent edition of JAXB?

Java Resources at
Swapan Mazumdar
Ranch Hand

Joined: Jul 23, 2003
Posts: 83
Hi Bill,

Thanks for your input. I have just begun with Castor. Though I stumbled initally while creating java classes with the existing .xsd file because of some Special Data Type like GUID with curly braces, yet I still continued with it. I found it limiting at times when schema had special elements of data type.

Do you think I still might consider moving over to jaxb considering the problems I had initially. Pl. consider that my requirement is to create xml file(input) from shopping cart and create output as xml to be passed it over to payment gateway.


I agree. Here's the link:
subject: java classes for xml schema
Similar Threads
A question about XML/Java Type Mappings
about java2WSDL tool
convert java classes to .xsd xml schema in eclise
convert xml to java objects using JAXB
without xml schema, generate java classes from xml data file ?