我想从XBRL获取整个标签名称。
<us-gaap:TaxAdjustmentsSettlementsAndUnusualProvisions
我得到的是TaxAdjustmentsSettlementsAndUnusualProvisions,但我也想抓住我们的空白。
我正在为此使用python的Etree库。
for elem in tree.iter():
print(elem)
<Element '{http://fasb.org/us-gaap/2018-01-31}TaxAdjustmentsSettlementsAndUnusualProvisions' at 0x7ff7e29ef0e8>
for elem in tree.iter():
print(elem.tag)
{http://fasb.org/us-gaap/2018-01-31}TaxAdjustmentsSettlementsAndUnusualProvisions
我正在寻找一种捕捉美国差距和TaxAdjustmentsSettlementsAndUnusualProvisions的方法。