Re: [xml] parser error : Unregistered error message
- From: Daniel Veillard <veillard redhat com>
- To: Michael Day <mikeday yeslogic com>
- Cc: xml gnome org
- Subject: Re: [xml] parser error : Unregistered error message
- Date: Wed, 2 May 2007 12:48:46 -0400
On Sun, Apr 29, 2007 at 08:23:45PM +1000, Michael Day wrote:
Hi,
If you run xmllint on the following document:
<!DOCTYPE ent [
<!ENTITY start "<foo>">
]>
<ent>
&start;
</ent>
You get this output:
Entity: line 1: parser error : Premature end of data in tag foo line 1
<foo>
^
ent.xml:5: parser error : Unregistered error message
&start;
^
The first error message sounds reasonable, but the second looks like a
bug of some kind, or perhaps an unhandled case?
Yup, the error handling was a bit crude. I tried to fix this in the following
way:
Entity: line 1: parser error : Premature end of data in tag foo line 1
<foo>
^
tst.xml:5: parser error : Entity 'start' failed to parse
&start;
^
commited, thanks for the heads up !
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]