[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] Parser error: html entities not defined
- From: Daniel Veillard <veillard redhat com>
- To: Bruno Dilly <bruno dilly gmail com>
- Cc: xml gnome org
- Subject: Re: [xml] Parser error: html entities not defined
- Date: Tue, 4 Sep 2007 07:01:02 -0400
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/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]