Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

difference between complex and simple type in XML schema

 
Divya Gehlot
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can any tell me whats the difference between complex and simple types in XML schema. As most of the I will be with the term.
Thanks in advance.
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simple element types will not contain other elements, they only contain data. (Java analogue: primitive types)
Complex types define the organization of elements that contain other elements (Java analogue: Java class with fields but no methods (XML doesn't have "behavior"; XML is semi-structured data))

See also RMH p36 and p39.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic