I have this HTML code:
<description>This is an <a href="example.htm">example</a> <it>text </it>!</description>
For this code, I have to create an XSD.
My try was to create an element with xs:all for a tag and it tag. But how can I create the simple text within the xs:all? I tried it with an string element, but this is of course wrong, because it is an element. But also if I am using an any element, it is an element. How can I create this simple text within the a and it tags?
<xs:element name="description" minOccurs="0">
<xs:complexType>
<xs:all>
<xs:element name="a">
<xs:complexType>
<xs:attribute name="href" type="xs:string" />
</xs:complexType>
</xs:element>
<xs:element name="it" type="xs:string" />
<xs:element name="text" type="xs:string" />
</xs:all>
</xs:complexType>
</xs:element>