xbrl

Get specific value from XBRL document

核能气质少年 提交于 2020-08-02 04:58:25
问题 I've been using Gepsio to try and churn my way through standard SEC XBRL filings through their EDGAR system, and despite my numerous attempts to figure this out, it seems I'm at a loss. When you extract the facts from any document, and you're interested in retrieving "revenues," per the specific US-GAAP standards, there might be as many as 200 facts with the revenues tag associated with it. While the ID of each one is unique, figuring out which ID equates to the particular type of revenue you

Read multiple xml files in R and combine the data

妖精的绣舞 提交于 2020-01-23 15:57:10
问题 I have a folder containing more than 1000 files with the extension (they are no real xml files though). I want to extract certain contents from these files automatically, so that a matrix or table is the end result (which I can use further in R for analysis, or export to 1 csv file, etc). I have made/altered a code which works for a single file, but can't get it to work to do it automatically for the rest. By a loop? So my code for a single file is as follows: library(xml2) temp <- read_xml(

Parse multiple XBRL files stored in a zip file

半世苍凉 提交于 2020-01-12 10:46:33
问题 I have downloaded multiple zip files from a website. Each zip file contains multiple html and xml extension files (~ 100K in each). It is possible to manually extract the files and then parse them. However, i would like to be able to do this within R (if possible) Example file (sorry it is a bit big) using code from a previous question - download one zip file library(XML) pth <- "http://download.companieshouse.gov.uk/en_monthlyaccountsdata.html" doc <- htmlParse(pth) myfiles <- doc["//a

How to parse this XML using php

谁说胖子不能爱 提交于 2020-01-05 05:04:06
问题 I have the following XML (XBRL) file <xbrli:context id="I2010_ForwardContractsMember"> <xbrli:entity> <xbrli:identifier scheme="http://www.sec.gov/CIK">0000027419</xbrli:identifier> <xbrli:segment> <xbrldi:explicitMember dimension="us-gaap:DerivativeByNatureAxis">us-gaap:ForwardContractsMember</xbrldi:explicitMember> </xbrli:segment> </xbrli:entity> <xbrli:period> <xbrli:instant>2011-01-29</xbrli:instant> </xbrli:period> </xbrli:context> <xbrli:context id="D2010Q1"> <xbrli:entity> <xbrli

How to parse this XML using php

落花浮王杯 提交于 2020-01-05 05:04:01
问题 I have the following XML (XBRL) file <xbrli:context id="I2010_ForwardContractsMember"> <xbrli:entity> <xbrli:identifier scheme="http://www.sec.gov/CIK">0000027419</xbrli:identifier> <xbrli:segment> <xbrldi:explicitMember dimension="us-gaap:DerivativeByNatureAxis">us-gaap:ForwardContractsMember</xbrldi:explicitMember> </xbrli:segment> </xbrli:entity> <xbrli:period> <xbrli:instant>2011-01-29</xbrli:instant> </xbrli:period> </xbrli:context> <xbrli:context id="D2010Q1"> <xbrli:entity> <xbrli

XBRL package “Error in fileFromCache(file)”

岁酱吖の 提交于 2019-12-24 11:05:27
问题 I'm trying to read this xbrl file with R XBRL package... https://www.cnmv.es/Portal/Consultas/wuc/DescargaXBRLIPP.ashx?t={77853e69-5deb-4bd5-acd4-3fb4715e2664} ...but when I download the file and run the code xbrl.vars <- xbrlDoAll(inst, verbose=TRUE) I get this error: error in XBRL::xbrlParse(file) : ./ipp-enc-ind-2005-06-30.xsd./ipp-enc-con-2005-06-30.xsd does not exists. Aborting. I suppose that the error is a problem with the ULR of the .xsd file. Is it possible to download the xsd files

How to import XBRL data to MySQL? [closed]

守給你的承諾、 提交于 2019-12-20 18:16:03
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I am working on a project involving processing a large volume of XBRL documents (> 1m separate files). I am totally new to XBRL and feeling quite lost at the moment. I have data relating to those XBRL documents in a separate MySQL database and I would like to add the XBRL data into MySQL to store everything in