Quantcast
Channel: htmlagilitypack Forum Rss Feed
Viewing all articles
Browse latest Browse all 450

New Post: HTMLAgility in UWP App => List all url of an website

$
0
0
Hello,
I want to List URL of an Website. It works via Regex and Agility pack - on Windows form Apps.

Now I want to perform this Task in a UWP app. Unfortunately there is no System.web.UI;

So I tied this Code from (AgilityUWP):
        HtmlDocument htmlDoc = new HtmlDocument();
        htmlDoc.LoadHtml(InputTextBox.Text);

        HtmlNode docNodes = htmlDoc.DocumentNode;

            HtmlNode fldSerie = docNodes.Element("//a Serie/"); ==>> Here I want to Display all nodes with a certain string in it. Dont know if this works
        foreach(HtmlNode node in docNodes)==>> This does not work
        {
            UrlList.Items.Add(node.OuterHtml);


        }

Viewing all articles
Browse latest Browse all 450

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>