BExIS.Dcm.UploadWizard.UploadWizardHelper.GetValueXmlDocument C# (CSharp) Method

GetValueXmlDocument() private static method

private static GetValueXmlDocument ( XmlDocument xmlDoc, long variableId ) : object
xmlDoc System.Xml.XmlDocument
variableId long
return object
        private static object GetValueXmlDocument(XmlDocument xmlDoc, long variableId)
        {
            string xpath = "/Content/Item/Property[@Name='VariableId' and @value='" + variableId.ToString() + "']";
                string xpathValue = "Property[@Name='Value']";

                XmlNode element = xmlDoc.SelectNodes(xpath).Item(0);
                string v = "";
                if (element != null)
                {
                    XmlNode value = element.ParentNode.SelectSingleNode(xpathValue);
                    v = value.Attributes["value"].Value;
                }

                return v;
        }