Hello,

this is a simplified XML (snippet) from an RSS feed...

<?xml version='1.0' encoding='UTF-8'?>
<feed xmlns='http://www.w3.org/2005/Atom' xmlns:media='http://search.yahoo.com/mrss/' xmlns:yt='http://gdata.youtube.com/schemas/2007'>
<entry>
<media:group>
<media:content duration='12019'/>
</media:group>
</entry>


i want to get the value of the duration attribute inside the media:content tag... the libxml2 docs say that libxml2 will do the namespace stuff automatically and i should be fine just by going straight to that node...

->entry->group->content (simplified)

and then xmlGetProp (this, "duration");

but all i get is a string containing "text" ... :/



Dirk



_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to