Get an XML Element via XPath when attributes are irrelevant

abc_elite

New Member
I'm looking for a way to receive a XML Element (the id of an entry) from a YouTube feed (e.g. http://gdata.youtube.com/feeds/api/users/USERNAME/uploads).The feed looks like this:\[code\]<feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:gd="http://schemas.google.com/g/2005" xmlns:yt="http://gdata.youtube.com/schemas/2007" gd:etag="W/"DUcFQncyfCp7I2A9WhVUFE4.""><id>tag:youtube.com,2008:user:USERNAME:uploads</id><updated>2012-05-19T14:16:53.994Z</updated> ... <entry gd:etag="W/"DE8NSX47eCp7I2A9WhVUFE4.""> <id>tag:youtube.com,2008:video:MfPpj7f6Jj0</id> <published>2012-05-18T13:30:38.000Z</published> ...\[/code\]I want to get the first tag in entry (tag:youtube.com, 2008 ...).After googling for some hours and looking through the GDataXML wiki, I'm clueless because neither XPath nor GData could deliver the right element.My first guess is, they can't ignore the attributes in the feed and entry tags.A solution using XPath would be great, but one in Objective-C is equally welcome.
 
Back
Top