c# - How should I use HTMLAgilityPack AppendNode? -
There was a real headache on this level on Friday! I'm trying to insert a HtmlNode to insert the second (). I can see the refChild node with the breadcrumb ID when I get it rpint for the console but the following error keeps getting the following error:
System.ArgumentOutOfRangeException: node "
From a very simple examination of the source, it seems that the InsertAfter
wants refChild
the direct child of the node that you have on your div
node on InsertAfter
, It is that the actual node can be passed in the form of refChild
isn Since searching (with //
), the entire scion axis will be direct child of HtmlWrapper
. < P> Try pulling HtmlWrapper.SelectSingleNode ("// div [@ id = 'breadcrumb']")
in a variable, and then InsertAfter
to its Applying on ParentNode
.
Comments
Post a Comment