开发者

How do I extract a video link from an xml file on the iphone?

I want to parse an XML file and if there is a link to a video I want to show it?

How can do this?

Till now I know the xml t开发者_如何转开发est example, not more.

Help me out, Thanks in advance.


Once you extract the URL, you'll want to use the MPMoviePlayerViewController class to play it. There's plenty of doc on Apple's website for this: MPMoviePlayerViewController.


1* To get a video url (or and any element value) in a xml file,
use xpath query in order to do that you can use libxml2
read this : Using libxml2 for XML parsing and XPath queries in Cocoa (folow the instructions)

2* Once you get the link read Ben Gottlieb's answer

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜