mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
20 lines
472 B
C#
20 lines
472 B
C#
using System.Xml;
|
|
using MediaBrowser.Model.Xml;
|
|
|
|
namespace Emby.Server.Implementations.Xml
|
|
{
|
|
public class XmlReaderSettingsFactory : IXmlReaderSettingsFactory
|
|
{
|
|
public XmlReaderSettings Create(bool enableValidation)
|
|
{
|
|
var settings = new XmlReaderSettings();
|
|
|
|
if (!enableValidation)
|
|
{
|
|
settings.ValidationType = ValidationType.None;
|
|
}
|
|
|
|
return settings;
|
|
}
|
|
}
|
|
}
|