Files
jellyfin-plugin-enigma2/src/Helpers/XmlHelper.cs
T
CompoUK 4f99e72bfe initial code
initial code
2015-03-08 14:20:49 +00:00

24 lines
546 B
C#

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);
}
}
}