Open mrx23dot opened 2 years ago
The primary xml file is in the data files table with the type: XML and description: EXTRACTED XBRL INSTANCE DOCUMENT.
url for the primary xml file is : https://www.sec.gov/Archives/edgar/data/944745/000156459021013168/civb-20201231_htm.xml
i've found the xml files to be the most reliable to parse and so typically use them as opposed to the inline xbrl html files.
Unfortunately SEC doesn't provide the parsed xml if the filling has htm ixbrl in it, in the zip download. see https://www.sec.gov/Archives/edgar/data/0000944745/000156459021013168/0001564590-21-013168-xbrl.zip
Filling has two ixbrl entries, but only the secondary ixbrl carries data: index: https://www.sec.gov/Archives/edgar/data/0000944745/000156459021013168/0001564590-21-013168-index.htm
If I try to parse the main one: https://www.sec.gov/Archives/edgar/data/944745/000156459021013168/civb-20201231.htm
It says:
As pointed out the SEC extracted xml already merged the 2 files together, but unfortunately it's not in the SEC zip file.
Shouldn't the lib find the secondary ixbrl, when I provide the main ixbrl? This is the only reference to secondary file in the main one:
Another one: https://www.sec.gov/Archives/edgar/data/0000021076/000002107621000016/0000021076-21-000016-index.htm