System\Xml\Schema\Inference\Infer.cs (15)
265private XmlSchemaAttribute AddAttribute(string localName, string prefix, string childURI, string attrValue, bool bCreatingNewType, XmlSchema parentSchema, XmlSchemaObjectCollection addLocation, XmlSchemaObjectTable compiledAttributes)
272XmlSchemaAttribute? xsa;
274XmlSchemaAttribute? returnedAttribute; //this value will change to attributeReference if childURI!= parentURI
298XmlSchemaAttribute? attributeReference;
358XmlSchemaAttribute? attributeReference;
1235XmlSchemaAttribute? xsa;
1304foreach (XmlSchemaAttribute? attr in sourceCollection)
1312internal static XmlSchemaAttribute? FindAttribute(ICollection attributes, string attrName)
1316XmlSchemaAttribute? schemaAttribute = xsa as XmlSchemaAttribute;
1363internal static XmlSchemaAttribute? FindAttributeRef(ICollection attributes, string attributeName, string nsURI)
1367XmlSchemaAttribute? schemaAttribute = xsa as XmlSchemaAttribute;
1418XmlSchemaAttribute? attr = attributes[i] as XmlSchemaAttribute;
System\Xml\Schema\XmlSchemaValidator.cs (23)
125private static XmlSchemaAttribute? s_xsiTypeSO;
126private static XmlSchemaAttribute? s_xsiNilSO;
127private static XmlSchemaAttribute? s_xsiSLSO;
128private static XmlSchemaAttribute? s_xsiNoNsSLSO;
380if (!(partialValidationType is XmlSchemaElement || partialValidationType is XmlSchemaAttribute || partialValidationType is XmlSchemaType))
504XmlSchemaAttribute? localAttribute = null;
582SendValidationEvent(SR.Sch_SchemaAttributeNameMismatch, new string[] { attQName.ToString(), ((XmlSchemaAttribute)pvtAttribute!).QualifiedName.ToString() });
968public XmlSchemaAttribute[] GetExpectedAttributes()
989return (attList.ToArray(typeof(XmlSchemaAttribute)) as XmlSchemaAttribute[])!;
995XmlSchemaAttribute? attribute = _partialValidationType as XmlSchemaAttribute;
998return new XmlSchemaAttribute[1] { attribute };
1002return Array.Empty<XmlSchemaAttribute>();
1616Debug.Assert(_partialValidationType is XmlSchemaAttribute);
2464XmlSchemaAttribute tempXsiTypeSO = new XmlSchemaAttribute();
2468Interlocked.CompareExchange<XmlSchemaAttribute?>(ref s_xsiTypeSO, tempXsiTypeSO, null);
2472XmlSchemaAttribute tempxsiNilSO = new XmlSchemaAttribute();
2476Interlocked.CompareExchange<XmlSchemaAttribute?>(ref s_xsiNilSO, tempxsiNilSO, null);
2481XmlSchemaAttribute tempxsiSLSO = new XmlSchemaAttribute();
2485Interlocked.CompareExchange<XmlSchemaAttribute?>(ref s_xsiSLSO, tempxsiSLSO, null);
2490XmlSchemaAttribute tempxsiNoNsSLSO = new XmlSchemaAttribute();
2494Interlocked.CompareExchange<XmlSchemaAttribute?>(ref s_xsiNoNsSLSO, tempxsiNoNsSLSO, null);
System\Xml\Serialization\XmlSchemaImporter.cs (12)
643if (item is XmlSchemaAttribute)
645ImportAttributeMember((XmlSchemaAttribute)item, identifier, members, membersScope, typeNs);
1428private void ImportAttributeMember(XmlSchemaAttribute attribute, string identifier, CodeIdentifiers members, CodeIdentifiers membersScope, string? ns)
1544else if (item is XmlSchemaAttribute)
1545ImportAttributeMember((XmlSchemaAttribute)item, identifier, members, membersScope, ns);
1566private AttributeAccessor? ImportAttribute(XmlSchemaAttribute attribute, string identifier, string? ns, XmlSchemaAttribute defaultValueProvider)
1930private XmlSchemaAttribute FindAttribute(XmlQualifiedName name)
1932XmlSchemaAttribute? attribute = (XmlSchemaAttribute?)Schemas.Find(name, typeof(XmlSchemaAttribute));
1967private static XmlSchemaForm AttributeForm(string? ns, XmlSchemaAttribute attribute)