Hi,
I am trying to read the xml document in the XBRL format.
I tried using the XML package, but unfortunately, it does not work as it is.
Does anyone have any experience fetching data from XBRL, my last resort is string manipulation.
Below is a snippet of data:
<xbrli:context id=“duration_only”>
</xbrli:entity>
<xbrli:identifier scheme=“http://www.abc.dk/cvr”>12345689</xbrli:identifier>
</xbrli:entity>
</xbrli:period>
</xbrli:startDate>2020-01-01</xbrli:startDate>
</xbrli:endDate>2020-12-31</xbrli:endDate>
</xbrli:period>
</xbrli:context>
I need to get the context id, start date and end date.
Thank you for clarifying that Peter.
Based on the solution you gave , I have tried the deserializing and fetching elements with the name “startDate” etc.
But unfortunately the response I get is an empty string.
When I try the element as “xbrli:startDate”, I get an error.
This is XBRL, where the file extension is .xml, but the structure is not the same as XML
Sorry but I am getting errors / getting stuck by using the above mentioned solution.
Please find attached the XBRL document offentliggorelse (3).xml (63.0 KB)
I have to extract the context id and date combination
Thank you so much for your help.