Html Agility Pack: Setting An Htmlnode's Attribute Value Isn't Reflected In The Htmldocument
In Html Agility Pack, when I set an attribute of an HtmlNode, should I see this in the HtmlDocument from which the node was selected? Lets say that htmlDocument is an HtmlDocument.
Solution 1:
Actually it was a case of ProgrammerTooStupidException :(
I used a MyHtmlPage class, with an Html property and an DocumentProperty.
_html = theHtml;
_htmlDocument = new HtmlDocument();
HtmlDocument.LoadHtml(theHtml)l
_documentNode = HtmlDocument.DocumentNode;
Now, of coourse manipulation the DocumentNode had no effect on the _html value.
Posting this reply to clear the name of HAP.
Post a Comment for "Html Agility Pack: Setting An Htmlnode's Attribute Value Isn't Reflected In The Htmldocument"