mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-17 19:08:53 -07:00
23 lines
489 B
C#
23 lines
489 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)
|
|
{
|
|
#if NET46
|
|
settings.ValidationType = ValidationType.None;
|
|
#endif
|
|
}
|
|
|
|
return settings;
|
|
}
|
|
}
|
|
}
|