Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Undefined namespace prefix' in GetCurrentPeriodAndContextInformation #12

Open
ddgg opened this issue Apr 9, 2014 · 2 comments
Open

Comments

@ddgg
Copy link

ddgg commented Apr 9, 2014

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
Copy link
Author

ddgg commented Apr 13, 2014

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

@arosen32
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants