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

◆ ImplReadDoctype()

void System.Xml.XmlSqlBinaryReader.ImplReadDoctype ( )
inlineprivate

Definition at line 2944 of file XmlSqlBinaryReader.cs.

2945 {
2946 if (_dtdProcessing == DtdProcessing.Prohibit)
2947 {
2949 }
2950 switch (_docState)
2951 {
2952 case 9:
2954 default:
2956 case 0:
2957 case 1:
2958 _docState = 2;
2960 if (BinXmlToken.System == PeekToken())
2961 {
2962 _pos++;
2963 _attributes[_attrCount++].Set(new QName(string.Empty, _xnt.Add("SYSTEM"), string.Empty), ParseText());
2964 }
2965 if (BinXmlToken.Public == PeekToken())
2966 {
2967 _pos++;
2968 _attributes[_attrCount++].Set(new QName(string.Empty, _xnt.Add("PUBLIC"), string.Empty), ParseText());
2969 }
2970 if (BinXmlToken.Subset == PeekToken())
2971 {
2972 _pos++;
2973 _mark = _pos;
2975 }
2976 else
2977 {
2978 _tokLen = (_tokDataPos = 0);
2979 }
2980 _nodetype = XmlNodeType.DocumentType;
2982 break;
2983 }
2984 }
static string Xml_DtdNotAllowedInFragment
Definition SR.cs:164
static string Xml_DtdIsProhibited
Definition SR.cs:158
static string Xml_BadDTDLocation
Definition SR.cs:98
Definition SR.cs:7
string Add(char[] array, int offset, int length)
Exception ThrowXmlException(string res)
readonly DtdProcessing _dtdProcessing

References System.Xml.XmlSqlBinaryReader._attrCount, System.Xml.XmlSqlBinaryReader._attributes, System.Xml.XmlSqlBinaryReader._docState, System.Xml.XmlSqlBinaryReader._dtdProcessing, System.Xml.XmlSqlBinaryReader._mark, System.Xml.XmlSqlBinaryReader._nodetype, System.Xml.XmlSqlBinaryReader._pos, System.Xml.XmlSqlBinaryReader._posAfterAttrs, System.Xml.XmlSqlBinaryReader._tokDataPos, System.Xml.XmlSqlBinaryReader._tokLen, System.Xml.XmlSqlBinaryReader._xnt, System.Xml.XmlNameTable.Add(), System.Xml.Dictionary, System.Xml.XmlSqlBinaryReader.ParseText(), System.Xml.XmlSqlBinaryReader.PeekToken(), System.Xml.QName, System.Xml.XmlSqlBinaryReader.ScanText(), System.Xml.XmlSqlBinaryReader.AttrInfo.Set(), System.Xml.XmlSqlBinaryReader.ThrowXmlException(), System.SR.Xml_BadDTDLocation, System.SR.Xml_DtdIsProhibited, and System.SR.Xml_DtdNotAllowedInFragment.

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