axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Akacem Mohammed <>
Subject & within a string / parser expects an entity reference
Date Tue, 07 Jan 2003 16:29:27 GMT
Hello ,

I am using Schemata to parse an xml file. and have among other the following element

<xs:element name="Firmname"> 
		<xs:restriction base="xs:string"> 
		<xs:maxLength value="90" /> 

the firmmname element contains an & charachter for  example: Gmbh & Co.KG
the SaxParser is throwing the following error:

Fatal_Error The entity name must immediately follow the '&' in the entity reference. 
at line:  7

How should I change the definition of my element in the *.xsd file so that the parser doesn't
expects an 

entity reference

thanks for any help


View raw message