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/
[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