Skip to content Skip to sidebar Skip to footer

Xml Parsing With Htmlagilitypack

I'm parsing xml with HtmlAgilityPack on WebService worker role, but there is something wrong. When I select childnode 'link' get empty char. the xml like : http://www

Solution 1:

Put that line before loading HtmlDocument

HtmlNode.ElementsFlags["link"] = HtmlElementFlag.Closed;

That is all.

By default, its value is HtmlElementFlag.Empty and treated like meta and img tags...

Post a Comment for "Xml Parsing With Htmlagilitypack"