lukerosiak / pysec

Parse XBRL filings from the SEC's EDGAR in Python
344 stars 147 forks source link

'Undefined namespace prefix' in GetCurrentPeriodAndContextInformation #12

Open ddgg opened 10 years ago

ddgg commented 10 years ago

I got an issue with 819793/0000891092-14-001589/ain-20131231.xml, I got an exception 'Undefined namespace prefix' at x.getNodeList("//xbrli:entity/xbrli:segment/xbrldi:explicitMember")

I don't have a lot experiences in lxml, can someone please help me to sovle this? thanks

ddgg commented 10 years ago

add self.ns['xbrldi'] in xbrl.py class constructor, seem like that company's filing miss the link

arosen32 commented 9 years ago

Adding this makes all the values turn to zero. What should I put the full prefix as? self.ns['xbrldi'] = 'http://www.xbrl.org/2003/instance' EDIT------------ self.ns['xbrldi'] = 'http://xbrl.org/2006/xbrldi' Works like a charm after some digging.