• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML Schema and JAXB

 
Joe Harry
Ranch Hand
Posts: 10112
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

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.
 
Joe Harry
Ranch Hand
Posts: 10112
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try looking here:

Practical XML Schema
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic