make nfo project portable

This commit is contained in:
Luke Pulverenti
2016-10-25 22:53:47 -04:00
parent b30c58f825
commit 21be035df0
29 changed files with 286 additions and 202 deletions

View File

@@ -0,0 +1,20 @@
using System.Xml;
using MediaBrowser.Model.Xml;
namespace MediaBrowser.Server.Implementations.Xml
{
public class XmlReaderSettingsFactory : IXmlReaderSettingsFactory
{
public XmlReaderSettings Create(bool enableValidation)
{
var settings = new XmlReaderSettings();
if (!enableValidation)
{
settings.ValidationType = ValidationType.None;
}
return settings;
}
}
}