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;
}