2019-01-13 19:54:44 +00:00
|
|
|
using System.Xml;
|
2016-10-26 02:53:47 +00:00
|
|
|
using MediaBrowser.Model.Xml;
|
|
|
|
|
2017-08-16 06:43:41 +00:00
|
|
|
namespace Emby.Server.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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|