mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-14 04:58:33 +00:00
Fixing bug in XmlUtils.HasAttribute
This commit is contained in:
parent
9e81d56636
commit
25d8140c3e
1 changed files with 3 additions and 0 deletions
|
|
@ -41,8 +41,11 @@ 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>
|
||||
/// Gets the attributes for the current xml element.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue