Questions tagged [xbrl]

XBRL is the eXtensible Business Reporting Language. XBRL is an XML-based syntax for exchanging facts that carry their own context, and that are reported against taxonomies. Today, XBRL is mostly used for submitting financial reports to regulatory authorities.

XBRL is an XML-based standard developed and promoted by XBRL International Incorporated, a not-for-profit consortium of agencies and companies.

It extensively uses XML and related technologies such as XML Schema, XLink, XPath, XML namespaces in order to reduce the uncertainty around the transmission of financial information.

An XBRL taxonomy defines the list of items that can be reported, and their datatypes. Taxonomy linkbases provide additional information, such as the labels that should be displayed to users (label linkbase), references (reference linkbases), dimensions (definition linkbase), validation rules (calculation and formula linkbases).

An XBRL instance is a list of facts that conforms with one or more taxonomies.

XBRL is used most often in a use case of financial regulation. Financial reports are provided by regulated entities to a regulatory agency. These XBRL instances typically use a 'base taxonomy' that captures the concepts of an accounting framework, such as US GAAP or IFRS. In some regulatory reporting, companies also create extension taxonomies. These extension taxonomies provide additional accounting concepts that the company uses, but which are not provided in the base taxonomy.

Base taxonomies often contain thousands of concepts, and are maintained by the owners of the intellectual property of the framework they capture. In the case of US GAAP, this is the Financial Accounting Standards Board.

226 questions
3
votes
2 answers

Parse xbrl file in python

I am working on a xml parser. The goal is to parse a number of different xml files where prefixes and tags remain consistent but namespaces change. I am hence trying either: to parse the xml just by without resolving (replacing) the…
NoIdeaHowToFixThis
  • 4,484
  • 2
  • 34
  • 69
3
votes
2 answers

SQL Server and XBRL

I'm going to have to create an XML output in XBRL format right out of SSMS (through a stored procedure or a function or something else which I will have to code). My issue is that I have never worked with XML on SQL Server (although I've googled it…
Radu Gheorghiu
  • 20,049
  • 16
  • 72
  • 107
2
votes
1 answer

XLink & XPointer in real world app

Do you know some real examples of implementation and real use of extended XLink and XPointer? Does extended XLink or XPointer have some data model - can it be somehow a part of the DOM? Are there some standard approaches (libraries) how to process…
Daniel
  • 113
  • 2
  • 11
2
votes
3 answers

XBRL: How do you merge rows from different filings?

We use a XBRL processor to ingest filings from SEC. Often times, a company declares a metric in different filings with different concepts - with or without exactly matching values - but to be regarded as the same financial metric. Essentially when…
DebD
  • 373
  • 3
  • 20
2
votes
1 answer

How can get all non us-gaap concepts from some api or file?

Companies are allowed to create their own concepts. The conccept AccruedAndOtherCurrentLiabilities is generated by tesla. Get all us-gaap concepts from ssec's RESTful api with python code: import requests import json cik='1318605' #tesla's cik url…
showkey
  • 482
  • 42
  • 140
  • 295
2
votes
1 answer

How to get the mapping relation between xbrl tag and name shown in financial statement?

The name shown in financial statement and xbrl tag name are different,take apple's 2019 financial statement as example. apple 2019 financial statement Click sections--financial statement--consolidated statements of operations and move mouse at the…
showkey
  • 482
  • 42
  • 140
  • 295
2
votes
1 answer

Find XBRL Calculation Relationships

I'm trying to find calculation relationships for concepts in a relation group from SEC eXtensible Business Reporting Language (XBRL) filings. An example is this amazon filing:…
DebD
  • 373
  • 3
  • 20
2
votes
2 answers

Extracting xml from a txt file

I'm trying to extract the xml portion of code from a txt file in python. The current txt file I'm using is from the edgar database and has multiple representations of a 10-k report in one txt file, having html then xml, and then some other…
segfault
  • 65
  • 6
2
votes
2 answers

BeaitifulSoup can't read all the namespaces

I have an XBRL document, which should be an XML document. I am trying to extract different tags grouped by their namespace. While the code appears to work with certain namespaces (us-gaap), it seems to fails for other ones (xbrli). However, in the…
user1315621
  • 3,044
  • 9
  • 42
  • 86
2
votes
1 answer

Not able to apply interval arithmetic using Saxon processor

I'm using Saxon processor to execute the validations. The file which contains all the function definition is as below:default-definition.txt: declare variable $a external; declare variable $b external; declare variable $c external; declare…
VijayD
  • 826
  • 1
  • 11
  • 33
2
votes
1 answer

Extending XBRL Presentation Networks

I understand XBRL presentation networks very well, and I also understand the mechanisms of prohibiting and overriding relationships, but the way to extend a presentation network with a new, custom concept eludes me. A presentation network defines a…
2
votes
2 answers

Enforcing XML contentType while uploading MarkLogic

While uploading files with a clear .xml extend via a http-server made. MarkLogic saves it in my local database as a .txt file. This means I can't run my query's against it. Uploader: declare function local:uploadFile() { let $filename :=…
2
votes
1 answer

XDMP-BADNCNAME: :link error in XQuery

Error snippet i get when using the Query console of MarkLogic [1.0-ml] XDMP-BADNCNAME: :link Stack Trace At line 1 column 18: In xdmp:eval("declare namespace xmlns:link="http://www.xbrl.org/2003/link...", (), 11967107844575880929...) declare…
2
votes
1 answer

parsing xbrl with python and regular expression to find TextBlocks

I'm using python and ElementTree to access a list of of .xml files scraped from EDGAR. I've read and re-read the ElementTree/python.org page and am still not understanding how to drill down into the data. How am I supposed to use ElementTree to get…
Derek_P
  • 658
  • 8
  • 29
2
votes
2 answers

Library for analyzing xbrl files in java

I'm trying to figure out how to: read xbrl files, analyze the files and make use of the data e.g. for calculating key figures, in Java. I know how to read xbrl files as xml and structuring them with json nodes, but I have concluded that it's much…
Marcus Persson
  • 373
  • 4
  • 20
1 2
3
15 16