Re: [xml] Parser error: html entities not defined

On Tue, Sep 04, 2007 at 06:39:01AM -0300, Bruno Dilly wrote:
Hi people,

I'm trying to parse RSS with html entities, but I'm having the
following errors when it tries to parse the rss file:
Entity 'ntilde' not defined;
Entity 'iacute' not defined;

and others.

  are the HTML entities defined in the RSS DTD ? if yes then you
need to ask to load the DTD. If no, then using them there is an error.

I tried to find the solution in the libxml2 documentation and in the
list archives, but I didn't find the best way to solve the problem.

My code is something like:

    xmlDoc *doc = NULL;
    xmlNode *root_element = NULL;

    doc = xmlReadFile(fileName.c_str(), NULL, 0 );
    root_element = xmlDocGetRootElement(doc);

If you could help me, I will appreciate.
xml mailing list, project page
xml gnome org

Red Hat Virtualization group
Daniel Veillard      | virtualization library
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]