Re: [xml] Entity not defined
- From: Daniel Veillard <veillard redhat com>
- To: Jiang Li <jiangli001 gmail com>
- Cc: xml gnome org
- Subject: Re: [xml] Entity not defined
- Date: Wed, 23 Apr 2008 03:11:32 -0400
On Wed, Apr 23, 2008 at 05:00:10PM +1000, Jiang Li wrote:
Hi all,
I got a problem when I parse an XML document with xmlreader from Libxml2.
The document's encoding is ISO-8859-1 and contains many entities of Latin
letters (e.g. ü etc.).
However, the xmlreader returns errors that these entities are not defined.
Could
anyone give me some suggestions? Thanks.
By defaut libxml2 does not load the DTD where the entities are likely to
be defined (if not it's a fatal error), to do this you need to pass the
XML_PARSE_DTDLOAD option when you create the Reader.
Daniel
--
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]