We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9c832f commit 94a5c42Copy full SHA for 94a5c42
1 file changed
src/OneScript.StandardLibrary/Xml/XmlReaderSettingsImpl.cs
@@ -106,6 +106,7 @@ public static XmlReaderSettingsImpl Constructor(
106
IgnoreComments = ignoreComments,
107
IgnoreProcessingInstructions = ignoreDataProcessorInstructions,
108
IgnoreWhitespace = ignoreSpaceCharacters,
109
+ DtdProcessing = ignoreDocumentType ? DtdProcessing.Ignore : DtdProcessing.Parse,
110
};
111
112
return new XmlReaderSettingsImpl(
@@ -128,6 +129,7 @@ public static XmlReaderSettingsImpl Create()
128
129
IgnoreComments = true, // отличается от конструктора скрипта
130
IgnoreProcessingInstructions = false,
131
IgnoreWhitespace = true,
132
+ DtdProcessing = DtdProcessing.Ignore,
133
134
135
return new XmlReaderSettingsImpl("1.0", context, settings);
0 commit comments