开发者

XML Parsing through internet in bada

开发者 https://www.devze.com 2023-01-19 19:54 出处:网络
I executed a code to get xml content from timesofindia but its not woking and the code which i used is

I executed a code to get xml content from timesofindia but its not woking and the code which i used is

doc=xmlReadDoc(NULL,"http://timeso开发者_开发百科findia.indiatimes.com/rssfeeds/-2128936835.cms",NULL,0);

I am new to bada.Somebody please help me.


Please refer to the documentation: http://xmlsoft.org/html/libxml-parser.html#xmlReadDoc You have to first download the document and then pass it to xmlReadDoc as a null terminated string. The second parameter is like MihaiD said, the base url of your document.

To download the document first, see Osp::Net::Http API documentation.


I have the feeling you actually have to pass in the document as a string on that first parameter. The second parameter is just a base URL, used probably for converting some relative URLs in the document to absolute URLs.

0

精彩评论

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

关注公众号