File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Basic schemagen usage question

 
Toby Eggitt
Ranch Hand
Posts: 49
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic