The HTML is invalid.
I renamed movies.html to movis.xml and drag/dropped the xml file onto Firefox.
Firefox reports:
This is an XHTML webpage and the
img tag should be self-closed, something like:
<a href="http://cdn1.adexprt.com/lp/2.php?name=Silver.Linings.Playbook.2012.DVDRIP-EDAW2013"><img src="http://static.thepiratebay.org/img/bar.gif" border="0" /></a>
Manually fixing that error and loading the xml into Firefox now shows another error later on in the file.
So you have a typical poorly written HTML document to parse...
Have a look at this page:
Parsing of badly formated HTML in PHP - Stack Overflow
If you have some webspace with PHP support then you could create a PHP script which your application calls and passes the URL of the required webpage to.
The PHP script would fetch the webpage and do it's best to make the webpage HTML valid/well-formed and then the script would return the webpage to your application.
You could probably optimise things - if your application just wants some of the data from the webpage HTML then the PHP script could (hopefully!) fix the original HTML, extract the data you require and return just the data that your application requires.
The script could return that data as JSON, XML or plain text - whatever is easiest for your application to parse.
This solution obviously reduces the amount of parsing that your application has to do on the device - offloading most of the parsing to the server running the PHP script.
Have you got access to a webserver that has support for both
PHP and
cURL?
(cURL would be used by the script to request the webpage from the server).
Martin.