initial code
initial code
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using System.Xml;
|
||||
|
||||
namespace MediaBrowser.Plugins.VuPlus.Helpers
|
||||
{
|
||||
public static class XmlHelper
|
||||
{
|
||||
public static XmlNode GetSingleNode(string input, string xPath)
|
||||
{
|
||||
var xml = new XmlDocument();
|
||||
xml.LoadXml(input);
|
||||
|
||||
return xml.SelectSingleNode(xPath);
|
||||
}
|
||||
|
||||
public static XmlNodeList GetMultipleNodes(string input, string xPath)
|
||||
{
|
||||
var xml = new XmlDocument();
|
||||
xml.LoadXml(input);
|
||||
|
||||
return xml.SelectNodes(xPath);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user