GouthamAnand
asked on
how to create our own boolean type in XSD?
Hi,
One of my XML element <TaxDocumentationRequired> should have either 'Y' or 'N'.
I did as below - but still it did not work for me.
It says "Type 'http://www.w3.org/2001/XMLSchema:myBoolean' " is not declared.
<xs:element type="xs:myBoolean" name="TaxDocumentationRequ ired"/>
<xs:simpleType name="myBoolean">
<xs:restriction base="xs:string">
<xs:enumeration value="Y"/>
<xs:enumeration value="N"/>
</xs:restriction>
</xs:simpleType>
Can anyone help please?
One of my XML element <TaxDocumentationRequired>
I did as below - but still it did not work for me.
It says "Type 'http://www.w3.org/2001/XMLSchema:myBoolean' " is not declared.
<xs:element type="xs:myBoolean" name="TaxDocumentationRequ
<xs:simpleType name="myBoolean">
<xs:restriction base="xs:string">
<xs:enumeration value="Y"/>
<xs:enumeration value="N"/>
</xs:restriction>
</xs:simpleType>
Can anyone help please?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
welcome
ASKER