Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ImplReadXmlText()

void System.Xml.XmlSqlBinaryReader.ImplReadXmlText ( )
inlineprivate

Definition at line 3025 of file XmlSqlBinaryReader.cs.

3026 {
3028 string xmlFragment = ParseText();
3029 XmlNamespaceManager xmlNamespaceManager = new XmlNamespaceManager(_xnt);
3030 foreach (NamespaceDecl value in _namespaces.Values)
3031 {
3032 if (value.scope > 0)
3033 {
3034 xmlNamespaceManager.AddNamespace(value.prefix, value.uri);
3035 }
3036 }
3037 XmlReaderSettings settings = Settings;
3038 settings.ReadOnly = false;
3040 settings.DtdProcessing = DtdProcessing.Prohibit;
3041 if (_elemDepth != 0)
3042 {
3043 settings.ConformanceLevel = ConformanceLevel.Fragment;
3044 }
3045 settings.ReadOnly = true;
3046 XmlParserContext context = new XmlParserContext(_xnt, xmlNamespaceManager, XmlLang, XmlSpace);
3047 _textXmlReader = new XmlTextReaderImpl(xmlFragment, context, settings);
3048 if (!_textXmlReader.Read() || (_textXmlReader.NodeType == XmlNodeType.XmlDeclaration && !_textXmlReader.Read()))
3049 {
3050 _state = ScanState.Doc;
3051 ReadDoc();
3052 }
3053 else
3054 {
3055 _state = ScanState.XmlText;
3057 }
3058 }
XmlNodeType NodeType
Definition XmlReader.cs:62
override XmlReaderSettings Settings
readonly Dictionary< string, NamespaceDecl > _namespaces

References System.Xml.XmlSqlBinaryReader._elemDepth, System.Xml.XmlSqlBinaryReader._namespaces, System.Xml.XmlSqlBinaryReader._state, System.Xml.XmlSqlBinaryReader._textXmlReader, System.Xml.XmlSqlBinaryReader._xnt, System.Xml.XmlSqlBinaryReader.CheckAllowContent(), System.Xml.Dictionary, System.Xml.XmlReader.NodeType, System.Xml.XmlSqlBinaryReader.ParseText(), System.Xml.XmlReader.Read(), System.Xml.XmlSqlBinaryReader.ReadDoc(), System.Xml.XmlSqlBinaryReader.Settings, System.Xml.XmlSqlBinaryReader.UpdateFromTextReader(), System.value, System.Collections.Generic.Dictionary< TKey, TValue >.Values, and System.Xml.XmlSqlBinaryReader.XmlLang.

Referenced by System.Xml.XmlSqlBinaryReader.ReadDoc().