CSharp examples for System.Xml:XML Node
Parse Boolean from XmlNode
using System.Xml; using System;/*from w w w . j ava2 s . co m*/ public class Main{ public static bool ParseBoolean(XmlNode n, string nodeName) { bool result = false; string temp = "0"; if (n != null) { if (n.SelectSingleNode(nodeName) != null) { temp = n.SelectSingleNode(nodeName).InnerText; } } if (temp == "1") { result = true; } return result; } }