XSD problem with &
Posted: Fri Aug 20, 2004 4:40 pm
Hi,
I've got following schema:
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="PERSON1">
<xs:complexType>
<xs:all>
<xs:element name="NAME1" />
</xs:all>
</xs;complexType>
</xs:element>
</xs:schema>
and I want to validate following XML file:
<PERSON1>
<NAME1>Vanessa & I</NAME1>
</PERSON1>
When I parse I get the error that the & is not valid
I've got following schema:
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="PERSON1">
<xs:complexType>
<xs:all>
<xs:element name="NAME1" />
</xs:all>
</xs;complexType>
</xs:element>
</xs:schema>
and I want to validate following XML file:
<PERSON1>
<NAME1>Vanessa & I</NAME1>
</PERSON1>
When I parse I get the error that the & is not valid