Parse page RRS feed

  • Question

  • Hello. How i can parse this web page http://iamilya.ru/images/ILItv/RU/1_RU.html In Js. Please give example.

    I try but i have fiasco.

    This is my code:

          var app = WinJS.Application;        app.onactivated = function (args) {            var resDiv = document.getElementById("load_text"),                rssURL = "http://iamilya.ru/images/ILItv/RU/1_RU.html";            WinJS.xhr({                url: rssURL,                responseType: "document"            }).done(                function completed(result) {                    if (result.status === 200) {                        var xmlDocument = result.responseXML,                             title = xmlDocument.getElementsByTagName('error')[0];                        resDiv.style.backgroundColor = "lightGreen";                        resDiv.innerText = "Downloaded RSS feed from the " + title.textContent + " blog.";                    }                });        }

    Friday, April 4, 2014 12:06 PM

All replies

  • Once you have the page downloaded, you can use regular expressions or XML to parse the HTML document.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Friday, April 4, 2014 7:25 PM
  • My code does not work.  I think. I am not correctly sad what need. Not parse. I need get  this web page html code http://iamilya.ru/images/ILItv/RU/1_RU.html In Js
    Friday, April 4, 2014 8:52 PM