Problem with ReplaceChild

Topics: User Forum
Mar 31, 2010 at 6:45 PM


I've an html-page and have to replace an table after FORM with other html-code.






I've tried it with:

oMainHtmlRootNode.ReplaceChild(oNewMailHtmlNode, oMainHtmlRootNode.SelectSingleNode("//form//following-sibling::table"))

This raises an Exception: Node "...." was not found in the collection ....

What ist wrong and how can I do it?



Christoph Schmid