Rorry Member Licensed User Longtime User Sep 22, 2013 #1 Hey, i really cannot find out how to parse a youtube page results,its now 2 days of trying but i find just the title twice and the video id..... how would you parse infos (title,duration,thumbnail,video id,description,...) of each videos on this xml? and someone could explain what is a namespace? is it "media" of "media:group","media:title","media:thumbnail"...? here is the xml: https://gdata.youtube.com/feeds/api...by=viewCount&start-index=1&max-results=25&v=2 thanks for help
Hey, i really cannot find out how to parse a youtube page results,its now 2 days of trying but i find just the title twice and the video id..... how would you parse infos (title,duration,thumbnail,video id,description,...) of each videos on this xml? and someone could explain what is a namespace? is it "media" of "media:group","media:title","media:thumbnail"...? here is the xml: https://gdata.youtube.com/feeds/api...by=viewCount&start-index=1&max-results=25&v=2 thanks for help
Rorry Member Licensed User Longtime User Sep 22, 2013 #3 NJDude said: Have you seen THIS tutorial? Click to expand... hey NJ,thanks yes i did. but its limited to "simple" xml's,but with a more complex one like youtube,i get lost and cant locate the childs (title,duration,thumbnail,video id,description,...) i want. i should catch "<MEDIA:TITLE>" and not "<title>" for example. Last edited: Sep 23, 2013 Upvote 0
NJDude said: Have you seen THIS tutorial? Click to expand... hey NJ,thanks yes i did. but its limited to "simple" xml's,but with a more complex one like youtube,i get lost and cant locate the childs (title,duration,thumbnail,video id,description,...) i want. i should catch "<MEDIA:TITLE>" and not "<title>" for example.
Rorry Member Licensed User Longtime User Sep 23, 2013 #4 i think this tutorial explains as well. and giving an answer to my request but i dont know how to do this with xmlparser on B4A http://www.markflint.net/xml-parsing-and-namespaces/ Upvote 0
i think this tutorial explains as well. and giving an answer to my request but i dont know how to do this with xmlparser on B4A http://www.markflint.net/xml-parsing-and-namespaces/
NJDude Expert Licensed User Longtime User Sep 23, 2013 #5 Take a look at the attached sample, it's a barebones YouTube feed parser. Attachments YouTubeParserSample.zip 41.2 KB · Views: 224 Upvote 0
Rorry Member Licensed User Longtime User Sep 23, 2013 #6 Thank you NJ,you saved me Last edited: Sep 23, 2013 Upvote 0