public HashSet<ElementTag> getElementTagsWithValue(string value)
{
HashSet<ElementTag> elementTags = new HashSet<ElementTag>();
string sqlFindGUIDS = @"select ea_guid from t_objectproperties ot
where ot.[Value] like '"+ value + "'";
// get the nodes with the name "ea_guid"
XmlDocument xmlElementTagGUIDs = this.SQLQuery(sqlFindGUIDS);
XmlNodeList tagGUIDNodes = xmlElementTagGUIDs.SelectNodes(formatXPath("//ea_guid"));
foreach (XmlNode guidNode in tagGUIDNodes)
{
ElementTag elementTag = this.getElementTagByGUID(guidNode.InnerText);
if (elementTag != null)
{
elementTags.Add(elementTag);
}
}
return elementTags;
}