axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Carman" <ja...@carmanconsulting.com>
Subject Re: & within a string / parser expects an entity reference
Date Tue, 07 Jan 2003 16:34:05 GMT
The XML is invalid.  It's not the schema giving you the problem.  You need
to use a &amp; instead of &.

----- Original Message -----
From: "Akacem Mohammed" <Mohammed.Akacem@arbeitsamt.de>
To: <axis-user@xml.apache.org>
Sent: Tuesday, January 07, 2003 11:29 AM
Subject: & within a string / parser expects an entity reference


> Hello ,
>
> I am using Schemata to parse an xml file. and have among other the
following element
>
> <xs:element name="Firmname">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:maxLength value="90" />
> </xs:restriction>
> </xs:simpleType>
> </xs:element>
>
> 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
>
> Mohammed
>
>
>


Mime
View raw message