51 return !
base.HasErrors;
122 for (
int i = 12; i < num; i++)
139 schemaInfo.TargetNamespaces[
text] =
true;
151 schemaInfo.ElementDeclsByType.
Add(
value4.QualifiedName,
value4.ElementDecl);
207 if (
value4.ElementDecl ==
null)
214 if (
value5.AttDef ==
null)
221 if (
value6.CompiledConstraint ==
null)
262 return !
base.HasErrors;
376 for (
int i = 0; i < attributes.
Count; i++)
389 if (
group.Redefined !=
null)
414 if (
value.SubstitutionGroup.IsEmpty)
544 if (
group.IsProcessing)
551 if (
group.CanonicalParticle ==
null)
620 if (
parentSchema.TargetNamespace !=
"http://www.w3.org/2001/XMLSchema")
650 if (
ex.SourceSchemaObject ==
null)
920 if (
ex.SourceSchemaObject ==
null)
1108 if (particle ==
null || particle.
IsEmpty)
1215 for (
int i = 0; i <
all.Items.
Count; i++)
1327 if (particle ==
null)
1774 if (particle.
MaxOccurs == decimal.MaxValue)
1786 if (items.
Count == 0)
1793 for (
int j = 0;
j < items.
Count;
j++)
1812 if (particle.
MaxOccurs == decimal.MaxValue)
1834 if (particle !=
null && !particle.
IsEmpty)
1910 for (
int i = 0; i < attributes.
Count; i++)
2135 if (
xa.IsProcessing)
2141 if (
xa.AttDef !=
null)
2149 if (!
xa.RefName.IsEmpty)
2163 if (datatype !=
null)
2171 if (
xa.DefaultValue !=
null)
2175 if (
xa.FixedValue !=
null)
2190 if (
xa.SchemaType !=
null)
2193 xa.SetAttributeType(
xa.SchemaType);
2197 else if (!
xa.SchemaTypeName.IsEmpty)
2225 if (
ex.SourceSchemaObject ==
null)
2241 if (
xa.DefaultValue !=
null ||
xa.FixedValue !=
null)
2243 if (
xa.DefaultValue !=
null)
2262 if (
decl.Datatype !=
null)
2293 if (
xi.IsProcessing)
2300 if (
xi.CompiledConstraint !=
null)
2335 if (
ex.SourceSchemaObject ==
null)
2351 if (
xe.IsProcessing)
2357 if (
xe.ElementDecl !=
null)
2365 if (!
xe.RefName.IsEmpty)
2382 if (
xe.SchemaType !=
null)
2384 xe.SetElementType(
xe.SchemaType);
2386 else if (!
xe.SchemaTypeName.IsEmpty)
2389 if (
xe.ElementSchemaType ==
null)
2394 else if (!
xe.SubstitutionGroup.IsEmpty)
2456 if ((
xe.DefaultValue !=
null ||
xe.FixedValue !=
null) &&
schemaElementDecl.ContentValidator !=
null)
2462 if (
xe.DefaultValue !=
null)
2488 if (
xe.HasConstraints)
2506 if (
ex.SourceSchemaObject ==
null)
2593 bool result =
false;
2611 for (
int i = 0; i < items.
Count; i++)
2671 for (
int i = 0; i < items.
Count; i++)
2688 for (
int i = 0; i < items.
Count; i++)
2763 to.SetUnhandledAttributes(
from.UnhandledAttributes);
2774 object defaultValueTyped =
baseDecl.DefaultValueTyped;
bool ContainsKey(TKey key)
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
void AddRange(IEnumerable< KeyValuePair< TKey, TValue > > collection)
void Add(TKey key, TValue value)
virtual ICollection Values
virtual void Add(object key, object? value)
static string Sch_GroupCircularRef
static string Sch_UndefAttributeGroupRef
static string Sch_SubstitutionCircularRef
static string Sch_ElementCircularRef
static string Sch_NonDeterministic
static string Sch_SeqFromChoice
static string Sch_InvalidContentRestrictionDetailed
static string Sch_AttributeRestrictionInvalid
static string Sch_InvalidExamplar
static string Sch_IdentityConstraintCircularRef
static string Sch_NotSimpleContent
static string Sch_TypeCircularRef
static string Sch_ForbiddenDerivedParticleForElem
static string Sch_ElementCannotHaveValue
static string Sch_UndeclaredEquivClass
static string Sch_InvalidParticleRestriction
static string Sch_DefaultIdValue
static string Sch_AnyFromAnyRule3
static string Sch_InvalidBaseToMixed
static string Sch_ElementFromElement
static string Sch_NoDerivedAttribute
static string Sch_UndefGroupRef
static string Sch_ForbiddenDerivedParticleForAll
static string Sch_ElementFromGroupBase3
static string Sch_ForbiddenDerivedParticleForChoice
static string Sch_DupAttributeUse
static string Sch_InvalidSimpleTypeRestriction
static string Sch_RefInvalidCardin
static string Format(string resourceFormat, object p1)
static string Sch_UndeclaredSimpleType
static string Sch_BaseFinalUnion
static string Sch_AnyFromAnyRule1
static string Sch_AttributeRestrictionInvalidFromWildcard
static string Sch_RefInvalidElement
static string Sch_NeedSimpleTypeChild
static string Sch_InvalidAttributeExtension
static string Sch_AttributeFixedInvalid
static string Sch_DifContentType
static string Sch_UnionFromUnion
static string Sch_ElementFromGroupBase2
static string Sch_AttributeRestrictionProhibited
static string Sch_GroupBaseRestNotEmptiable
static string Sch_UndeclaredType
static string Sch_FixedInRef
static string Sch_ElementFromAnyRule2
static string Sch_InvalidSubstitutionMember
static string Sch_BaseFinalExtension
static string Sch_ElementFromGroupBase1
static string Sch_ElementTypeCollision
static string Sch_InvalidAnyAttributeRestriction
static string Sch_BaseFinalList
static string Sch_AllRefMinMax
static string Sch_DerivedNotFromBase
static string Sch_UnexpressibleAnyAttribute
static string Sch_GroupBaseFromAny1
static string Sch_FixedDefaultInRef
static string Sch_AttributeUseInvalid
static string Sch_GroupBaseRestRangeInvalid
static string Sch_EmptyChoice
static string Sch_DupElement
static string Sch_NoExamplar
static string Sch_UndeclaredElement
static string Sch_AttributeIgnored
static string Sch_RefInvalidIdentityConstraint
static string Sch_GroupBaseRestNoMap
static string Sch_RefInvalidAttribute
static string Sch_AttributeGroupCircularRef
static string Sch_UndeclaredIdentityConstraint
static string Sch_ComplexContentModel
static string Sch_ReftoKeyref
static string Sch_UndefBaseExtension
static string Sch_ElementFromAnyRule1
static string Sch_AttributeCircularRef
static string Sch_ForbiddenDerivedParticleForSeq
static string Sch_UndefBaseRestriction
static string Sch_InvalidBaseToEmpty
static string Sch_BaseFinalRestriction
static string Sch_SeqFromAll
static string Sch_NonDeterministicAnyEx
static string Sch_TwoIdAttrUses
static string Sch_AnyFromAnyRule2
static string Sch_UndeclaredAttribute
static string Sch_GroupBaseFromAny2
static string Sch_InvalidParticleRestrictionDetailed
static string Sch_AllRefNotRoot
static string Sch_NonDeterministicAnyAny
static string Sch_NotAllAlone
void SendValidationEvent(string code, XmlSchemaObject source)
void AddToTable(XmlSchemaObjectTable table, XmlQualifiedName qname, XmlSchemaObject item)
static readonly CompiledIdentityConstraint Empty
void PushComplexType(XmlSchemaComplexType complexType)
void CheckUnionType(XmlSchemaSimpleType unionMember, List< XmlSchemaSimpleType > memberTypeDefinitions, XmlSchemaSimpleType parentType)
readonly XmlSchemaObjectTable _elements
void CompileIdentityConstraint(XmlSchemaIdentityConstraint xi)
XmlSchemaType GetAnySchemaType(XmlQualifiedName name)
bool BuildParticleContentModel(ParticleContentValidator contentValidator, XmlSchemaParticle particle)
void CleanupParticle(XmlSchemaParticle particle)
XmlSchemaParticle CannonicalizeElement(XmlSchemaElement element)
void CheckAtrributeGroupRestriction(XmlSchemaAttributeGroup baseAttributeGroup, XmlSchemaAttributeGroup derivedAttributeGroup)
readonly Stack< XmlSchemaComplexType > _complexTypeStack
readonly XmlSchema _schemaForSchema
void CompileSubstitutionGroup(XmlSchemaSubstitutionGroup substitutionGroup)
bool IsGroupBaseFromAny(XmlSchemaGroupBase derivedGroupBase, XmlSchemaAny baseAny)
void RecursivelyCheckRedefinedAttributeGroups(XmlSchemaAttributeGroup attributeGroup, XmlSchemaAttributeGroup baseAttributeGroup)
bool IsProcessContentsRestricted(XmlSchemaComplexType baseType, XmlSchemaAnyAttribute derivedAttributeWildcard, XmlSchemaAnyAttribute baseAttributeWildcard)
string _restrictionErrorMsg
XmlSchemaAnyAttribute CompileAnyAttributeUnion(XmlSchemaAnyAttribute a, XmlSchemaAnyAttribute b)
void CompileComplexContentRestriction(XmlSchemaComplexType complexType, XmlSchemaComplexContent complexContent, XmlSchemaComplexContentRestriction complexRestriction)
void CheckParticleDerivation(XmlSchemaComplexType complexType)
XmlSchemaParticle CannonicalizeAll(XmlSchemaAll all, bool root)
readonly XmlSchemaObjectTable _attributes
bool IsSequenceFromAll(XmlSchemaSequence derivedSequence, XmlSchemaAll baseAll)
int GetMappingParticle(XmlSchemaParticle particle, XmlSchemaObjectCollection collection)
void CompileElement(XmlSchemaElement xe)
ContentValidator CompileComplexContent(XmlSchemaComplexType complexType)
void CompileAttributeGroup(XmlSchemaAttributeGroup attributeGroup)
bool Execute(XmlSchemaSet schemaSet, SchemaInfo schemaCompiledInfo)
void CompileComplexContentExtension(XmlSchemaComplexType complexType, XmlSchemaComplexContent complexContent, XmlSchemaComplexContentExtension complexExtension)
Compiler(XmlNameTable nameTable, ValidationEventHandler eventHandler, XmlSchema schemaForSchema, XmlSchemaCompilationSettings compilationSettings)
readonly XmlSchemaObjectTable _schemaTypes
void RecursivelyCheckRedefinedGroups(XmlSchemaGroup redefinedGroup, XmlSchemaGroup baseGroup)
void CompileParticleElements(XmlSchemaParticle particle)
bool IsSequenceFromChoice(XmlSchemaSequence derivedSequence, XmlSchemaChoice baseChoice)
bool IsElementFromElement(XmlSchemaElement derivedElement, XmlSchemaElement baseElement)
bool IsValidOccurrenceRangeRestriction(decimal minOccurs, decimal maxOccurs, decimal baseMinOccurs, decimal baseMaxOccurs)
void CleanupAttributeGroup(XmlSchemaAttributeGroup attributeGroup)
void CompileSimpleContentRestriction(XmlSchemaComplexType complexType, XmlSchemaSimpleContentRestriction simpleRestriction)
bool IsElementFromGroupBase(XmlSchemaElement derivedElement, XmlSchemaGroupBase baseGroupBase)
void CompileLocalAttributes(XmlSchemaComplexType baseType, XmlSchemaComplexType derivedType, XmlSchemaObjectCollection attributes, XmlSchemaAnyAttribute anyAttribute, XmlSchemaDerivationMethod derivedBy)
void CleanupComplexType(XmlSchemaComplexType complexType)
void ImportAllCompiledSchemas(XmlSchemaSet schemaSet)
XmlSchemaAnyAttribute CompileAnyAttributeIntersection(XmlSchemaAnyAttribute a, XmlSchemaAnyAttribute b)
void CalculateEffectiveTotalRange(XmlSchemaParticle particle, out decimal minOccurs, out decimal maxOccurs)
void Output(SchemaInfo schemaInfo)
XmlSchemaParticle CannonicalizeGroupRef(XmlSchemaGroupRef groupRef, bool root)
XmlSchemaParticle CannonicalizeSequence(XmlSchemaSequence sequence, bool root)
readonly XmlSchemaObjectTable _groups
void CleanupSimpleType(XmlSchemaSimpleType simpleType)
XmlSchemaContentType GetSchemaContentType(XmlSchemaComplexType complexType, XmlSchemaComplexContent complexContent, XmlSchemaParticle particle)
void UpdateSForSSimpleTypes()
void ProcessSubstitutionGroups()
void CompileAttribute(XmlSchemaAttribute xa)
bool IsValidRestriction(XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle)
void CompileComplexType(XmlSchemaComplexType complexType)
XmlSchemaParticle CompileContentTypeParticle(XmlSchemaParticle particle)
void CleanupElement(XmlSchemaElement element)
XmlSchemaSimpleType[] CompileBaseMemberTypes(XmlSchemaSimpleType simpleType)
void CompileComplexTypeElements(XmlSchemaComplexType complexType)
readonly XmlSchemaObjectTable _examplars
void CleanupAttribute(XmlSchemaAttribute attribute)
bool IsParticleEmptiable(XmlSchemaParticle particle)
bool IsChoiceFromChoiceSubstGroup(XmlSchemaChoice derivedChoice, XmlSchemaChoice baseChoice)
bool IsElementFromAny(XmlSchemaElement derivedElement, XmlSchemaAny baseAny)
bool IsFixedEqual(SchemaDeclBase baseDecl, SchemaDeclBase derivedDecl)
void CopyPosition(XmlSchemaAnnotated to, XmlSchemaAnnotated from, bool copyParent)
void CompileSimpleType(XmlSchemaSimpleType simpleType)
bool IsAnyFromAny(XmlSchemaAny derivedAny, XmlSchemaAny baseAny)
void CleanupAttributes(XmlSchemaObjectCollection attributes)
bool IsValidOccurrenceRangeRestriction(XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle)
readonly XmlSchemaObjectTable _attributeGroups
bool IsGroupBaseFromGroupBase(XmlSchemaGroupBase derivedGroupBase, XmlSchemaGroupBase baseGroupBase, bool skipEmptableOnly)
XmlSchemaParticle CannonicalizeParticle(XmlSchemaParticle particle, bool root)
XmlSchemaParticle CannonicalizePointlessRoot(XmlSchemaParticle particle)
void SetDefaultFixed(XmlSchemaAttribute xa, SchemaAttDef decl)
XmlSchemaComplexType GetComplexType(XmlQualifiedName name)
XmlSchemaParticle CannonicalizeChoice(XmlSchemaChoice choice, bool root)
void CompileSimpleContentExtension(XmlSchemaComplexType complexType, XmlSchemaSimpleContentExtension simpleExtension)
readonly XmlSchemaObjectTable _identityConstraints
void Prepare(XmlSchema schema, bool cleanup)
void CleanupGroup(XmlSchemaGroup group)
readonly XmlSchemaObjectTable _notations
void CompileGroup(XmlSchemaGroup group)
void CompileParticleElements(XmlSchemaComplexType complexType, XmlSchemaParticle particle)
XmlSchemaSimpleType GetSimpleType(XmlQualifiedName name)
void CheckParticleDerivation(XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle)
readonly Hashtable _schemasToCompile
static readonly ContentValidator Empty
static readonly ContentValidator Mixed
static readonly ContentValidator TextOnly
static XmlSchemaSimpleType AnySimpleType
static XmlQualifiedName QnAnySimpleType
static XmlSchemaSimpleType[] GetBuiltInTypes()
static XmlQualifiedName QnAnyType
static XmlSchemaSimpleType GetSimpleTypeFromXsdType(XmlQualifiedName qname)
static bool IsSubset(NamespaceList sub, NamespaceList super)
static XmlSchema GetParentSchema(XmlSchemaObject currentSchemaObject)
static readonly SchemaAttDef Empty
static readonly SchemaElementDecl Empty
XmlSchemaDerivationMethod Block
static bool IsSubset(XmlSchemaAnyAttribute sub, XmlSchemaAnyAttribute super)
static XmlSchemaAnyAttribute Intersection(XmlSchemaAnyAttribute o1, XmlSchemaAnyAttribute o2, bool v1Compat)
static XmlSchemaAnyAttribute Union(XmlSchemaAnyAttribute o1, XmlSchemaAnyAttribute o2, bool v1Compat)
static XmlSchemaComplexType AnyType
static ContentValidator AnyTypeContentValidator
XmlSchemaDatatype DeriveByList(XmlSchemaType schemaType)
bool IsEqual(object o1, object o2)
object ParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr)
virtual XmlSchemaDatatypeVariety Variety
static XmlSchemaDatatype DeriveByUnion(XmlSchemaSimpleType[] types, XmlSchemaType schemaType)
XmlSchemaType? SchemaType
XmlSchemaObjectCollection Constraints
XmlQualifiedName QualifiedName
SchemaElementDecl? ElementDecl
void Insert(XmlQualifiedName name, XmlSchemaObject value)
void Add(XmlQualifiedName name, XmlSchemaObject value)
void Replace(XmlQualifiedName name, XmlSchemaObject value)
static readonly XmlSchemaParticle Empty
static ? XmlSchemaSimpleType GetBuiltInSimpleType(XmlQualifiedName qualifiedName)
static bool IsDerivedFrom([NotNullWhen(true)] XmlSchemaType? derivedType, [NotNullWhen(true)] XmlSchemaType? baseType, XmlSchemaDerivationMethod except)
static bool IsDerivedFromDatatype(XmlSchemaDatatype derivedDataType, XmlSchemaDatatype baseDataType, XmlSchemaDerivationMethod except)
XmlSchemaObjectTable SchemaTypes
static readonly XmlQualifiedName Empty
XmlSchemaDerivationMethod