105 true,
true,
false,
false,
false,
false,
false,
false,
false,
false,
109 false,
true,
true,
true,
true,
false,
false,
false,
false,
false,
113 false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
117 false,
false,
false,
true,
true,
false,
false,
false,
false,
false,
121 false,
false,
false,
true,
false,
true,
true,
false,
false,
true,
125 false,
false,
false,
false,
false,
true,
true,
false,
false,
true,
129 false,
false,
false,
false,
true,
false,
false,
true,
true,
true,
133 false,
false,
false,
false,
true,
false,
false,
true,
true,
true,
137 false,
false,
false,
false,
true,
false,
false,
true,
true,
true,
141 false,
false,
false,
true,
true,
false,
false,
true,
true,
true,
145 false,
false,
false,
true,
true,
false,
false,
true,
true,
true,
149 false,
true,
false,
false,
false,
false,
false,
false,
false,
false,
156 "None",
"Initialize",
"top-level ValidateAttribute",
"top-level ValidateText or ValidateWhitespace",
"ValidateElement",
"ValidateAttribute",
"ValidateEndOfAttributes",
"ValidateText",
"ValidateWhitespace",
"ValidateEndElement",
157 "SkipToEndElement",
"EndValidation"
288 public event ValidationEventHandler? ValidationEventHandler
415 if (
schema.ErrorCount != 0)
428 schema.BaseUri.ToString(),
432 for (
int i = 0; i <
schema.ImportedSchemas.
Count; i++)
454 object[]
args =
new string[2]
470 object[]
args =
new string[2]
492 ValidateElement(localName, namespaceUri, schemaInfo,
null,
null,
null,
null);
497 if (localName ==
null)
501 if (namespaceUri ==
null)
550 if (schemaInfo !=
null)
587 if (localName ==
null)
591 if (namespaceUri ==
null)
661 xmlQualifiedName.ToString(),
662 ((XmlSchemaAttribute)xmlSchemaObject).QualifiedName.ToString()
734 if (schemaInfo !=
null)
751 if (defaultAttributes ==
null)
768 if (schemaInfo !=
null)
833 BuildElementName(_context.LocalName, _context.Namespace),
834 PrintExpectedElements(arrayList, getParticles: true)
925 if (typedValue ==
null)
943 if (schemaInfo !=
null)
1052 string text2 =
string.Empty;
1053 if (
text.Length > 0)
1060 schemaAttDef.Name.ToString(),
1061 QNameString(_context.LocalName, _context.Namespace)
1129 string text =
string.Empty;
1141 if (typedValue ==
null)
1152 if (
elementDecl.DefaultValueTyped !=
null && typedValue ==
null)
1159 if (typedValue !=
null)
1179 if (schemaInfo !=
null)
1213 string[]
array = (
string[])typedValue;
1307 if (element !=
null)
1320 substitutionGroup.ToString()
1329 substitutionGroup.ToString()
1342 object typedValue =
null;
1357 elementDecl.DefaultValueRaw,
1358 QNameString(_context.LocalName, _context.Namespace)
1391 object typedValue =
null;
1408 QNameString(_context.LocalName, _context.Namespace),
1410 GetTypeName(schemaDeclBase),
1433 string text =
decl.SchemaType.QualifiedName.ToString();
1434 if (
text.Length == 0)
1436 text =
decl.Datatype.TypeCodeString;
1513 if (particle !=
null)
1564 object typedValue =
null;
1638 xmlQualifiedName.ToString(),
1639 QNameString(_context.LocalName, _context.Namespace)
1799 if (
FindId(name) !=
null)
1836 object typedValue =
null;
1863 attdef.Name.ToString(),
1865 GetTypeName(attdef),
1870 if (!
attdef.CheckValue(typedValue))
1880 object typedValue =
null;
1888 QNameString(_context.LocalName, _context.Namespace),
1890 GetTypeName(elementDecl),
1904 if (typedValue ==
null)
1915 string[]
array = (
string[])typedValue;
1916 for (
int i = 0; i <
array.Length; i++)
1960 args =
new string[2]
1968 args =
new string[2]
2026 if (
text.Length != 0)
2040 for (
int i = 0; i <
elementDecl.Constraints.Length; i++)
2061 if (
constr[
k].keyrefTable ==
null)
2091 for (
int i = _startIDConstraint; i < _validationStack.
Length; i++)
2100 if (
constr[
j].axisSelector.MoveToStartElement(localName, @
namespace))
2115 locatedActiveAxis.isMatched =
true;
2157 for (
int num = _validationStack.
Length - 1; num >= _startIDConstraint; num--)
2162 for (
int i = 0; i <
constr.Length; i++)
2169 locatedActiveAxis.isMatched =
false;
2176 if (typedValue !=
null &&
stringValue.Length != 0)
2181 else if (typedValue !=
null)
2188 if (!
constr[i].axisSelector.EndElement(localName, @
namespace))
2193 switch (
constr[i].constraint.Role)
2204 keySequence.ToString(),
2205 constr[i].constraint.name.ToString()
2220 keySequence.ToString(),
2221 constr[i].constraint.name.ToString()
2258 constr2[k].constraint.name.ToString()
2259 }, _sourceUriString,
key.PosLine,
key.PosCol));
2322 BuildElementName(context.LocalName, context.Namespace),
2323 BuildElementName(name),
2324 System.SR.Sch_ComplexContentModel
2331 BuildElementName(context.LocalName, context.Namespace),
2332 BuildElementName(name)
2340 BuildElementName(context.LocalName, context.Namespace),
2341 BuildElementName(name),
2342 PrintExpectedElements(arrayList, flag),
2343 System.SR.Sch_ComplexContentModel
2350 BuildElementName(context.LocalName, context.Namespace),
2351 BuildElementName(name),
2352 PrintExpectedElements(arrayList, flag)
2360 QNameString(context.LocalName, context.Namespace),
2368 QNameString(context.LocalName, context.Namespace),
2388 BuildElementName(context.LocalName, context.Namespace),
2389 System.SR.Sch_ComplexContentModel
2398 BuildElementName(context.LocalName, context.Namespace),
2399 PrintExpectedElements(arrayList, flag),
2400 System.SR.Sch_ComplexContentModel
2407 BuildElementName(context.LocalName, context.Namespace),
2408 PrintExpectedElements(arrayList, flag)
2418 object[]
args =
new string[1] {
" " };
2535 for (
int i = 1; i <
array.Length; i++)
2550 return ns +
":" + localName;
virtual int Add(object? value)
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
void CopyTo(KeyValuePair< TKey, TValue >[] array, int index)
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
void Add(TKey key, TValue value)
virtual bool Contains(object key)
virtual void Add(object key, object? value)
static ? Delegate Remove(Delegate? source, Delegate? value)
static ? Delegate Combine(Delegate? a, Delegate? b)
static bool IgnoreEmptyKeySequences
static string Sch_InvalidElementContentExpecting
static string Sch_SubstitutionBlocked
static string Sch_InvalidTextInElementExpecting
static string Sch_ValidateElementInvalidCall
static string Sch_UndeclaredEntity
static string Sch_NotXsiAttribute
static string Sch_ContentInNill
static string Sch_ContinuationString
static string Sch_IncompleteContentExpectingComplex
static string Sch_InvalidEndElementCallTyped
static string Sch_FixedElementValue
static string Sch_UndeclaredId
static string Sch_SchemaAttributeNameMismatch
static string Sch_XsiTypeNotFound
static string Sch_MoreThanOneWildId
static string Sch_InvalidXsiNill
static string Sch_SchemaElementNameMismatch
static string Sch_ElementNameAndNamespace
static string Sch_InvalidEndValidation
static string Sch_NoAttributeSchemaFound
static string Sch_ComponentAlreadySeenForNS
static string Sch_UnresolvedKeyref
static string Sch_InvalidEndElementMultiple
static string Sch_FieldSimpleTypeExpected
static string Format(string resourceFormat, object p1)
static string Sch_SubstitutionNotAllowed
static string Sch_AbstractElement
static string Sch_InvalidElementContentExpectingComplex
static string Sch_RefNotInScope
static string Sch_ElementInMixedWithFixed
static string Sch_IncompleteContentExpecting
static string Sch_AnyElementNS
static string Sch_InvalidTextInEmpty
static string Sch_XsiTypeAbstract
static string Sch_FixedAttributeValue
static string Sch_InvalidStateTransition
static string Sch_ValidateAttributeInvalidCall
static string Sch_DefaultAttributeNotApplied
static string Sch_InvalidEndElementCall
static string Sch_InvalidValueDetailedAttribute
static string Sch_InvalidElementDefaultValue
static string Sch_NoElementSchemaFound
static string Sch_IncompleteContent
static string Sch_XsiTypeBlockedEx
static string Sch_ProhibitedAttribute
static string Sch_XsiNilAndFixed
static string Sch_UndeclaredElement
static string Sch_InvalidElementSubstitution
static string Sch_DuplicateAttribute
static string Sch_InvalidElementInEmptyEx
static string Sch_MissingKey
static string Sch_UnparsedEntityRef
static string Sch_AttributeValueDataTypeDetailed
static string Sch_CannotLoadSchema
static string Sch_DuplicateKey
static string Sch_InvalidWhitespaceInEmpty
static string Sch_IncompleteContentComplex
static string Sch_InvalidPartialValidationType
static string Sch_ElementName
static string Sch_AttrUseAndWildId
static string Sch_InvalidElementContentComplex
static string Sch_FieldSingleValueExpected
static string Sch_InvalidTextInElement
static string Sch_AnyElement
static string Sch_ElementValueDataTypeDetailed
static string Sch_InvalidElementContent
static string Sch_AllElement
static string Sch_UndeclaredAttribute
static string Sch_InvalidStartTransition
static string Sch_InvalidElementInTextOnlyEx
static string Sch_MissRequiredAttribute
override string ToString()
StringBuilder Append(char value, int repeatCount)
static int CompareExchange(ref int location1, int value, int comparand)
override string ToString()
static bool Equal(string strA, string strB)
CompiledIdentityConstraint constraint
XmlSchemaContentType ContentType
virtual ArrayList ExpectedParticles(ValidationState context, bool isRequiredOnly, XmlSchemaSet schemaSet)
static readonly ContentValidator Any
static void AddParticleToExpected(XmlSchemaParticle p, XmlSchemaSet schemaSet, ArrayList particles)
virtual object ValidateElement(XmlQualifiedName name, ValidationState context, out int errorCode)
static readonly ContentValidator Mixed
virtual ArrayList ExpectedElements(ValidationState context, bool isRequiredOnly)
static XmlSchemaSimpleType GetSimpleTypeFromXsdType(XmlQualifiedName qname)
static XmlSchema GetBuildInSchema()
static readonly SchemaAttDef Empty
ContentValidator ContentValidator
CompiledIdentityConstraint[] Constraints
SchemaElementDecl GetElementDecl(XmlQualifiedName qname)
SchemaElementDecl GetTypeDecl(XmlQualifiedName qname)
XmlSchemaElement GetElement(XmlQualifiedName qname)
Dictionary< XmlQualifiedName, SchemaAttDef > AttributeDecls
SchemaAttDef GetAttributeXsd(SchemaElementDecl ed, XmlQualifiedName qname, XmlSchemaObject partialValidationType, out AttributeMatchState attributeMatchState)
bool CheckRequiredAttribute
ConstraintStruct[] Constr
XmlSchemaValidity Validity
SchemaElementDecl ElementDeclBeforeXsi
bool NeedValidateChildren
SchemaElementDecl ElementDecl
XmlSchemaContentProcessing ProcessContents
Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue)
static XmlSchemaDatatype FromXmlTokenizedType(XmlTokenizedType token)
static string ConcatenatedToString(object value)
static XmlSchemaDatatype FromXmlTokenizedTypeXsd(XmlTokenizedType token)
virtual XmlSchemaDatatypeVariety Variety
XmlSchemaType? ElementSchemaType
XmlQualifiedName SubstitutionGroup
ValidationEventHandler GetEventHandler()
XmlSchemaCompilationSettings CompilationSettings
Hashtable SchemaLocations
bool RemoveRecursive(XmlSchema schemaToRemove)
XmlSchemaObjectTable GlobalElements
XmlSchema? Add(string? targetNamespace, string schemaUri)
XmlReaderSettings ReaderSettings
XmlResolver GetResolver()
XmlSchema FindSchemaByNSAndUrl(Uri schemaUri, string ns, DictionaryEntry[] locationsTable)
static ? XmlSchemaSimpleType GetBuiltInSimpleType(XmlQualifiedName qualifiedName)
static bool IsDerivedFrom([NotNullWhen(true)] XmlSchemaType? derivedType, [NotNullWhen(true)] XmlSchemaType? baseType, XmlSchemaDerivationMethod except)
static ? XmlSchemaComplexType GetBuiltInComplexType(XmlTypeCode typeCode)
XmlValueConverter ValueConverter
void CheckStateTransition(ValidatorState toState, string methodName)
void CheckRequiredAttributes(SchemaElementDecl currentElementDecl)
void ValidateWhitespace(string elementStringValue, XmlValueGetter elementValueGetter)
static readonly XmlSchemaDatatype s_dtCDATA
XmlSchemaContentProcessing CurrentProcessContents
XmlSchemaParticle[] GetExpectedParticles()
void SkipToEndElement(XmlSchemaInfo? schemaInfo)
void SetDtdSchemaInfo(IDtdInfo dtdSchemaInfo)
static readonly XmlSchemaDatatype s_dtStringArray
object CheckAttributeValue(object value, SchemaAttDef attdef)
static void ElementValidationError(XmlQualifiedName name, ValidationState context, ValidationEventHandler eventHandler, object sender, string sourceUri, int lineNo, int linePos, XmlSchemaSet schemaSet)
void ValidateElement(string localName, string namespaceUri, XmlSchemaInfo? schemaInfo, string? xsiType, string? xsiNil, string? xsiSchemaLocation, string? xsiNoNamespaceSchemaLocation)
static XmlSchemaAttribute s_xsiNoNsSLSO
void RecompileSchemaSet()
void ValidateStartElementIdentityConstraints()
XmlQualifiedName _contextQName
string GetConcatenatedValue()
void ElementIdentityConstraints()
XmlSchemaElement GetSubstitutionGroupHead(XmlQualifiedName member)
void SendValidationEvent(XmlSchemaValidationException e)
void ValidateText(XmlValueGetter elementValue)
SchemaInfo _compiledSchemaInfo
object ValidateAtomicValue(string stringValue, out XmlSchemaSimpleType memberType)
object ValidateElementContext(XmlQualifiedName elementName, out bool invalidElementInContext)
XmlSchemaValidator(XmlNameTable nameTable, XmlSchemaSet schemas, IXmlNamespaceResolver namespaceResolver, XmlSchemaValidationFlags validationFlags)
XmlSchemaContentType CurrentContentType
static void EnumerateAny(StringBuilder builder, string namespaces)
static void BuildXsiAttributes()
void ThrowDeclNotFoundWarningOrError(bool declFound)
static void CompleteValidationError(ValidationState context, ValidationEventHandler eventHandler, object sender, string sourceUri, int lineNo, int linePos, XmlSchemaSet schemaSet)
void SendValidationEvent(string code, string[] args)
void ValidateWhitespace(XmlValueGetter elementValue)
void ValidateElement(string localName, string namespaceUri, XmlSchemaInfo? schemaInfo)
object ValidateAtomicValue(object parsedValue, out XmlSchemaSimpleType memberType)
object InternalValidateEndElement(XmlSchemaInfo schemaInfo, object typedValue)
static string PrintNames(ArrayList expected)
object CheckElementValue(string stringValue)
void SendValidationEvent(string code, string[] args, Exception innerException, XmlSeverityType severity)
string GetTypeName(SchemaDeclBase decl)
void AddXmlNamespaceSchema()
static XmlSchemaAttribute s_xsiNilSO
object ValidateAttribute(string localName, string namespaceUri, XmlValueGetter attributeValueGetter, string attributeStringValue, XmlSchemaInfo schemaInfo)
readonly XmlSchemaValidationFlags _validationFlags
string _xsiSchemaLocationString
void LoadSchema(string uri, string url)
static string BuildElementName(XmlQualifiedName qname)
object? ValidateAttribute(string localName, string namespaceUri, string attributeValue, XmlSchemaInfo? schemaInfo)
void Push(XmlQualifiedName elementName)
object? ValidateAttribute(string localName, string namespaceUri, XmlValueGetter attributeValue, XmlSchemaInfo? schemaInfo)
bool ProcessIdentityConstraints
readonly XmlSchemaSet _schemaSet
void AddSchema(XmlSchema schema)
void SendValidationEvent(string code, string[] args, Exception innerException)
static XmlSchemaAttribute s_xsiSLSO
SchemaElementDecl CheckXsiTypeAndNil(SchemaElementDecl elementDecl, string xsiType, string xsiNil, ref bool declFound)
void ProcessSchemaLocations(string xsiSchemaLocation, string xsiNoNamespaceSchemaLocation)
void AddXsiAttributes(ArrayList attList)
object? ValidateEndElement(XmlSchemaInfo? schemaInfo, object typedValue)
object ValidationEventSender
static bool[,] ValidStates
void ValidateText(string elementStringValue, XmlValueGetter elementValueGetter)
void SendValidationEvent(string code)
bool ReportValidationWarnings
static readonly IXmlLineInfo s_dummyPositionInfo
object _validationEventSender
void SendValidationEvent(XmlSchemaValidationException e, XmlSeverityType severity)
SchemaElementDecl FastGetElementDecl(XmlQualifiedName elementName, object particle)
ValidationEventHandler? ValidationEventHandler
ValidationEventHandler _eventHandler
ValidatorState _currentState
object FindId(string name)
void Initialize(XmlSchemaObject partialValidationType)
static readonly string[] s_methodNames
static string PrintExpectedElements(ArrayList expected, bool getParticles)
void ProcessEntity(string name)
void EndElementIdentityConstraints(object typedValue, string stringValue, XmlSchemaDatatype datatype)
void SendValidationEvent(string code, string arg1, string arg2)
XmlSchemaAttribute[] GetExpectedAttributes()
bool HasIdentityConstraints
static string BuildElementName(string localName, string ns)
string GetDefaultAttributePrefix(string attributeNS)
IXmlLineInfo LineInfoProvider
string _xsiNoNamespaceSchemaLocationString
static void PrintNamesWithNS(ArrayList expected, StringBuilder builder)
void SendValidationEvent(XmlSchemaException e)
object? ValidateEndElement(XmlSchemaInfo? schemaInfo)
void SaveTextValue(object value)
static XmlSchemaAttribute s_xsiTypeSO
void GetUnspecifiedDefaultAttributes(ArrayList defaultAttributes, bool createNodeData)
void SendValidationEvent(string code, string arg)
void CheckTokenizedTypes(XmlSchemaDatatype dtype, object typedValue, bool attrValue)
void ValidateEndOfAttributes(XmlSchemaInfo? schemaInfo)
readonly Hashtable _validatedNamespaces
void CheckElementProperties()
XmlSchemaObject _partialValidationType
void GetUnspecifiedDefaultAttributes(ArrayList defaultAttributes)
void SendValidationEvent(string code, string msg, XmlSeverityType severity)
void AttributeIdentityConstraints(string name, string ns, object obj, string sobj, XmlSchemaDatatype datatype)
XmlSchemaElement GetSchemaElement()
void ProcessTokenizedType(XmlTokenizedType ttype, string name, bool attrValue)
object CheckMixedValueConstraint(string elementValue)
void AddIdentityConstraints()
static void SendValidationEvent(ValidationEventHandler eventHandler, object sender, XmlSchemaValidationException e, XmlSeverityType severity)
IXmlLineInfo _positionInfo
static readonly XmlSchemaDatatype s_dtQName
XmlSchemaContentProcessing _processContents
void ValidateWhitespace(string elementValue)
XmlSchemaValidationFlags ValidationFlags
readonly XmlNameTable _nameTable
static string QNameString(string localName, string ns)
SchemaAttDef CheckIsXmlAttribute(XmlQualifiedName attQName)
void ValidateText(string elementValue)
readonly IXmlNamespaceResolver _nsResolver
string ToString(bool value)
static bool IsOnlyWhitespace(string str)
static bool ToBoolean(string s)
static string[] SplitString(string value)
override string ToString()
override bool Equals([NotNullWhen(true)] object? other)
static readonly XmlQualifiedName Empty
void Init(string name, string ns)
static XmlReader Create(string inputUri)
object? GetEntity(Uri absoluteUri, string? role, Type? ofObjectToReturn)
virtual Uri ResolveUri(Uri? baseUri, string? relativeUri)
IDtdEntityInfo LookupEntity(string name)
IDictionary< string, string > GetNamespacesInScope(XmlNamespaceScope scope)
string? LookupPrefix(string namespaceName)
XmlSchemaContentProcessing
XmlSchemaDerivationMethod