A support tool for forensic financial analysis for the digital detection of fraud over XBRL documents, which (through of the LMDQL technology) supports queries in XML documents connected by XLink and XML Schema (the basis of XBRL taxonomy) and also relational databases.