jellyfin-server/Emby.Common.Implementations/Xml/XmlReaderSettingsFactory.cs

21 lines
472 B
C#
Raw Normal View History

2016-10-26 02:53:47 +00:00
using System.Xml;
using MediaBrowser.Model.Xml;
2016-11-03 22:34:16 +00:00
namespace Emby.Common.Implementations.Xml
2016-10-26 02:53:47 +00:00
{
public class XmlReaderSettingsFactory : IXmlReaderSettingsFactory
{
public XmlReaderSettings Create(bool enableValidation)
{
var settings = new XmlReaderSettings();
if (!enableValidation)
{
settings.ValidationType = ValidationType.None;
}
return settings;
}
}
}