Message137329
Minidom raises an exception if there's a space anywhere in the URI of an xmlns, but it is legal (but terrible practice) to have spaces in URIs. I think this should work or politely raise a syntax error. E.g., this fails: xmlns:abc="http:abc.com/de f g/hi/j k".
The attachment xml file from an end user has this xmlns:
xmlns:verrels=" http://xbrl.org/2010/versioning-relationship-sets"
which causes minidom to raise a ValueError exception, instead of a sensible syntax error message.
The relevant python code is expabuilder.py, method _parse_ns_name, which does not have an elif for len(parts) != 2 (to raise a syntax error which identifies the bad construct). |
|
Date |
User |
Action |
Args |
2011-05-30 21:06:13 | hfischer | set | recipients:
+ hfischer |
2011-05-30 21:06:13 | hfischer | set | messageid: <1306789573.92.0.875996944294.issue12220@psf.upfronthosting.co.za> |
2011-05-30 21:06:13 | hfischer | link | issue12220 messages |
2011-05-30 21:06:13 | hfischer | create | |
|