Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- XPathDocument xpathDoc = new XPathDocument( fileName );
- XPathNavigator nav = xpathDoc.CreateNavigator();
- XPathNavigator node = nav.SelectSingleNode( @"//Book[Title='OldTitle']/Title" );
- node.SetValue( "NewTitle" );
- XMLDocument xmlDoc = new XMLDocument( fileName );
- XPathNavigator nav = xmlDoc.CreateNavigator();
- XPathNavigator node = nav.SelectSingleNode( @"//Book[Title='OldTitle']/Title" );
- node.SetValue( "NewTitle" );
Add Comment
Please, Sign In to add comment