• 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.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!