mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-17 10:58:58 -07:00
21 lines
480 B
C#
21 lines
480 B
C#
|
using System.Xml;
|
|||
|
using MediaBrowser.Model.Xml;
|
|||
|
|
|||
|
namespace MediaBrowser.Server.Implementations.Xml
|
|||
|
{
|
|||
|
public class XmlReaderSettingsFactory : IXmlReaderSettingsFactory
|
|||
|
{
|
|||
|
public XmlReaderSettings Create(bool enableValidation)
|
|||
|
{
|
|||
|
var settings = new XmlReaderSettings();
|
|||
|
|
|||
|
if (!enableValidation)
|
|||
|
{
|
|||
|
settings.ValidationType = ValidationType.None;
|
|||
|
}
|
|||
|
|
|||
|
return settings;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|