Reworked MloFinder
This commit is contained in:
16
MloFinder/XmlNodeExtensions.cs
Normal file
16
MloFinder/XmlNodeExtensions.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.Xml;
|
||||
|
||||
namespace MloFinder {
|
||||
public static class XmlNodeExtensions {
|
||||
|
||||
public static XmlNode FindChild(this XmlNode parent, string name) {
|
||||
foreach (XmlNode child in parent.ChildNodes) {
|
||||
if (child.Name.Equals(name))
|
||||
return child;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user