44 while (docTypeName ==
null || docTypeName._stringLength == 0);
47 int num2 = docTypeName.IndexOf((
char)num);
51 string text2 = docTypeName.Substring((
int)
num3,
num2);
226 private void Parse(
bool saveInternalSubset)
323 bool flag = text2.Equals(
"xml");
328 string text3 = text4.Trim();
521 int num4 = value.IndexOf((
char)
num3);
524 if (text !=
null &&
text ==
null)
581 return "'{0}' is an unexpected token. Expecting white space.";
588 this.
Throw(num8,
"Incomplete DTD content.");
594 this.
Throw(num9,
"'{0}' is an unexpected token. Expecting white space.",
text);
622 return "Expected DTD markup was not found.";
835 return "White space not allowed before '?', '*', or '+'.";
942 return "Invalid attribute type.";
1364 return "There is an unclosed conditional section.";
1397 this.
Throw(num,
"Unexpected end of file while parsing {0} has occurred.",
"Name");
1443 this.
Throw(num3,
"Unexpected end of file while parsing {0} has occurred.",
"NmToken");
1634 this.
Throw(num,
"A parameter entity reference is not allowed in internal markup.");
1646 if (
"General entity '{0}' references itself." !=
null)
1650 if (schemaEntity.
text._stringLength != 0)
1653 if (
"General entity '{0}' references itself." !=
null)
1713 this.
Throw((
int)num2,
"Reference to unparsed entity '{0}'.",
name);
1714 if (
"Reference to unparsed entity '{0}'." !=
null)
1719 this.
Throw((
int)num2,
"External entity '{0}' reference cannot appear in the attribute value.",
name2);
1737 this.
Throw((
int)num2,
"Reference to undeclared entity '{0}'.",
name4);
1746 int lineNo = this.
LineNo;
1755 int lineNo = this.
LineNo;
1860 this.
Throw(num,
"An internal error has occurred.");
1882 private void Throw(
string res,
string arg,
int lineNo,
int linePos)
1891 this.
Throw(pos,
"'{0}', hexadecimal value {1}, is an invalid character.",
array);
1910 if (expectedToken2 !=
null)
class f__AnonymousType0<< Count > j__TPar
ParseElementOnlyContent_LocalFrame(int startParentEntityIdParam)
DtdParser.Token parsingSchema
DtdParser.UndeclaredNotation next
UndeclaredNotation(string name, int lineNo, int linePos)
DtdParser.Token ScanAttlist5()
bool ParsingTopLevelMarkup
void ThrowUnexpectedToken(int pos, string expectedToken1, string expectedToken2)
DtdParser.Token ScanNameExpected()
void ParseHowMany(ParticleContentValidator pcv)
DtdParser.Token ScanAttlist4()
void ParseInDocumentDtd(bool saveInternalSubset)
void ParseAttlistDefault(SchemaAttDef attrDef, bool ignoreErrors)
static IDtdParser Create()
DtdParser.Token ScanDoctype1()
void Parse(bool saveInternalSubset)
DtdParser.Token ScanAttlist7()
void SendValidationEvent(int pos, XmlSeverityType severity, string code, string arg)
DtdParser.Token ScanEntity2()
DtdParser.Token ScanElement4()
void AddUndeclaredNotation(string notationName)
DtdParser.Token ScanNotation1()
static string StripSpaces(string value)
IDtdParserAdapter readerAdapter
DtdParser.Token ScanElement7()
StringBuilder stringBuilder
DtdParser.ScanningFunction scanningFunction
DtdParser.Token ScanEntity1()
int externalEntitiesDepth
void ParseElementMixedContent(ParticleContentValidator pcv, int startParenEntityId)
DtdParser.Token ScanDoctype2()
bool SaveInternalSubsetValue
void ScanQName(bool isQName)
DtdParser.Token ScanCondSection2()
DtdParser.Token ScanQNameExpected()
void Throw(int curPos, string res)
DtdParser.Token ScanElement5()
Dictionary< string, DtdParser.UndeclaredNotation > undeclaredNotations
void ParseExternalSubset()
DtdParser.Token ScanElement1()
XmlQualifiedName GetNameQualified(bool canHavePrefix)
bool HandleEntityReference(XmlQualifiedName entityName, bool paramEntity, bool inLiteral, bool inAttribute)
bool IgnoreEntityReferences
void Throw(string res, string arg, int lineNo, int linePos)
DtdParser.Token ScanAttlist2()
XmlQualifiedName ScanEntityName()
bool hasFreeFloatingInternalSubset
DtdParser.Token ScanNmtokenExpected()
DtdParser.Token ScanPublicId1()
bool HandleEntityEnd(bool inLiteral)
bool ParsingInternalSubset
void Throw(int curPos, string res, string arg)
DtdParser.Token ScanLiteral(DtdParser.LiteralType literalType)
DtdParser.Token ScanCondSection1()
bool IsAttributeValueType(DtdParser.Token token)
void ParseFreeFloatingDtd()
void InitializeFreeFloatingDtd(string baseUri, string docTypeName, string publicId, string systemId, string internalSubset, IDtdParserAdapter adapter)
DtdParser.Token ScanElement2()
DtdParser.Token ScanSystemId()
void SaveParsingBuffer(int internalSubsetValueEndPos)
DtdParser.Token ScanAttlist6()
void ThrowUnexpectedToken(int pos, string expectedToken)
void Initialize(IDtdParserAdapter readerAdapter)
StringBuilder internalSubsetValueSb
DtdParser.Token GetToken(bool needWhiteSpace)
int[] condSectionEntityIds
SchemaEntity VerifyEntityReference(XmlQualifiedName entityName, bool paramEntity, bool mustBeDeclared, bool inAttribute)
void ParseElementOnlyContent(ParticleContentValidator pcv, int startParenEntityId)
DtdParser.Token ScanCondSection3()
DtdParser.Token ScanAttlist3()
string ParseUnexpectedToken(int startPos)
string GetValueWithStrippedSpaces()
DtdParser.Token ScanClosingTag()
void ThrowInvalidChar(char[] data, int length, int invCharPos)
DtdParser.Token ScanElement3()
DtdParser.ScanningFunction nextScaningFunction
DtdParser.ScanningFunction savedScanningFunction
void SendValidationEvent(XmlSeverityType severity, XmlSchemaException e)
DtdParser.Token ScanElement6()
bool HandleEntityReference(bool paramEntity, bool inLiteral, bool inAttribute)
IDtdParserAdapterWithValidation readerAdapterWithValidation
string externalDtdBaseUri
void ParseExternalId(DtdParser.Token idTokenType, DtdParser.Token declType, [Out] string publicId, [Out] string systemId)
DtdParser.Token ScanSubsetContent()
string GetNmtokenString()
DtdParser.Token ScanAttlist1()
void ThrowInvalidChar(int pos, string data, int invCharPos)
void SendValidationEvent(XmlSeverityType severity, string code, string arg)
DtdParser.Token ScanEntity3()
void ParseAttlistType(SchemaAttDef attrDef, SchemaElementDecl elementDecl, bool ignoreErrors)
DtdParser.Token ScanPublicId2()
void Throw(int curPos, string res, string[] args)
void ParseInternalSubset()
SchemaAttDef GetAttDef(XmlQualifiedName qname)
Dictionary< XmlQualifiedName, SchemaElementDecl > elementDecls
Dictionary< string, SchemaNotation > Notations
Dictionary< XmlQualifiedName, SchemaEntity > ParameterEntities
Dictionary< XmlQualifiedName, SchemaElementDecl > undeclaredElementDecls
static string VerifyName(string name)
static string[] BuildCharExceptionArgs(string data, int invCharIndex)
IDtdInfo ParseInternalDtd(IDtdParserAdapter adapter, bool saveInternalSubset)
IDtdInfo ParseFreeFloatingDtd(string baseUri, string docTypeName, string publicId, string systemId, string internalSubset, IDtdParserAdapter adapter)
static XmlCharType Instance