System.Xml.XPath.XPathNavigator.InsertElementAfter C# (CSharp) Method

InsertElementAfter() public method

public InsertElementAfter ( string prefix, string localName, string namespaceURI, string value ) : void
prefix string
localName string
namespaceURI string
value string
return void
        public virtual void InsertElementAfter(string prefix, string localName, string namespaceURI, string value)
        {
            XmlWriter writer = InsertAfter();
            writer.WriteStartElement(prefix, localName, namespaceURI);
            if (value != null)
            {
                writer.WriteString(value);
            }
            writer.WriteEndElement();
            writer.Close();
        }