mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 13:15:07 +00:00
Fixing bug in XmlUtils.HasAttribute
This commit is contained in:
@@ -41,7 +41,10 @@ namespace ICD.Common.Utils.Xml
|
|||||||
public static bool HasAttribute(string xml, string name)
|
public static bool HasAttribute(string xml, string name)
|
||||||
{
|
{
|
||||||
using (IcdXmlReader reader = new IcdXmlReader(xml))
|
using (IcdXmlReader reader = new IcdXmlReader(xml))
|
||||||
|
{
|
||||||
|
reader.SkipToNextElement();
|
||||||
return reader.HasAttribute(name);
|
return reader.HasAttribute(name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user