Search code examples
libxml2bada

XML Parsing through internet in bada


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://timesofindia.indiatimes.com/rssfeeds/-2128936835.cms",NULL,0);

I am new to bada.Somebody please help me.


Solution

  • 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.