xbrl

Generating a Fact Table from a presentation linkbase

懵懂的女人 提交于 2019-12-13 07:45:25
问题 This is a follow up question from this SO question. Having now created the Model Structure from the presentation linkbase found here, I now would like to extract the Fact Table information. The model structure is: us-gaap_IncomeStatementAbstract Statement [Table] us-gaap_StatementTable Legal Entity [Axis] dei_LegalEntityAxis Entity [Domain] dei_EntityDomain Statement [Line Items] us-gaap_StatementLineItems Net sales us-gaap_SalesRevenueNet Cost of sales us-gaap_CostOfGoodsAndServicesSold

How to take the lists created by xbrlDoAll in the XBRL package in R, and organize them into dataframes readable in Excel?

只谈情不闲聊 提交于 2019-12-13 02:17:07
问题 I've been experimenting with the XBRL package in R to try to write a function that would cycle through companies and output financial statements, ideally in a very standard dataframe. But, I don't understand the output. Using the function and then viewing the data frame, all that appears is a running total on the leftmost column, with right-justified URL's of various XML/XBRL/C++ components on the right. I admit I have very little XBRL knowledge, but I must be missing something. How would I

VBA pull XML data from multiple Web locations

我与影子孤独终老i 提交于 2019-12-11 09:22:04
问题 In my previous question (everything needed is on this question; the link is here for the sake of completeness and measure) i ask for a way to pull XML data to Excel from a Web location. The code i received (courtesy of user2140261) as an answer lies here: Sub GetNode() Dim strXMLSite As String Dim objXMLHTTP As MSXML2.XMLHTTP Dim objXMLDoc As MSXML2.DOMDocument Dim objXMLNodexbrl As MSXML2.IXMLDOMNode Dim objXMLNodeDIIRSP As MSXML2.IXMLDOMNode Set objXMLHTTP = New MSXML2.XMLHTTP Set objXMLDoc

How to remove weird encoding from txt file

无人久伴 提交于 2019-12-11 09:17:19
问题 I am trying to process text files like this one: http://www.sec.gov/Archives/edgar/data/789019/000119312514289961/0001193125-14-289961.txt If you see around the middle of the file there is something like the following: </TEXT> </DOCUMENT> <DOCUMENT> <TYPE>EXCEL <SEQUENCE>21 <FILENAME>Financial_Report.xlsx <DESCRIPTION>IDEA: XBRL DOCUMENT <TEXT> begin 644 Financial_Report.xlsx M4$L#!!0`!@`(````(0!):[_C#0,``+!)```3``@"6T-O;G1E;G1?5'EP97-= M+GAM;""B!`(HH``"```````````````````````````````````````

Unknown encoding of files in a resulting Beautiful Soup txt file

ⅰ亾dé卋堺 提交于 2019-12-11 06:35:33
问题 I downloaded 13 000 files (10-K reports from different companies) and I need to extract a specific part of these files (section 1A- Risk factors). The problem is that I can open these files in Word easily and they are perfect, while as I open them in a normal txt editor, the document appear to be an HTML with tons of encrypted string in the end (EDIT: I suspect this is due to XBRL format of these files). Same happens as a result of using BeautifulSoup. I've tried using online decoder, because

How to parse this XML(XBRL) using Php

 ̄綄美尐妖づ 提交于 2019-12-11 05:45:26
问题 I am new to PHP and I need to parse an XML file, make some changes in it and write it. The file looks like this: <xbrli:xbrl xsi:schemaLocation="http://xbrl.org/2006/xbrldi http://www.xbrl.org/2006/xbrldi-2006.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:odrpt.0001.list.req.02.00="http://sbr.gov.au/rprt/ato/odrpt/odrpt.0001.list.request.02.00.report" xmlns:ref="http://www.xbrl.org/2006/ref" xmlns:dtyp.02.24="http://sbr.gov.au/fdtn/sbr.02.24.dtyp" xmlns:pyid.02.10="http:/

xbrl dimensions linkbase parsing

孤街浪徒 提交于 2019-12-10 11:45:49
问题 I am trying to parse SEC edgar xml data and am confused by definition linkable. Below is an extract from the definition linkbase for apple for their 10-Q. Note: the roleURI column has been added from the roleRef elements in the definition linkbase. idx order role {http://www.w3.org/1999/xlink}arcrole {http://www.w3.org/1999/xlink}from roleURI {http://www.w3.org/1999/xlink}to 16 1 http://www.apple.com/taxonomy/role/StatementOfIncome http://xbrl.org/int/dim/arcrole/dimension-domain dei

Search all the Edgar Data from http://xbrl.sec.gov/

限于喜欢 提交于 2019-12-10 00:21:47
问题 I need to Fetch all the Edgar search data From xbrl site either in XML Format or in RSS Feed form. This is the same Search on this Link http://www.sec.gov/edgar/searchedgar/cik.htm which i want to create on my Website but donot want to use all the Data, just want to use a bit of Information in My Website. And this is all the List of Items http://www.sec.gov/divisions/corpfin/organization/cfia.shtml but don't know how to reach on a single Point. 回答1: sec web site have lot of data, so have to

google script xml get parent?

不羁岁月 提交于 2019-12-08 12:35:03
问题 I have the following code to download a XBRL file into Google spreadsheet function XBRLexplore() { var ss = SpreadsheetApp.openById("0Aiy1DTQRndx6dFZLVDJfRnptbmRFUTM2S2lnUlRfWWd"); var Sheet = ss.getSheetByName("Sheet1"); // Activate sheet var target = "http://www.sec.gov/Archives/edgar/data/867773/000086777313000052/spwr-20130630.xml"; var pageTxt = UrlFetchApp.fetch(target).getContentText(); var xbrl = Xml.parse(pageTxt,true).getElement() var test=xbrl.getElements(); var output=[]; for (var

xbrl dimensions linkbase parsing

孤街浪徒 提交于 2019-12-06 16:29:01
I am trying to parse SEC edgar xml data and am confused by definition linkable. Below is an extract from the definition linkbase for apple for their 10-Q. Note: the roleURI column has been added from the roleRef elements in the definition linkbase. idx order role {http://www.w3.org/1999/xlink}arcrole {http://www.w3.org/1999/xlink}from roleURI {http://www.w3.org/1999/xlink}to 16 1 http://www.apple.com/taxonomy/role/StatementOfIncome http://xbrl.org/int/dim/arcrole/dimension-domain dei_LegalEntityAxis aapl-20151226.xsd#Role_StatementOfIncome dei_EntityDomain 33 1 http://www.apple.com/taxonomy