I had the same problem. Is there already a predefined DTD somewhere that
defined the nbsp entity and other widely used entities not directly
supported by XML?

-----Original Message-----
From: Keith Visco [mailto:kvisco@;intalio.com]
Sent: Monday, October 28, 2002 1:59 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] non-breaking-space " " entities in xml



XML has built in support for &lt; ('<'), &gt; ('>'), &amp; ('&'), but
for most other entities that you use, including &nbsp; you will need to
declare them in either your DTD or use the numeric code.

These entities are often used in HTML without the need to declare them
because the HTML spec already declares them, this is not the case with
XML however.

--Keith

Grzegorz Misztalewski wrote:
> 
> Hi all
> 
> I have problem with unmarshalling xml containing &nbsp; entity.
> When trying to unmarshal such a document, I get
> 
> org.xml.sax.SAXException: Parsing Error : The entity "nbsp" was
> referenced, but not declared.
>       [java] Line : 2
>       [java] Column : 152
>       [java]     at
>
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117
6)
>       [java]     at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown
> Source)
>       [java]     at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown
> Source)
> 
> Other entities (&lt; &gt; etc.) are handled correctly.
> 
> Is there any solution to handle &nbps; entities correctly?
> 
> Thanks,
> Grzegorz
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to