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

◆ ParseNotationDecl()

void System.Xml.DtdParser.ParseNotationDecl ( )
inlineprivate

Definition at line 1099 of file DtdParser.cs.

1100 {
1101 if (GetToken(needWhiteSpace: true) != Token.Name)
1102 {
1104 }
1108 {
1109 if (_undeclaredNotations != null)
1110 {
1112 }
1115 }
1116 else if (_validate)
1117 {
1119 }
1120 Token token = GetToken(needWhiteSpace: true);
1121 if (token == Token.SYSTEM || token == Token.PUBLIC)
1122 {
1123 ParseExternalId(token, Token.NOTATION, out var publicId, out var systemId);
1124 if (schemaNotation != null)
1125 {
1127 schemaNotation.Pubid = publicId;
1128 }
1129 }
1130 else
1131 {
1133 }
1135 {
1137 }
1138 }
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
void Add(TKey key, TValue value)
static string Sch_DupNotation
Definition SR.cs:534
Definition SR.cs:7
void SendValidationEvent(int pos, XmlSeverityType severity, string code, string arg)
Dictionary< string, UndeclaredNotation > _undeclaredNotations
Definition DtdParser.cs:200
XmlQualifiedName GetNameQualified(bool canHavePrefix)
Token GetToken(bool needWhiteSpace)
void ParseExternalId(Token idTokenType, Token declType, out string publicId, out string systemId)
SchemaInfo _schemaInfo
Definition DtdParser.cs:146
Dictionary< string, SchemaNotation > Notations

References System.Xml.DtdParser._curPos, System.Xml.DtdParser._schemaInfo, System.Xml.DtdParser._undeclaredNotations, System.Xml.DtdParser._validate, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Collections.Generic.Dictionary< TKey, TValue >.ContainsKey(), System.Xml.Dictionary, System.Xml.DtdParser.GetNameQualified(), System.Xml.DtdParser.GetToken(), System.Xml.Schema.SchemaInfo.Notations, System.Xml.DtdParser.OnUnexpectedError(), System.Xml.DtdParser.ParseExternalId(), System.Collections.Generic.Dictionary< TKey, TValue >.Remove(), System.SR.Sch_DupNotation, and System.Xml.DtdParser.SendValidationEvent().

Referenced by System.Xml.DtdParser.ParseSubset().