You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Tarkus, Anand (LNG-DAY)" <an...@lexisnexis.com> on 2003/09/22 02:09:29 UTC

please help: Internal entity resolution.

The input XML document to SAX2 Xerces parser contains:

<doc>
    <data>
        some&nbsp;application&nbsp;data&nbsp;
    </data>
</doc>

parsing this document generates a fatal error: Entity 'nbsp' was not found

is there a way to resolve this error?

Thanks,
Anand.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: please help: Internal entity resolution.

Posted by Michael Glavassevich <mr...@apache.org>.
Hi Anand,

If you make a reference to an entity (such as nbsp) in your document it
needs to be declared in your DTD with an entity declaration [1]. The only
entities that you do not have to declare are the predefined entities [2]:
lt, gt, amp, quot, and apos. These are the only entities that the parser
will recognize without declarations.

[1] http://www.w3.org/TR/REC-xml#sec-entity-decl
[2] http://www.w3.org/TR/REC-xml#sec-predefined-ent

On Sun, 21 Sep 2003, Tarkus, Anand (LNG-DAY) wrote:

> The input XML document to SAX2 Xerces parser contains:
>
> <doc>
>     <data>
>         some&nbsp;application&nbsp;data&nbsp;
>     </data>
> </doc>
>
> parsing this document generates a fatal error: Entity 'nbsp' was not found
>
> is there a way to resolve this error?
>
> Thanks,
> Anand.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org

--------------------
Michael Glavassevich
mrglavas@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org