|
|
@ -63,7 +63,8 @@ namespace Emby.Dlna.Service
|
|
|
|
ValidationType = ValidationType.None,
|
|
|
|
ValidationType = ValidationType.None,
|
|
|
|
CheckCharacters = false,
|
|
|
|
CheckCharacters = false,
|
|
|
|
IgnoreProcessingInstructions = true,
|
|
|
|
IgnoreProcessingInstructions = true,
|
|
|
|
IgnoreComments = true
|
|
|
|
IgnoreComments = true,
|
|
|
|
|
|
|
|
Async = true
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
using (var reader = XmlReader.Create(streamReader, readerSettings))
|
|
|
|
using (var reader = XmlReader.Create(streamReader, readerSettings))
|
|
|
@ -79,7 +80,8 @@ namespace Emby.Dlna.Service
|
|
|
|
var settings = new XmlWriterSettings
|
|
|
|
var settings = new XmlWriterSettings
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Encoding = Encoding.UTF8,
|
|
|
|
Encoding = Encoding.UTF8,
|
|
|
|
CloseOutput = false
|
|
|
|
CloseOutput = false,
|
|
|
|
|
|
|
|
Async = true
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
StringWriter builder = new StringWriterWithEncoding(Encoding.UTF8);
|
|
|
|
StringWriter builder = new StringWriterWithEncoding(Encoding.UTF8);
|
|
|
|