CSharp examples for System.Xml:XML String
Select Single XML Text String
using System.Xml; using System;/* w w w . j a v a2 s. c o m*/ public class Main{ public static string SelectSingleTextString(XmlNode node, string selector, string defaultValue = null) { workNode = node.SelectSingleNode(selector, Manager); return workNode?.InnerText ?? defaultValue; } }