Hi Daniel,

Thanks for your help. It works!

Jiang

On Wed, Apr 23, 2008 at 5:11 PM, Daniel Veillard <[EMAIL PROTECTED]>
wrote:

> 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. &uuml; 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/
> [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/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to