I am trying to extract financial statement information based on type of the statement.
Let me explain to you in a little more details.
I want to extract the income statement, balance sheet and cash flow statement from an XBRL instance – especially US GAAP.
For me, the perfect solution would be to have tags in the XML file in such a way that I can extract the income statement with tag <incomestatement>, balance sheet with <balancesheet> and cash flow with <cashflow>.
Please help me here. I am a novice and do not posses much background in XBRL.
Fortunately, it is not that difficult to extract financial statements. Here is how I was able to extract income statement info:
Replace the file="" parameter with your own path. You can also substitute url for file parameter