jellyfin/Emby.Common.Implementations/Xml/XmlReaderSettingsFactory.cs
2017-05-24 15:12:55 -04:00

21 lines
472 B
C#

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