jQuery in Action, 3rd edition
The moose likes XML and Related Technologies and the fly likes XML Schema and JAXB 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 "XML Schema and JAXB" Watch "XML Schema and JAXB" New topic

XML Schema and JAXB

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 10032


I do not understand one thing from the tutorials that I see from SUN is that to use JAXB, we need only a Schema defined and from the schema, we derive the Java sources. From where do the XML come from? As far as I understood, from the Java Sources we can marshall it to an XML document. Am I right?

I'm referring to the tutorial here.

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 10032

Can anyone please help me on how I can represent a Collection type in an XML Schema? For example, I have in my Java class (I'm using JAXB) as follows,

How can I represent the above Collection variable in an XML schema?
Moshe Elisha

Joined: Jun 11, 2007
Posts: 2
You can try looking here:

Practical XML Schema
I agree. Here's the link: http://aspose.com/file-tools
subject: XML Schema and JAXB
It's not a secret anymore!