I want to create an XSD which can generate the following XML.
<note>
<email:to>[email protected]</email:to>
<from>[email protected]</from>
</note>
How to write XSD element definition for the element.
<xsd:element name="note">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="email:to" type="xsd:string"/>
<xsd:element name="from" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
Here the element name "email:to" fails validation.
How can I represent this in XSD?
Thank you.