Title: RE: [castor-dev] non-breaking-space " " entities in xml

Hi Grzegorz,

I had this same issue the other day. Try using the number code   instead. The schema seems to only like name codes like & ' > < ".

Otherwise the schema seems to only accept number codes. I have attached a list of special character codes.

Hope this helps
Jamie

-----Original Message-----
From: Grzegorz Misztalewski [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 28, 2002 9:59 AM
To: [EMAIL PROTECTED]
Subject: [castor-dev] non-breaking-space " " entities in xml


Hi all

I have problem with unmarshalling xml containing   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:1176)
      [java]     at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown
Source)
      [java]     at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown
Source)

Other entities (< > 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

 

Attachment: SpecCharacters.zip
Description: Binary data

Reply via email to