View Single Post
 
Old November 9th, 2007, 05:24 AM
samjudson's Avatar
samjudson samjudson is offline
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Well for starters you've got the parameters the wrong way around for the InsertAfter method. Personally I'd just use the AppendChild method.

XmlNode newScreenToSupport = newParent.Clone();
newParent.ParentNode.AppendChild(newScreenToSuppor t);

/- Sam Judson : Wrox Technical Editor -/