New submission from Tobias Kuhn:
The first line of an XML file should be something like this:
<?xml version='1.0' encoding='UTF-8'?>
The XML parser of xml.sax, however, seems to ignore the value of "version":
<?xml version='X' encoding='UTF-8'?>
This should give an error, but it doesn't. It's not a very serious problem, but
this should raise an error to be standards-compliant.
I experienced this bug in the rdflib package:
https://github.com/RDFLib/rdflib/issues/347
----------
components: XML
messages: 204720
nosy: tkuhn
priority: normal
severity: normal
status: open
title: XML version is ignored
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue19832>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com