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:
> 
>     LIBXML_TEST_VERSION
>     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  http://xmlsoft.org/
> xml@gnome.org
> http://mail.gnome.org/mailman/listinfo/xml

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
[EMAIL PROTECTED]  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to