Base:
property
LocalName
System.Xml.XmlNode.LocalName
82 references to LocalName
Microsoft.Build (4)
Construction\ProjectElement.cs (1)
402XmlElement.SetAttribute(attribute.LocalName, attribute.NamespaceURI, attribute.Value);
Construction\ProjectItemDefinitionElement.cs (1)
127protected override bool ShouldCloneXmlAttribute(XmlAttribute attribute) => !ProjectMetadataElement.AttributeNameIsValidMetadataName(attribute.LocalName);
Construction\ProjectItemElement.cs (1)
506protected override bool ShouldCloneXmlAttribute(XmlAttribute attribute) => !ProjectMetadataElement.AttributeNameIsValidMetadataName(attribute.LocalName);
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementLink.cs (1)
150result.Add(new XmlAttributeLink(attribute.LocalName, attribute.Value, attribute.NamespaceURI));
Microsoft.Maui.Controls.SourceGen (1)
CodeBehindGenerator.cs (1)
177 nsmgr.AddNamespace(attr.LocalName, attr.Value);
System.Data.Common (17)
System\Data\XDRSchema.cs (1)
469if (node.Attributes[i].LocalName == "Expression")
System\Data\XMLSchema.cs (13)
33string name = attrs[i].LocalName; 269string name = attrs[i].LocalName; 335string propName = XmlConvert.DecodeName(attrs[i].LocalName); 370if (attrs[i].LocalName == "Expression") 387if (nodeAttributes[i].LocalName == ln && nodeAttributes[i].NamespaceURI == Keywords.MSDNS) 406string propName = XmlConvert.DecodeName(attrs[i].LocalName); 2035if (attrs[i].LocalName == Keywords.MSD_ALLOWDBNULL && attrs[i].NamespaceURI == Keywords.MSDNS) 2038if (attrs[i].LocalName == Keywords.MSD_ORDINAL && attrs[i].NamespaceURI == Keywords.MSDNS) 2040if (attrs[i].LocalName == Keywords.MSD_DEFAULTVALUE && attrs[i].NamespaceURI == Keywords.MSDNS) 2149if (attrs[i].LocalName == Keywords.MSD_ALLOWDBNULL && attrs[i].NamespaceURI == Keywords.MSDNS) 2152if (attrs[i].LocalName == Keywords.MSD_ORDINAL && attrs[i].NamespaceURI == Keywords.MSDNS) 2154if (attrs[i].LocalName == Keywords.MSD_DEFAULTVALUE && attrs[i].NamespaceURI == Keywords.MSDNS) 2818if (attrib.LocalName == Keywords.MSD_DATATYPE &&
System\Xml\DataSetMappper.cs (1)
115if (a.LocalName == "xmlns")
System\Xml\XmlDataDocument.cs (1)
1487if (attr.LocalName == col.EncodedColumnName && attr.NamespaceURI == col.Namespace)
System\Xml\XPathNodePointer.cs (1)
1476if (bFound && attr.NamespaceURI == StrReservedXmlns && !DuplicateNS(be, attr.LocalName))
System.Private.Xml (56)
System\Xml\Dom\DocumentSchemaValidator.cs (14)
200if (!dictionary.ContainsKey(attr.LocalName)) 202dictionary.Add(attr.LocalName, attr.Value); 291_validator!.ValidateAttribute(attr.LocalName, attr.NamespaceURI, _nodeValueGetter, _attributeSchemaInfo); 294attr.XmlName = _document.AddAttrXmlName(attr.Prefix, attr.LocalName, attr.NamespaceURI, _attributeSchemaInfo); 337string objectName = attr.LocalName; 339Debug.Assert(_nameTable.Get(attr.LocalName) != null); 354_nsManager.AddNamespace(attr.Prefix.Length == 0 ? string.Empty : attr.LocalName, attr.Value); 398_validator!.ValidateAttribute(attr.LocalName, attr.NamespaceURI, _nodeValueGetter, _attributeSchemaInfo); 401attr.XmlName = _document.AddAttrXmlName(attr.Prefix, attr.LocalName, attr.NamespaceURI, _attributeSchemaInfo); 424attr.XmlName = _document.AddAttrXmlName(attr.Prefix, attr.LocalName, attr.NamespaceURI, _attributeSchemaInfo); 559XmlQualifiedName attName = new XmlQualifiedName(attributeToValidate.LocalName, attributeToValidate.NamespaceURI); 686string objectName = attr.LocalName; 688Debug.Assert(_nameTable.Get(attr.LocalName) != null); 703_nsManager.AddNamespace(attr.Prefix.Length == 0 ? string.Empty : attr.LocalName, attr.Value);
System\Xml\Dom\DocumentXmlWriter.cs (2)
443throw new XmlException(SR.Xml_DupAttributeName, attr.Prefix.Length == 0 ? attr.LocalName : $"{attr.Prefix}:{attr.LocalName}");
System\Xml\Dom\DocumentXPathNavigator.cs (5)
298if (attribute.LocalName == localName 492while (Ref.Equal(attribute.LocalName, _document.strXml)) 602localName = attribute.LocalName; 627while (PathHasDuplicateNamespace(attribute.OwnerElement, _namespaceParent, attribute.LocalName)); 1822string prefix = attribute.Prefix.Length == 0 ? string.Empty : attribute.LocalName;
System\Xml\Dom\XmlAttribute.cs (4)
56XmlAttribute attr = doc.CreateAttribute(Prefix, LocalName, NamespaceURI); 90set { _name = _name.OwnerDocument.AddAttrXmlName(value, LocalName, NamespaceURI, SchemaInfo); } 149return ownerElement.Attributes.PrepareParentInElementIdAttrMap(Prefix, LocalName); 348w.WriteStartAttribute(Prefix, LocalName, NamespaceURI);
System\Xml\Dom\XmlAttributeCollection.cs (6)
70&& localName == node.LocalName 104&& tmp.LocalName == node.LocalName 193int offset = FindNodeOffset(refNode.LocalName, refNode.NamespaceURI); 222int offset = FindNodeOffset(refNode.LocalName, refNode.NamespaceURI); 373int ind = FindNodeOffset(attr.LocalName, attr.NamespaceURI);
System\Xml\Dom\XmlLoader.cs (12)
263attr.XmlName = _doc.AddAttrXmlName(attr.Prefix, attr.LocalName, attr.NamespaceURI, schemaInfo); 308attr.XmlName = _doc.AddAttrXmlName(attr.Prefix, attr.LocalName, attr.NamespaceURI, schemaInfo); 701if (attr.Prefix == _doc.strXmlns && !prefixes.Contains(attr.LocalName)) 704prefixes.Add(attr.LocalName); 705mgr.AddNamespace(attr.LocalName, attr.Value); 707else if (!bHasDefXmlnsAttr && attr.Prefix.Length == 0 && attr.LocalName == _doc.strXmlns) 713else if (spaceMode == XmlSpace.None && attr.Prefix == _doc.strXml && attr.LocalName == _doc.strSpace) 721else if (lang == null && attr.Prefix == _doc.strXml && attr.LocalName == _doc.strLang) 815string? nsUri = mgr.LookupNamespace(attr.LocalName); 827mgr.AddNamespace(attr.LocalName, attr.Value); 830else if (attr.Prefix.Length == 0 && attr.LocalName == _doc.strXmlns) 844mgr.AddNamespace(attr.LocalName, attr.Value);
System\Xml\Dom\XmlNode.cs (4)
1104if (Ref.Equal(attr.LocalName, doc.strXmlns)) 1118if (Ref.Equal(attr.LocalName, pref)) 1187if (Ref.Equal(attr.LocalName, doc.strXmlns)) 1199return attr.LocalName; // found xmlns:prefix="namespaceURI"
System\Xml\Dom\XmlNodeReader.cs (4)
954if (a.Prefix.Length == 0 && a.LocalName == "xmlns") 963string pref = a.LocalName; 1004if (a.LocalName == "xmlns" && a.Prefix.Length == 0) 1013string localName = a.LocalName;
System\Xml\Dom\XmlUnspecifiedAttribute.cs (1)
26XmlUnspecifiedAttribute attr = (XmlUnspecifiedAttribute)doc.CreateDefaultAttribute(Prefix, LocalName, NamespaceURI);
System\Xml\Serialization\ImportContext.cs (1)
444if (attribute.LocalName == Wsdl.ArrayType && attribute.NamespaceURI == Wsdl.Namespace)
System\Xml\Serialization\XmlSchemas.cs (1)
309if (a.LocalName == "IsDataSet" && a.NamespaceURI == "urn:schemas-microsoft-com:xml-msdata")
System\Xml\Serialization\XmlSerializationReader.cs (1)
790if ((object)attr.LocalName == (object)_wsdlArrayTypeID && (object)attr.NamespaceURI == (object)_wsdlNsID)
System\Xml\Serialization\XmlSerializationWriter.cs (1)
932if (attr.NamespaceURI == Wsdl.Namespace && attr.LocalName == Wsdl.ArrayType)
System.Security.Cryptography.Xml (4)
System\Security\Cryptography\Xml\C14NAncestralNamespaceContextManager.cs (1)
24if (((XmlAttribute)a).LocalName.Equals(nsPrefix))
System\Security\Cryptography\Xml\Utils.cs (2)
127return a.Prefix.Length == 0 ? string.Empty : a.LocalName; 535if (bDefNamespaceToAdd && attrib.LocalName == "xmlns")
System\Security\Cryptography\Xml\XmlDsigXPathTransform.cs (1)
63prefix = attrib.LocalName;