Home › Forums › The XBRL API › relationship query creates a full html table in output cells
- This topic has 2 replies, 2 voices, and was last updated 5 years ago by Bruno Lerer.
-
AuthorPosts
-
-
Tuesday, September 21, 2021 at 10:58 AM #194213Bruno LererParticipant
Now that I’ve been introduced to the joys of the
relationshipquery, I spent some time playing with it in the tri-compare template. With “balance sheet”, etc. searches, things are as expected, but…If you input in cells G3,H3 and I3 (or their siblings) either of the following set of values
443815 ="compensation" 11101 485391 ="leases" 1032 477076 = "tax" 00000022the content of cell H6 (and, depending on the query, H7, H8, etc.) is a full HTML page containing both narrative and related tabular data (“NOTE K – SHARE-BASED COMPENSATION”, for example).
AFAIK, there is no way in Excel to parse the html in that cell (
FILTERXML(), strangely enough, only works with URLs, not with content in the workbook).Is that, as they used to say, a bug or a feature?
- This topic was modified 5 years, 1 month ago by Bruno Lerer.
- This topic was modified 5 years, 1 month ago by Bruno Lerer.
-
Tuesday, September 21, 2021 at 3:58 PM #194228David TaurielloKeymaster
Hi Bruno – you might find or write a VBA macro to handle this, although a disclosure can often run several pages and might be tough to work with.
The XBRL Statements and Disclosures template for Excel (second in the list on the XBRL Data Community) has been recently updated to accommodate HTML – when the
fact.valuecontains HTML, a link appears in the row that opens a browser to the rendered entry in our Public Filings Database. -
Thursday, September 23, 2021 at 7:42 PM #194272Bruno LererParticipant
Thanks, David.
I don’t know VBA (nor do I have any interest whatsoever in getting to know it…), but from bitter experience in trying to parse EDGAR HTMl documents (with both Python and JavaScript), I know that is a fool’s errand. I guess we’ll have to live with it.
As an aside – regarding the update to the template you mention; I wasn’t aware of the update – it may be a good idea to add to each file in the list of the Member-contributed API Templates and Tools, a field indicating when that file was last updated.
- This reply was modified 5 years ago by Bruno Lerer.
-
-
AuthorPosts
- You must be logged in to reply to this topic.
Search Forums
Recent Topics
Recent Replies
-
Getting started with the XBRL Google Sheet and add-on 3 weeks ago
-
Income Statement data for a company 1 year, 3 months ago
-
Income Statement data for a company 1 year, 3 months ago
-
Using the offset parameter 1 year, 8 months ago
-
Using the offset parameter 1 year, 8 months ago
Documentation & Discussion
- Get started with Google Sheets OR
- Get started with Microsoft Excel OR
- Get access to as-filed data from us for other tools or your own app
- XBRL API Interactive Documentation
- Ten Tips & Techniques
- The XBRL API
- XBRL Data Community
- 2026 US GAAP Taxonomy Viewer
- Live support - Monday, 3:30 - 4:30 PM ET
Who's using this free data?
API Use 2026 || API Use 2025 || API Use 2024 || API Use 2023 || API Use 2022 || API Use 2021 || API Use 2020 || API Use 2019 || API Use 2018
Join XBRL US
- Individual Options - Basic, Power User & Sole Practitioner
- For Your Team - Startup, Non-Profit, Academic & Corporate options
- Member Benefits Comparison Table
Using the XBRL API with the Public Filings Database
Unless otherwise agreed to in writing, any and all use of the XBRL API to authenticate and retrieve data from the XBRL US Database of Public Filings implies user consent and agreement with the XBRL US API Agreement. If you are unable to agree to these terms, do not use the XBRL API.
To use the XBRL API outside of Google Sheets, your account needs to be provisioned for OAuth2 access.





