- From: Dibyendu Roy <DibyenduR@catsglobal.co.in>
- Date: Fri, 31 Aug 2001 11:23:14 -0400 (EDT)
- To: xmlschema-dev@w3.org
Hi All, I have created one xml schema file where I have specified one element following way: ---------------------------------------------------------------------------- ------------------------------------- <?xml version = "1.0"?> <xsd:schema xmlns:xsd ='http://www.w3.org/2001/XMLSchema'> <xsd:element name = "roleName"> <xsd:simpleType> <xsd:restriction base = "xsd:string"> <xsd:minLength value= "1"/> <xsd:maxLength value= "100"/> </xsd:restriction> </xsd:simpleType> </xsd:element> ---------------------------------------------------------------------------- --------------------------------------- Now if I validate an xml file where 'roleName' element contain following expression : "Jenson & Nicholson", I get following error: "Stopping after fatal error: The entity name must immediately follow the '&' in the entity reference" . So, It seems that though the type of the element roleName is set as xsd:string, It does not allow '&' sign to be contained. If you could please suggest me how to solve this problem I will be highly obliged. Thanks and Best Regards, Dibyendu Roy
Received on Saturday, 1 September 2001 06:28:43 UTC