dimanche 29 mars 2015

loading XML page from another XML page for parsing

for example :


you have an XML file located on a web server called : XML_URL.XML it contains something like



<hls>
http://ift.tt/1BSVJgY
</hls>
<userURL>

http://ift.tt/1bGjzaF(here is a variable that changes often)
</userURL>


you need to load this URL from another XML file like :



<item>
<title>title</title>
<link>http://ift.tt/1BSVJh0;
<regex>
<name>url</name>
<expres>\?user=(.+)</expres>
<page>http://ift.tt/1bGjtjA;
</regex>
<thumbnail></thumbnail>
</item>


it works with JSON , but its not working when the "page" is XML file


any solutions ?


Aucun commentaire:

Enregistrer un commentaire