Problem with ReplaceChild

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

Hi

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

 

<form>
<table>

.....

</table>

</form>

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?

 

Regards

Christoph Schmid