fork(5) download
  1. using System;
  2. using System.Xml;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. XmlDocument xd = new XmlDocument();
  9. xd.LoadXml(@"<xml xml:space=""preserve""><data> </data></xml>");
  10. XmlNode xn = xd.DocumentElement.SelectSingleNode("data");
  11. string data = xn.InnerText; // data == " "
  12. Console.WriteLine(data == " "); //True
  13.  
  14. }
  15. }
Success #stdin #stdout 0.08s 34472KB
stdin
Standard input is empty
stdout
True