You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to let it handle some actual xml feed document, it seems can't handle none pairs type XML dedicated elements,
e.g.
<?xml version="1.0" encoding="utf-8" ?>
will arise :
Traceback (most recent call last):
File "", line 1, in
File "/lib/ElementTree.py", line 130, in fromstring
File "/lib/ElementTree.py", line 108, in parse_el
IndexError: list index out of range
Traceback (most recent call last):
File "", line 1, in
File "/lib/ElementTree.py", line 130, in fromstring
File "/lib/ElementTree.py", line 94, in parse_el
File "/lib/xmltok2.py", line 131, in tokenize
File "/lib/xmltok2.py", line 96, in expect
XMLSyntaxError:
I try to let it handle some actual xml feed document, it seems can't handle none pairs type XML dedicated elements,
e.g.
<?xml version="1.0" encoding="utf-8" ?>
will arise :
CDATA Sections https://www.w3.org/TR/REC-xml/#sec-cdata-sect
<channel><item><cdata_section><![CDATA[something to test.]]></cdata_section></item></channel>
will arise:
One of actual XML document:
https://www.w3.org/blog/news/feed
Is it possible improve it ?
The text was updated successfully, but these errors were encountered: