You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
469 B
21 lines
469 B
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;
|
|
}
|
|
}
|
|
}
|