I try to parse some atom feed. E.g.
>>> feedparser.parse("""
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns:a="http://example.com">
<entry>
<a:name>123</a:name>
<a:name xml:lang="es"></a:name>
</entry>
</feed>
""").entries[0]
{u'a_name': {'xml:lang': u'es'}}
I want instead to receive something like this:
{u'a_name': '123'}
or
{u'a_name': ['123', '']}
Curios thing, that if you change name
to title
- feedparser works fine.
But I need parse custom tags from other namespaces.