I'm having some confusion on the type simpletype
, simplecontent
, complextype
and complexcontent
.
I'm almost new to xsd. Can someone help to clear the confusion that giving concrete examples.
xmlxsd
I'm having some confusion on the type simpletype
, simplecontent
, complextype
and complexcontent
.
I'm almost new to xsd. Can someone help to clear the confusion that giving concrete examples.
Best Answer
I know it's a bit late but I hope this article helps someone.
In short:
<complexType>
and<simpleType>
both define types. Complex types can have element descendants and attributes while simple types can't.Complex types can have simple or complex content. Types with
<complexContent>
can contain child elements while those with<simpleContent>
can only contain characters.