We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6754910 commit 36bfde3Copy full SHA for 36bfde3
1 file changed
python-xbrl/parser.py
@@ -50,7 +50,7 @@ def parse(self, file_handle):
50
# Store the headers
51
xbrl_file = XBRLPreprocessedFile(file_handle)
52
xbrl = soup_maker(xbrl_file.fh)
53
- if xbrl.find('xbrl') is None:
+ if xbrl.find('xbrl') is None and xbrl.find(name=re.compile("(xbrli:)")) is None:
54
raise XBRLParserException('The xbrl file is empty!')
55
56
return xbrl
@@ -302,6 +302,8 @@ def total_elements(elements):
302
return elements_total
303
304
305
+#class 10document()
306
+
307
#Preprocessing to fix broken XML
308
# TODO - Run tests to see if other XML processing errors can occur
309
class XBRLPreprocessedFile(XBRLFile):
0 commit comments