1 write to xmlSchemaInfo
System.Xml (1)
System\Xml\Core\XsdValidatingReader.cs (1)
157
xmlSchemaInfo
= new XmlSchemaInfo();
63 references to xmlSchemaInfo
System.Xml (63)
System\Xml\Core\XsdValidatingReader.cs (46)
356
if (
xmlSchemaInfo
.ContentType == XmlSchemaContentType.TextOnly) {
357
return
xmlSchemaInfo
.SchemaType.Datatype.ValueType;
1186
if ((
xmlSchemaInfo
.IsUnionType ||
xmlSchemaInfo
.IsDefault) && coreReader is XsdCachingReader) {
1192
validator.SkipToEndElement(
xmlSchemaInfo
);
1347
return
xmlSchemaInfo
.IsDefault;
1350
return
xmlSchemaInfo
.IsDefault;
1370
return
xmlSchemaInfo
.IsNil;
1384
return
xmlSchemaInfo
.Validity;
1386
if (
xmlSchemaInfo
.Validity == XmlSchemaValidity.Valid) { //It might be valid for unions since we read ahead, but report notknown for consistency
1389
return
xmlSchemaInfo
.Validity;
1392
return
xmlSchemaInfo
.Validity;
1411
return
xmlSchemaInfo
.MemberType;
1414
return
xmlSchemaInfo
.MemberType;
1433
return
xmlSchemaInfo
.SchemaType;
1449
return
xmlSchemaInfo
.SchemaElement;
1530
return
xmlSchemaInfo
.XmlType;
1602
xmlSchemaInfo
.Clear();
1619
xmlSchemaInfo
.Clear();
1654
validator.ValidateElement(coreReader.LocalName, coreReader.NamespaceURI,
xmlSchemaInfo
, xsiType, xsiNil, xsiSchemaLocation, xsiNoNamespaceSL);
1656
validator.ValidateEndOfAttributes(
xmlSchemaInfo
);
1665
atomicValue = validator.ValidateEndElement(
xmlSchemaInfo
);
1667
if (
xmlSchemaInfo
.IsDefault) { //The atomicValue returned is a default value
1671
cachingReader.RecordTextNode(
xmlSchemaInfo
.XmlType.ValueConverter.ToString( atomicValue ), originalAtomicValueString, depth + 1, 0, 0 );
1709
xmlSchemaInfo
.Validity = XmlSchemaValidity.Invalid;
1885
object value = ReturnBoxedValue(ReadTillEndElement(),
xmlSchemaInfo
.XmlType, unwrapTypedValue);
1926
if (
xmlSchemaInfo
.ContentType == XmlSchemaContentType.TextOnly) {
1927
typedValue = ReturnBoxedValue(atomicValue,
xmlSchemaInfo
.XmlType, unwrapTypedValue);
1943
if (
xmlSchemaInfo
.IsDefault) {
1944
if (
xmlSchemaInfo
.ContentType == XmlSchemaContentType.TextOnly) {
1945
typedValue = ReturnBoxedValue(atomicValue,
xmlSchemaInfo
.XmlType, unwrapTypedValue);
2004
atomicValue = validator.ValidateEndElement(
xmlSchemaInfo
);
2056
atomicValue = validator.ValidateEndElement(
xmlSchemaInfo
); //?? pop namespaceManager scope
2061
else if (
xmlSchemaInfo
.IsDefault) { //The atomicValue returned is a default value
2062
cachingReader.SwitchTextNodeAndEndElement(
xmlSchemaInfo
.XmlType.ValueConverter.ToString(atomicValue), originalAtomicValueString);
2074
if (cachedReader == null &&
xmlSchemaInfo
.HasDefaultValue) { //Get Isdefault
2076
if (
xmlSchemaInfo
.IsUnionType && !
xmlSchemaInfo
.IsNil) { //If it also union, get the memberType as well
2101
atomicValue = validator.ValidateEndElement(
xmlSchemaInfo
); //?? pop namespaceManager scope
2103
if (
xmlSchemaInfo
.IsDefault) { //The atomicValue returned is a default value
2104
cachingReader.SwitchTextNodeAndEndElement(
xmlSchemaInfo
.XmlType.ValueConverter.ToString(atomicValue), originalAtomicValueString);
2119
if (
xmlSchemaInfo
.MemberType != null || atomicValue == this) {
2123
if (cachedReader == null &&
xmlSchemaInfo
.IsUnionType && !
xmlSchemaInfo
.IsNil) {
2178
if (
xmlSchemaInfo
.IsDefault ) {
2179
XmlSchemaElement schemaElem =
xmlSchemaInfo
.SchemaElement;
System\Xml\Core\XsdValidatingReaderAsync.cs (17)
286
if ((
xmlSchemaInfo
.IsUnionType ||
xmlSchemaInfo
.IsDefault) && coreReader is XsdCachingReader) {
292
validator.SkipToEndElement(
xmlSchemaInfo
);
449
xmlSchemaInfo
.Clear();
466
xmlSchemaInfo
.Clear();
501
validator.ValidateElement(coreReader.LocalName, coreReader.NamespaceURI,
xmlSchemaInfo
, xsiType, xsiNil, xsiSchemaLocation, xsiNoNamespaceSL);
503
validator.ValidateEndOfAttributes(
xmlSchemaInfo
);
512
atomicValue = validator.ValidateEndElement(
xmlSchemaInfo
);
514
if (
xmlSchemaInfo
.IsDefault) { //The atomicValue returned is a default value
518
cachingReader.RecordTextNode(
xmlSchemaInfo
.XmlType.ValueConverter.ToString( atomicValue ), originalAtomicValueString, depth + 1, 0, 0 );
601
object value = ReturnBoxedValue(await ReadTillEndElementAsync().ConfigureAwait(false),
xmlSchemaInfo
.XmlType, unwrapTypedValue);
648
if (
xmlSchemaInfo
.ContentType == XmlSchemaContentType.TextOnly) {
649
typedValue = ReturnBoxedValue(atomicValue,
xmlSchemaInfo
.XmlType, unwrapTypedValue);
666
if (
xmlSchemaInfo
.IsDefault) {
667
if (
xmlSchemaInfo
.ContentType == XmlSchemaContentType.TextOnly) {
668
typedValue = ReturnBoxedValue(atomicValue,
xmlSchemaInfo
.XmlType, unwrapTypedValue);
731
atomicValue = validator.ValidateEndElement(
xmlSchemaInfo
);