Access into a tag in xml with python

Wednesday, November 4, 2015

I'm trying to get the information of this tag:



<movie:actor rdf:resource="http://data.linkedmdb.org/resource/actor/32439"/>


I need the final numbers (32439) but if i get the url I will be happy too.



I know how to get, for example, this information between this tags:



<dc:title>Eragon</dc:title>



with



Title=catalogo.getElementsByTagName("dc:title")[0]
print Title.childNodes[0].data


But i can't do the same with the other one,



Thanks for your help!

0 comments:

Post a Comment