AW: Re: AW: Re: [xml] xmllint problems




Hi,

On Tue, 2005-10-18 at 14:43 +0200, oliverst online de wrote:

On Tue, 2005-10-18 at 13:16 +0200, oliverst online de wrote:
When I run xmllint with "--valid" or "--postvalid" it does crash when 
using
the XML output of MAME as input (http://www.breaken.de/temp/output.xml).

Cannot reproduce the crash on my Debian (sarge) box:

kbu librax:/data/home/kbuchcik/temp$ xmllint --valid output.xml
output.xml:143: element driver: validity error : No declaration for
attribute savestate of element driver
color="good" sound="good" graphic="good" savestate="supported"
palettesize="32"
[... some hundreds of validation errors...]
</game>
</mame>

This is happening because of a missing DTD entry. Add this to the DTD before 
the "palettesize" entry and those warnings should go away.

<!ATTLIST driver savestate (supported|unsupported) #REQUIRED>

[...]

I added the DTD line, but still no crash:

kbu librax:/data/home/kbuchcik/temp$ xmllint --noout --valid output.xml
kbu librax:/data/home/kbuchcik/temp$

I didn't expect it to crash with the addutional line, but the validation errors/warnings to go away.

Note that I used the latest CVS sources for the test, so maybe your
problem was already fixed; or it's a weird platform problem.

Maybe. I will try to fetch the latest CVS code and run it with that.

kbu librax:/data/home/kbuchcik/temp$ xmllint --version
xmllint: using libxml version 20622-CVS2645
  compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1
FTP HTTP DTDValid HTML Legacy C14N Catalog XPath XPointer XInclude
IconvISO8859X Unicode Regexps Automata Expr Schemas Schematron Modules
Debug MemDebug RunDebug

I used the zipped XML document in
"http://www.breaken.de/temp/output.zip";, since
"http://www.breaken.de/temp/output.xml"; did not exist.

Oops...good thinking. It was supposed to be output.zip. I mistyped.

So long
Oliver



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