private RemoveDataDivElementIfEmptyValue ( string key, string value ) : void | ||
key | string | |
value | string | |
return | void |
private void RemoveDataDivElementIfEmptyValue(string key, string value)
{
if (string.IsNullOrEmpty(value))
{
foreach (
XmlElement node in _dom.SafeSelectNodes("//div[@id='bloomDataDiv']//div[@data-book='" + key + "']"))
{
node.ParentNode.RemoveChild(node);
}
}
}