Skip to content

Commit 94a5c42

Browse files
committed
EvilBeaver#1585 Параметр чтения XML ИгнорироватьТипДокумента.
1 parent c9c832f commit 94a5c42

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/OneScript.StandardLibrary/Xml/XmlReaderSettingsImpl.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ public static XmlReaderSettingsImpl Constructor(
106106
IgnoreComments = ignoreComments,
107107
IgnoreProcessingInstructions = ignoreDataProcessorInstructions,
108108
IgnoreWhitespace = ignoreSpaceCharacters,
109+
DtdProcessing = ignoreDocumentType ? DtdProcessing.Ignore : DtdProcessing.Parse,
109110
};
110111

111112
return new XmlReaderSettingsImpl(
@@ -128,6 +129,7 @@ public static XmlReaderSettingsImpl Create()
128129
IgnoreComments = true, // отличается от конструктора скрипта
129130
IgnoreProcessingInstructions = false,
130131
IgnoreWhitespace = true,
132+
DtdProcessing = DtdProcessing.Ignore,
131133
};
132134

133135
return new XmlReaderSettingsImpl("1.0", context, settings);

0 commit comments

Comments
 (0)