First, sorry for my English.
I want to know how to create a XSD from this XML without subtyping
<component>
<id />
<entry>
<relation>
<observation>
<id />
</observation>
</relation>
</entry>
</component>
<component>
<id code="" />
<entry>
<observation status="" value="">
<id />
</observation>
</entry>
</component>
As you see there are 2 elements named "component" with different structures but I can't modify the XML because I need an XSD for a standard XML for CDA (Clinical Document Architecture).
I can't add the "type" attribute to the "component" element and I can't use the same complex type structure for both "components". It must be separated.