Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Generate Java classes from XSD
Generate Java classes from XSD [message #602685] Wed, 31 October 2007 03:39
Andrew is currently offline Andrew
Messages: 17
Registered: July 2009
Junior Member
I am new to tools such as JAXB, so please forgive me if the answer is
simple.

I am trying to generate java classes from an XSD document. I installed a
plugin for JAXB (version 2.1). This generated my classes, but it
generated '@Xml*' code: eg:

@XmlAccessorType
@XmlEnum
@XmlType

etc

These do not work with java 1.6, and I don't want to have to revert back
to java 1.5.

I am essentially trying to find an easier way to deal with xml rather than
using SAX and DOM directly. I don't really want to have to worry about
the underlying XML structure. I wish to just pump my data into the java
objects, and then marshal the java data into the xml file that I require.
With the objects bound using the xsd document, I know this is achievable
(and many out there are probably doing this already).

I have a simple project I am working on so I can get my knowledge up to
speed. Having the right plugin would be helpful. Can somebody please
point me in the right direction.

Thankyou.
Previous Topic:Importing old version XSD model to new emf .ecore
Next Topic:Generate Java classes from XSD
Goto Forum:
  


Current Time: Sat Oct 25 18:14:02 GMT 2014

Powered by FUDForum. Page generated in 0.01458 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software