If the System.Xml.XPath.XPathNavigator is positioned on an element node with complex content (child elements), calling the XPathNavigator.SetValue(string) method replaces the child elements with a text node containing the new string value.
The XPathNavigator.SetValue(string) method cannot update the root node or namespace nodes.