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

InsertBefore() public method

public InsertBefore ( string newSibling ) : void
newSibling string
return void
        public virtual void InsertBefore(string newSibling)
        {
            XmlReader reader = CreateContextReader(newSibling, false);
            InsertBefore(reader);
        }

Same methods

XPathNavigator::InsertBefore ( ) : XmlWriter
XPathNavigator::InsertBefore ( XPathNavigator newSibling ) : void
XPathNavigator::InsertBefore ( XmlReader newSibling ) : void

Usage Example

Example #1
0
        public virtual XmlWriter PrependChild()
        {
            XPathNavigator nav = Clone();

            if (nav.MoveToFirstChild())
            {
                return(nav.InsertBefore());
            }
            else
            {
                return(AppendChild());
            }
        }
All Usage Examples Of System.Xml.XPath.XPathNavigator::InsertBefore