[xml] Bug in libxml 2.4.24? (missing line number in error message)



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

Using libxml 2.4.23 I get the following error message:

Entity: line 6:
validity error:
Not valid: root and DtD name do not match 'egon' and 'root'
<egon />
     ^

I am missing the line number in the new error messsage.

I think, it is important, to get the line number in the
error string, because otherwise it is hard to find the
error.

Could someone check this?

Best regards:

Uwe Fechner






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]