Parse XML document with external entity.
1 posts in topic
Flat View  Flat View

Posted By:   Eric_Yip
Posted On:   Wednesday, August 8, 2001 09:04 PM

I'm trying to parse a XML string using xerces.

However, I'm getting the following exception:

org.xml.sax.SAXParseException: The entity "nbsp" was referenced, but not declared.

I'm parsing the string, it's just ABC 

How do we declare this entities to the XML parser??


Re: Parse XML document with external entity.

Posted By:   abhishek_dubey  
Posted On:   Thursday, August 30, 2001 11:59 PM

Your XML document is having blank spaces and these blank spaces are coded as  .

& in front of any word in XML denotes that that word is entity.

Just trim the contents and it will work.

About | Sitemap | Contact