Hello James,

the information is being in the first place from a html form gathered and saved in a 
file.
so I know there would be no entity reference in the xml file and it would be easier if 
it is possible to tell the parser not to expect an entity reference otherweise each 
input in the form musst be filtered. (something similar to #CDATA in DTD's).

thanks for any hint

Mohammed

-----Urspr�ngliche Nachricht-----
Von: James Carman [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 7. Januar 2003 17:34
An: [EMAIL PROTECTED]
Betreff: Re: & within a string / parser expects an entity reference


The XML is invalid.  It's not the schema giving you the problem.  You need
to use a & instead of &.

----- Original Message -----
From: "Akacem Mohammed" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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
>
>
>

Reply via email to