XML : Diferents elements types in XSD

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 diferent structures but I can't modify the XML because I need an XSD for an 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 complextype structure for both "components". it must be separated.

Thank You. Have a nice day.

No comments:

Post a Comment