After reading about XBRL Validation, it would be a great feature to add to a work in progress program. However, due to performance limitations, I can't read in the entire document into the system for validation, as large amount of documents maybe flowing into the system for processing, or the document itself could be large.
I thought, maybe by reading the first few bytes of the document, we could identify whether the document is an xbrl or not. Assuming that in an xbrl document, the first few bytes of the xbrl (without the xml declaration) will always start with either be "xbrl" or "xbrli:xbrl"
Would it be safe to assume that, an XBRL document is defined by the root tag of the document to either be "xbrl" or "xbrli:xbrl"? Or is there a better way to identify an xbrl document without having to parse the entire document?
Thanks!