DTDParseError: failed to load external entity "NULL"
Bug #1105057 reported by
Ulrich Seidl
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Confirmed
|
Low
|
Unassigned |
Bug Description
Loading a DTD from a path containing a space fails. E.g.:
lxml.etree.DTD( "/tmp/a b.dtd" )
will lead to:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "dtd.pxi", line 297, in lxml.etree.
lxml.etree.
Doing:
fd=open( "/tmp/a b.dtd", "r" )
lxml.etree.DTD( fd )
fd.close()
works as expected. Parsing an xml file like with lxml.etree.parse( "/tmp/a b.xml" ) works, too.
To post a comment you must log in.
Right, only URLs are supported here. Thus, "file:///tmp/a b.dtd" works, but a plain file name does not. It should.