Reading an XML Node only
<p>I am having an issue getting the value of an XML, it is loading it in the XML document when i debug, but it is not finding the value or the node i want to access. Here is the xml. The value i want to get is "Active". Now this XML is not a file or anything , is being passed as a string... (can not modify this part) have only access to the class where i can create functions to access it but can not modify the actual code getting the values and passing it as a "xml string"</p>

<pre><code>&lt;Clients&gt;
  &lt;BillingCycle&gt;30&lt;/BillingCycle&gt;
  &lt;Category&gt;1&lt;/Category&gt;
  &lt;Type&gt;Admin&lt;/Type&gt;
  &lt;AddressCat&gt;3&lt;/AddressCat&gt;
  &lt;ZipCodeCat&gt;5&lt;/ZipCodeCat&gt;
  &lt;ClientManager&gt;
    &lt;UserID&gt;5&lt;/UserID&gt;
    &lt;ZPVal&gt;1&lt;/ZPVal&gt;
    &lt;DRY1&gt;Test&lt;/DRY1&gt;
    &lt;Active&gt;1&lt;/Active&gt;
  &lt;/ClientManager&gt;
&lt;/Clients&gt;
</code></pre>

<p>C# code here</p>

<pre><code>public bool IsActive(int ClientID, int VassID)
        {
            bool isActive = false;
            HelperClass helper = new HelperClass();
            XmlDocument xml = new XmlDocument();

            //at this point i can see the data was stored in the xml when debugging
            xml.LoadXml(helper.GetClientXML(ClientID, VassID));

           //have tried the following do not woerk
         //   XmlNode node = xml.SelectSingleNode ("/Clients/ClientManager/Active/text()");

            XmlNode node = xml.SelectSingleNode("Clients/ClientManager/Active");

            int isActiveVal = Convert.ToInt32(node.Value);

            if (isActiveVal == 1)
            {
                isActive = true;
            }

            return isActive;
        }
</code></pre>
