This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

complexType vs anonymous complexType

Rithanya Laxmi
Ranch Hand
Posts: 184
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am using complexType in my XSD which doesnot generate the @XmlRootElement and will generate an ObjectFactory using JAXB XJC. Where the advantages i feel with complexType are :-

1) If an element is referenced in multiple XSD documents use it.
2) Better reusability
3) Supports multiple root level elements declarataion.

Please let me know what are the adv of using complexType in place of anonymous complexTypes?


I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic