jellyfin/Emby.Server.Implementations/Xml/XmlReaderSettingsFactory.cs

21 lines
469 B
C#
Raw Normal View History

using System.Xml;
2016-10-25 19:53:47 -07:00
using MediaBrowser.Model.Xml;
namespace Emby.Server.Implementations.Xml
2016-10-25 19:53:47 -07:00
{
public class XmlReaderSettingsFactory : IXmlReaderSettingsFactory
{
public XmlReaderSettings Create(bool enableValidation)
{
var settings = new XmlReaderSettings();
if (!enableValidation)
{
settings.ValidationType = ValidationType.None;
}
return settings;
}
}
}