jellyfin/Emby.Server.Implementations/Xml/XmlReaderSettingsFactory.cs
2019-01-13 20:54:44 +01:00

21 lines
469 B
C#

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