• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

complexType vs anonymous complexType

 
Rithanya Laxmi
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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?

Thanks.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic