On 25.11.2011, at 02:13, jida...@jidanni.org wrote: > Package: basex > Version: 7.0.2-1 > Severity: wishlist > File: /usr/share/doc/basex/examples/input.xml > > http://www.validome.org/ says /usr/share/doc/basex/examples/input.xml is > not valid... Same with Emacs' nXML mode. > > Something about the 2nd line. > > All above my level. > > All I know is it would be nice to use a valid file. > > This would also affect the quote of the file on the man page.
Hi jidanni, thanks for reporting. Well, the XML file is correct, i.e., the file is 'well-formed'. Alas, it has no DTD or XML Schema attached against which one could test its validity. So this is why validome.org can not verify and reports an error. [1] A good command line tool to use for that purpose is xmllint(1) from the libxml2 GNOME XML library. $ xmllint /usr/share/doc/basex/examples/input.xml <?xml version="1.0" encoding="UTF-8"?> <html> <!-- Header --> <head id="0"> <title>XML</title> </head> <!-- Body --> <body id="1" bgcolor="#FFFFFF" text="#000000" link="#0000CC"> <h1>Databases & XML</h1> <div align="right"> <b>Assignments</b> <ul> <li>Exercise 1</li> <li>Exercise 2</li> </ul> </div> </body> <?pi bogus?> </html> ---> XML file is well-formed Since we do not have a Document Type Definition (DTD) the following will fail: $ xmllint --valid /usr/share/doc/basex/examples/input.xml /usr/share/doc/basex/examples/input.xml:2: validity error : Validation failed: no DTD found ! I'll think about including a simple DTD in the next release. Thanks, Alex [1] http://en.wikipedia.org/wiki/XML#Schemas_and_validation -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org