A Mistake of Using xmlreader from Libxml2

| No Comments | No TrackBacks
Today, I got an error returned when I was using xmlreader from Libxml2 to parse an XML document, which contains many entities of Latin letters (e.g. ü,ä, etc.). It reported that these entities are not defined. I felt confused because a character entity set has been defined somewhere. What's the problem?
I have to turn to gnome xml mailing list. I got a prompt reply from Daniel Veillard. He suggested me to add XML_PARSE_DTDLOAD option when creating the reader as the default behaviour doesn't load the DTD file. After the option was added, the document got parsed correctly.

No TrackBacks

TrackBack URL: http://lua.me/cgi-bin/mt/mt-tb.cgi/30

Leave a comment

About this Entry

This page contains a single entry by Jiang published on April 23, 2008 8:41 AM.

一个数字添图游戏 was the previous entry in this blog.

Sorted Duplicate Records is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.