Re: [xml] Bug in libxml 2.4.24? (missing line number in error message)
- From: Daniel Veillard <veillard redhat com>
- To: Uwe Fechner <ufechner csi com>
- Cc: libxml2-mailinglist <xml gnome org>
- Subject: Re: [xml] Bug in libxml 2.4.24? (missing line number in error message)
- Date: Mon, 23 Sep 2002 02:37:26 -0400
On Sun, Sep 22, 2002 at 12:24:34PM +0200, Uwe Fechner wrote:
Hello,
if I parse the following document:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE root ['
<!ELEMENT root (test*)>
<!ELEMENT test (#PCDATA)>
<!ATTLIST test name CDATA #IMPLIED>
]>
<egon />
I get the following error message:
:0:
validity error:
Not valid: root and DTD name do not match 'egon' and 'root'
<egon />
Hum strange, I can't reproduce this:
paphio:~/XML -> xmllint --valid tst.xml
tst.xml:7: validity error: Not valid: root and DTD name do not match 'egon' and 'root'
<egon />
^
tst.xml:7: validity error: No declaration for element egon
<egon />
^
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE root [
<!ELEMENT root (test)*>
<!ELEMENT test (#PCDATA)>
<!ATTLIST test name CDATA #IMPLIED>
]>
<egon/>
paphio:~/XML ->
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
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]