aspose file tools*
The moose likes XML and Related Technologies and the fly likes Basic schemagen usage question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Basic schemagen usage question" Watch "Basic schemagen usage question" New topic
Author

Basic schemagen usage question

Toby Eggitt
Ranch Hand

Joined: Dec 08, 2004
Posts: 41
Hi gang,

So, I have a really silly/basic question trying to use schemagen, but I'm darned if I can find this in the docs (but I don't really believe it's not there!)

I am starting with Java classes and looking to use schemagen to create the "parts" to allow me to marshal/unmarshal the objects. (BTW, my knoweldge is limited, but I have successfully done this starting from an XSD file using xjc, so I'm not totally beginner).

I have written a Java class, and annotated it with the likes of @XmlElement, and run schemagen against it. The problem is that there's no ObjectFactory (xjc of course, creates this for me, so I was expecting the same thing here), and so parsing fails. Am I supposed to create the ObjectFactory class myself, or is it created for me. And if it's supposed to be created for me, how do I make this happen. If I write it, what are the specifications for it?

Thanks!
Toby

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Basic schemagen usage question