Fixing bug in XmlUtils.HasAttribute

This commit is contained in:
Chris Cameron
2017-10-12 14:56:01 -04:00
parent 9e81d56636
commit 25d8140c3e

View File

@@ -41,7 +41,10 @@ namespace ICD.Common.Utils.Xml
public static bool HasAttribute(string xml, string name)
{
using (IcdXmlReader reader = new IcdXmlReader(xml))
{
reader.SkipToNextElement();
return reader.HasAttribute(name);
}
}
/// <summary>