4 types derived from XmlElement
Microsoft.Build (1)
System.Configuration.ConfigurationManager (1)
System.Data.Common (1)
System.Security.Cryptography.Xml (1)
2 instantiations of XmlElement
System.Private.Xml (2)
1017 references to XmlElement
CSharpSyntaxGenerator (2)
dotnet-svcutil-lib (1)
ILLink.Tasks (5)
IOperationGenerator (2)
Microsoft.AspNetCore.AzureAppServices.SiteExtension.Tests (2)
Microsoft.AspNetCore.DataProtection (4)
Microsoft.AspNetCore.DataProtection.Tests (2)
Microsoft.Build (49)
Evaluation\Preprocessor.cs (16)
37private readonly Dictionary<XmlElement, IList<ProjectRootElement>> _importTable;
64_importTable = new Dictionary<XmlElement, IList<ProjectRootElement>>(imports.Count);
117private void AddToImportTable(XmlElement element, ProjectRootElement importedProject)
164private void AddImplicitImportNodes(XmlElement documentElement)
182XmlElement xmlElement = (XmlElement)documentElement.OwnerDocument.ImportNode(import.ImportingElement.XmlElement, false);
208XmlElement xmlElement = (XmlElement)documentElement.InsertAfter(documentElement.OwnerDocument.ImportNode(import.ImportingElement.XmlElement, false), documentElement.LastChild);
242string innerInitialTargets = ((XmlElement)child).GetAttribute(XMakeAttributes.initialTargets).Trim();
259string innerDefaultTargets = ((XmlElement)child).GetAttribute(XMakeAttributes.defaultTargets).Trim();
278string importCondition = ((XmlElement)child).GetAttribute(XMakeAttributes.condition);
280string importProject = ((XmlElement)child).GetAttribute(XMakeAttributes.project).Replace("--", "__");
281string importSdk = ((XmlElement)child).GetAttribute(XMakeAttributes.sdk);
285string projectSdk = source.NodeType == XmlNodeType.Element && String.Equals(XMakeElements.project, source.Name, StringComparison.Ordinal) ? ((XmlElement)source).GetAttribute(XMakeAttributes.sdk) : String.Empty;
288if (!_importTable.TryGetValue((XmlElement)child, out resolvedList))
336string importGroupCondition = ((XmlElement)child).GetAttribute(XMakeAttributes.condition);
Microsoft.Build.BuildCheck.UnitTests (1)
Microsoft.Build.Tasks.Core (145)
AddToWin32Manifest.cs (5)
213XmlElement appNode = GetOrCreateXmlElement(document, xmlNamespaceManager, application, asmv3Prefix, XmlNamespaces.asmv3);
214XmlElement winSettingsNode = GetOrCreateXmlElement(document, xmlNamespaceManager, windowsSettings, asmv3Prefix, XmlNamespaces.asmv3);
220XmlElement supportedArchitecturesNode = GetOrCreateXmlElement(document, xmlNamespaceManager, supportedArchitectures, namespaceURI: WindowsSettingsNamespace);
236private XmlElement GetOrCreateXmlElement(XmlDocument document, XmlNamespaceManager xmlNamespaceManager, string localName, string prefix = "", string namespaceURI = "")
240if (existingNode is XmlElement element)
BootstrapperUtil\BootstrapperBuilder.cs (20)
198XmlElement configElement = _document.CreateElement("Configuration");
199XmlElement applicationElement = CreateApplicationElement(configElement, settings);
595XmlElement rootElement = _document.CreateElement("Products", BOOTSTRAPPER_NAMESPACE);
876private void ExploreDirectory(string strSubDirectory, XmlElement rootElement, string packagePath)
933var baseElement = (XmlElement)(_document.ImportNode(baseNode, true));
954XmlElement langElement = (XmlElement)(_document.ImportNode(langNode, true));
955XmlElement mergeElement = _document.CreateElement("Package", BOOTSTRAPPER_NAMESPACE);
1192private void AppendNode(XmlElement element, string nodeName, XmlElement mergeElement)
1201private void CombineElements(XmlElement langElement, XmlElement baseElement, string strNodeName, string strSubNodeKey, XmlElement mergeElement)
1361private bool BuildPackages(BuildSettings settings, XmlElement configElement, ResourceUpdater resourceUpdater, List<string> filesCopied, Dictionary<string, KeyValuePair<string, string>> eulas)
1914private static XmlElement CreateApplicationElement(XmlElement configElement, BuildSettings settings)
1916XmlElement applicationElement = null;
1929XmlElement filesNode = applicationElement.OwnerDocument.CreateElement("Files");
1930XmlElement fileNode = filesNode.OwnerDocument.CreateElement("File");
ManifestUtil\mansign2.cs (33)
249internal ManifestSignedXml2(XmlElement elem)
285public override XmlElement GetIdElement(XmlDocument document, string idValue)
384private XmlElement ExtractPrincipalFromManifest()
394return assemblyIdentityNode as XmlElement;
407XmlElement assembly = manifestDom.SelectSingleNode("asm:assembly", nsm) as XmlElement;
408XmlElement assemblyIdentity = manifestDom.SelectSingleNode("asm:assembly/asm:assemblyIdentity", nsm) as XmlElement;
415XmlElement publisherIdentity = manifestDom.SelectSingleNode("asm:assembly/asm2:publisherIdentity", nsm) as XmlElement;
435XmlElement signature = manifestDom.SelectSingleNode("asm:assembly/ds:Signature", nsm) as XmlElement;
499XmlElement assemblyIdentity = manifestDom.SelectSingleNode("asm:assembly/asm:assemblyIdentity", nsm) as XmlElement;
692private static XmlDocument CreateLicenseDom(CmiManifestSigner2 signer, XmlElement principal, byte[] hash)
701XmlElement assemblyIdentityNode = licenseDom.SelectSingleNode("r:license/r:grant/as:ManifestInformation/as:assemblyIdentity", nsm) as XmlElement;
708XmlElement manifestInformationNode = licenseDom.SelectSingleNode("r:license/r:grant/as:ManifestInformation", nsm) as XmlElement;
714XmlElement authenticodePublisherNode = licenseDom.SelectSingleNode("r:license/r:grant/as:AuthenticodePublisher/as:X509SubjectName", nsm) as XmlElement;
779XmlElement xmlDigitalSignature = signedXml.GetXml();
785XmlElement issuerNode = licenseDom.SelectSingleNode("r:license/r:issuer", nsm) as XmlElement;
908XmlElement signatureValueNode = licenseDom.SelectSingleNode("r:license/r:issuer/ds:Signature/ds:SignatureValue", nsm) as XmlElement;
949XmlElement asTimestamp = licenseDom.CreateElement("as", "Timestamp", AuthenticodeNamespaceUri);
952XmlElement dsObject = licenseDom.CreateElement("Object", SignedXml.XmlDsigNamespaceUrl);
955XmlElement signatureNode = licenseDom.SelectSingleNode("r:license/r:issuer/ds:Signature", nsm) as XmlElement;
974XmlElement signatureParent = manifestDom.SelectSingleNode("asm:assembly", nsm) as XmlElement;
1041XmlElement xmlDigitalSignature = signedXml.GetXml();
ManifestUtil\TrustInfo.cs (51)
39private void AddSameSiteAttribute(XmlElement permissionSetElement)
64private void FixupPermissionSetElement(XmlElement permissionSetElement)
128XmlElement defaultAssemblyRequestElement = (XmlElement)permissionSetElement.ParentNode.SelectSingleNode(XPaths.defaultAssemblyRequestElement, nsmgr);
152XmlElement psElement = GetInputPermissionSetElement();
176private XmlElement GetInputPermissionSetElement()
181XmlElement trustInfoElement = _inputTrustInfoDocument.CreateElement(XmlUtil.TrimPrefix(XPaths.trustInfoElement), XmlNamespaces.asmv2);
187private XmlElement GetInputRequestedPrivilegeElement()
195XmlElement trustInfoElement = _inputTrustInfoDocument.DocumentElement;
196XmlElement securityElement = (XmlElement)trustInfoElement?.SelectSingleNode(XPaths.securityElement, nsmgr);
197XmlElement requestedPrivilegeElement = (XmlElement)securityElement?.SelectSingleNode(XPaths.requestedPrivilegeElement, nsmgr);
201private static XmlElement GetRequestedPrivilegeElement(XmlElement inputRequestedPrivilegeElement, XmlDocument document)
219XmlElement requestedPrivilegeElement = document.CreateElement(XmlUtil.TrimPrefix(XPaths.requestedPrivilegeElement), XmlNamespaces.asmv3);
255XmlElement inputRequestedExecutionLevel = (XmlElement)inputRequestedPrivilegeElement.SelectSingleNode(XPaths.requestedExecutionLevelElement, nsmgr);
297XmlElement requestedExecutionLevelElement = document.CreateElement(XmlUtil.TrimPrefix(XPaths.requestedExecutionLevelElement), XmlNamespaces.asmv3);
316private XmlElement GetPermissionSetElement(XmlDocument document)
320XmlElement trustInfoElement = document.DocumentElement;
321var securityElement = (XmlElement)trustInfoElement.SelectSingleNode(XPaths.securityElement, nsmgr);
327XmlElement applicationRequestMinimumElement = (XmlElement)securityElement.SelectSingleNode(XPaths.applicationRequestMinimumElement, nsmgr);
333XmlElement permissionSetElement = (XmlElement)applicationRequestMinimumElement.SelectSingleNode(XPaths.permissionSetElement, nsmgr);
461var trustInfoElement = (XmlElement)document.SelectSingleNode(xpath, nsmgr);
497XmlElement psElement = GetInputPermissionSetElement();
562XmlElement inputPermissionSetElement = GetInputPermissionSetElement();
565XmlElement outputPermissionSetElement = XmlUtil.CloneElementToDocument(inputPermissionSetElement, outputDocument, XmlNamespaces.asmv2);
571XmlElement inputRequestedPrivilegeElement = GetInputRequestedPrivilegeElement();
573XmlElement requestedPrivilegeElement = GetRequestedPrivilegeElement(inputRequestedPrivilegeElement, privilegeDocument);
601XmlElement permissionSetElement = outputDocument.DocumentElement;
610XmlElement permissionSetElement = permissionSetDocument.DocumentElement;
620XmlElement oldPermissionSetElement = outputDocument.DocumentElement;
621XmlElement newPermissionSetElement = (XmlElement)outputDocument.ImportNode(permissionSetElement, true);
711XmlElement assemblyElement = (XmlElement)document.SelectSingleNode(XPaths.assemblyElement, nsmgr);
717var trustInfoElement = (XmlElement)assemblyElement.SelectSingleNode(XPaths.trustInfoElement, nsmgr);
755XmlElement newTrustInfoElement = (XmlElement)document.ImportNode(_inputTrustInfoDocument.DocumentElement, true);
760var securityElement = (XmlElement)trustInfoElement.SelectSingleNode(XPaths.securityElement, nsmgr);
766var applicationRequestMinimumElement = (XmlElement)securityElement.SelectSingleNode(XPaths.applicationRequestMinimumElement, nsmgr);
780var permissionSetElement = (XmlElement)document.ImportNode(permissionSetDocument.DocumentElement, true);
Microsoft.Build.Tasks.UnitTests (6)
Microsoft.Build.Utilities.Core (9)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Microsoft.DotNet.SignCheckLibrary (2)
Microsoft.Web.Xdt.Extensions.Tests (4)
netstandard (1)
PresentationBuildTasks (10)
PresentationFramework (41)
ReachFramework (57)
PrintConfig\PrtTicket_Base.cs (36)
69XmlElement parentElement = null;
268XmlElement parentElement = null;
391private PTFeatureNode(PrintTicketFeature ownerFeature, XmlElement featureElement)
407XmlElement parentElement)
413XmlElement featureElement = PrintTicketEditor.GetSchemaElementWithNameAttr(pt,
430XmlElement parentElement)
453XmlElement optionNode = GetFirstOption();
492XmlElement optionNode = GetFirstOption();
521XmlElement optionNode = GetFirstOption();
563XmlElement option = GetFirstOption();
582XmlElement property = PrintTicketEditor.AddSchemaElementWithNameAttr(pt,
587XmlElement valueNode = PrintTicketEditor.AddSchemaElementWithNameAttr(pt,
610XmlElement optionNode = GetFirstOption();
642XmlElement option = GetFirstOption();
661XmlElement property = PrintTicketEditor.AddSchemaElementWithNameAttr(pt,
666XmlElement valueNode = PrintTicketEditor.AddSchemaElementWithNameAttr(pt,
689XmlElement optionNode = GetFirstOption();
695XmlElement propertyNode = PrintTicketEditor.GetSchemaElementWithNameAttr(pt,
704XmlElement refNode = PrintTicketEditor.GetSchemaElementWithNameAttr(pt,
740XmlElement option = GetFirstOption();
759XmlElement property = PrintTicketEditor.AddSchemaElementWithNameAttr(pt,
773public XmlElement GetFirstOption()
795public XmlElement FeatureElement
810private string GetOptionPropertyValueText(XmlElement parentOption, string propertyName)
815XmlElement propertyNode = PrintTicketEditor.GetSchemaElementWithNameAttr(pt,
824XmlElement valueNode = PrintTicketEditor.GetSchemaElementWithNameAttr(pt,
852private XmlElement _featureElement;
1200private PrintTicketParameterNode(PrintTicketParameter ownerParameter, XmlElement parameterElement)
1221XmlElement parameterElement = PrintTicketEditor.GetSchemaElementWithNameAttr(pt,
1296XmlElement valueNode = PrintTicketEditor.GetSchemaElementWithNameAttr(pt,
1321public XmlElement SetIntValue(int value)
1323XmlElement valueNode = SetStringValue(value.ToString(CultureInfo.InvariantCulture),
1332public XmlElement SetStringValue(string value, string xsiType)
1343XmlElement valueNode = PrintTicketEditor.AddSchemaElementWithNameAttr(pt,
1368public XmlElement ParameterElement
1381private XmlElement _parameterElement;
PrintConfig\PrtTicket_Editor.cs (19)
46XmlElement root = pt.XmlDoc.DocumentElement;
118string childName = ((XmlElement)rootChild).GetAttribute(PrintSchemaTags.Framework.NameAttr,
153XmlElement root = pt.XmlDoc.DocumentElement;
208public static string AddStdNamespaceDeclaration(XmlElement root, string prefix_header, string nsURI)
240public static XmlElement GetSchemaElementWithNameAttr(InternalPrintTicket pt,
241XmlElement parent,
245XmlElement elementMatched = null;
273string childName = ((XmlElement)child).GetAttribute(
288elementMatched = (XmlElement)child;
304XmlElement parent,
308XmlElement childMatched;
332childMatched = (XmlElement)child;
337string childName = ((XmlElement)child).GetAttribute(
346childMatched = (XmlElement)child;
359public static XmlElement AddSchemaElementWithNameAttr(InternalPrintTicket pt,
360XmlElement parent,
366XmlElement newNode = pt.XmlDoc.CreateElement(prefix, schemaTag, PrintSchemaNamespaces.Framework);
375return (XmlElement)parent.AppendChild(newNode);
379XmlElement valueElement,
System.Configuration.ConfigurationManager (5)
System.Data.Common (161)
System\Data\XDRSchema.cs (26)
17internal XmlElement? _schemaRoot;
29internal void LoadSchema(XmlElement schemaRoot, DataSet ds)
52if (!(n is XmlElement))
55XmlElement child = (XmlElement)n;
68internal static XmlElement? FindTypeNode(XmlElement node)
102if (vn is XmlElement && ((XmlElement)vn).GetAttribute(Keywords.NAME) == strType)
103return (XmlElement)vn;
131internal static bool IsTextOnlyContent(XmlElement node)
154internal static bool IsXDRField(XmlElement node, XmlElement typeNode)
180internal DataTable? HandleTable(XmlElement node)
182XmlElement? typeNode;
319internal static string GetInstanceName(XmlElement node)
343internal void HandleColumn(XmlElement node, DataTable table)
391XmlElement? typeNode = FindTypeNode(node);
494internal static void GetMinMax(XmlElement elNode, ref int minOccurs, ref int maxOccurs)
521internal void HandleTypeNode(XmlElement typeNode, DataTable table, ArrayList tableChildren)
527if (!(n is XmlElement))
532tableChild = HandleTable((XmlElement)n);
543HandleColumn((XmlElement)n, table);
550internal DataTable InstantiateTable(DataSet dataSet, XmlElement node, XmlElement typeNode)
643internal DataTable InstantiateSimpleTable(DataSet dataSet, XmlElement node)
System\Data\xmlsaver.cs (68)
41private XmlElement? _sRoot;
47private XmlElement? _dsElement;
48private XmlElement? _constraintSeparator;
61internal static void AddExtendedProperties(PropertyCollection? props, XmlElement node)
66internal static void AddExtendedProperties(PropertyCollection? props, XmlElement node, Type? type)
110internal void AddXdoProperties(object? instance, XmlElement root)
132internal void AddXdoProperty(PropertyDescriptor pd, object instance, XmlElement root)
377internal void WriteSchemaRoot(XmlElement rootSchema, string targetNamespace)
586XmlElement rootSchema = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SCHEMA, Keywords.XSDNS);
684XmlElement dsCompositor = FillDataSetElement(xd, ds, dt);
698XmlElement el = HandleTable(top[i], xd, rootSchema);
738XmlElement node = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS);
752XmlElement node = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS);
780XmlElement? nodeAnn = null;
781XmlElement? nodeApp = null;
818XmlElement _import = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_IMPORT, Keywords.XSDNS);
872XmlElement tNode = (XmlElement)_namespaces[ns]!;
887XmlElement _import2 = _dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_IMPORT, Keywords.XSDNS);
943internal XmlElement SchemaTree(XmlDocument xd, DataTable dt)
958XmlElement rootSchema = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SCHEMA, Keywords.XSDNS);
1007XmlElement el = HandleTable(dt, xd, rootSchema, false);
1016internal XmlElement FillDataSetElement(XmlDocument xd, DataSet? ds, DataTable? dt)
1067XmlElement type = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_COMPLEXTYPE, Keywords.XSDNS);
1069XmlElement compositor = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_CHOICE, Keywords.XSDNS);
1117XmlElement rootSchema = SchemaTree(doc, dt);
1154internal XmlElement HandleRelation(DataRelation rel, XmlDocument dc)
1156XmlElement root = dc.CreateElement(Keywords.MSD, Keywords.MSD_RELATION, Keywords.MSDNS);
1210private static XmlElement? FindSimpleType(XmlElement schema, string name)
1214if (n is XmlElement e && e.GetAttribute(Keywords.NAME) == name)
1222internal XmlElement GetSchema(string NamespaceURI)
1224XmlElement? schemaEl = (XmlElement?)_namespaces![NamespaceURI];
1241internal void HandleColumnType(DataColumn col, XmlDocument dc, XmlElement root, XmlElement schema)
1267XmlElement schNode = GetSchema(nSpace);
1291XmlElement? elmSimpeType = FindSimpleType(schNode, name);
1343internal void AddColumnProperties(DataColumn col, XmlElement root)
1423internal XmlElement HandleColumn(DataColumn col, XmlDocument dc, XmlElement schema, bool fWriteOrdinal)
1428XmlElement root;
1513XmlElement schNode = GetSchema(col.Namespace);
1567internal void AppendChildWithoutRef(string Namespace, XmlElement el)
1569XmlElement schNode = GetSchema(Namespace);
1574internal static XmlElement? FindTypeNode(XmlElement node, string strType)
1581if (!(n is XmlElement))
1584XmlElement child = (XmlElement)n;
1600internal XmlElement HandleTable(DataTable table, XmlDocument dc, XmlElement schema)
1727internal XmlElement HandleTable(DataTable table, XmlDocument dc, XmlElement schema, bool genNested)
1733XmlElement root = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS);
1835XmlElement type = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_COMPLEXTYPE, Keywords.XSDNS);
1839XmlElement typeSchema = GetSchema(table.TypeName.Namespace);
1864XmlElement? compositor;
1870XmlElement sc = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SIMPLECONTENT, Keywords.XSDNS);
1890XmlElement ext = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_EXTENSION, Keywords.XSDNS);
1913XmlElement el = HandleColumn(col, dc, schema, fWriteOrdinals);
1915XmlElement node = isAttribute ? type : compositor;
1927XmlElement NestedTable;
1970XmlElement nodeAnn = _dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ANNOTATION, Keywords.XSDNS);
1973XmlElement nodeApp = _dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_APPINFO, Keywords.XSDNS);
1988XmlElement selector, field;
1998XmlElement? constraint;
2231private void SetMSDataAttribute(XmlElement root, Type type)
System.Private.DataContractSerialization (45)
System\Runtime\Serialization\SchemaExporter.cs (22)
124XmlElement? genericInfoElement = null;
135XmlElement? actualTypeElement = null;
155XmlElement? isValueTypeElement = null;
217private XmlElement? ExportEmitDefaultValue(DataMember dataMember)
221XmlElement defaultValueElement = XmlDoc.CreateElement(DefaultValueAnnotation.Name, DefaultValueAnnotation.Namespace);
228private XmlElement ExportActualType(XmlQualifiedName typeName)
233private static XmlElement ExportActualType(XmlQualifiedName typeName, XmlDocument xmlDoc)
235XmlElement actualTypeElement = xmlDoc.CreateElement(ActualTypeAnnotationName.Name, ActualTypeAnnotationName.Namespace);
250private XmlElement ExportGenericInfo(Type clrType, string elementName, string elementNs)
294XmlElement typeElement = XmlDoc.CreateElement(elementName, elementNs);
314XmlElement argumentElement = ExportGenericInfo(genericArguments[argIndex], Globals.GenericParameterLocalName, Globals.SerializationNamespace);
338private XmlElement? ExportSurrogateData(object key)
356return (XmlElement?)XmlDoc.ReadNode(xmlReader);
366XmlElement? genericInfoElement = null, isDictionaryElement = null;
414private XmlElement ExportIsDictionary()
416XmlElement isDictionaryElement = XmlDoc.CreateElement(IsDictionaryAnnotationName.Name, IsDictionaryAnnotationName.Namespace);
427XmlElement? actualTypeElement = (enumDataContract.BaseContractName == DefaultEnumBaseTypeName) ? null : ExportActualType(enumDataContract.BaseContractName);
469XmlElement? genericInfoElement = null;
473XmlElement? isValueTypeElement = null;
807XmlElement annotationElement = GetAnnotationMarkup(annotationQualifiedName, innerText, schema);
834private XmlElement GetAnnotationMarkup(XmlQualifiedName annotationQualifiedName, string innerText, XmlSchema schema)
836XmlElement annotationElement = XmlDoc.CreateElement(annotationQualifiedName.Name, annotationQualifiedName.Namespace);
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (4)
525obj = (XmlElement?)xmlDoc.ReadNode(xmlSerializableReader);
1042XmlElement wrapperElement = CreateWrapperXmlElement(Document, xmlAttributes, xmlChildNodes, null, null, null);
1049internal static XmlElement CreateWrapperXmlElement(XmlDocument document, IList<XmlAttribute>? xmlAttributes, IList<XmlNode>? xmlChildNodes, string? prefix, string? localName, string? ns)
1053XmlElement wrapperElement = document.CreateElement(prefix, localName, ns);
System.Private.Xml (162)
System\Xml\Dom\XmlDocument.cs (23)
286private static WeakReference<XmlElement>? GetElement(ArrayList elementList, XmlElement elem)
289foreach (WeakReference<XmlElement> elemRef in elementList)
291if (!elemRef.TryGetTarget(out XmlElement? target))
304foreach (WeakReference<XmlElement> elemRef in gcElemRefs)
310internal void AddElementWithId(string id, XmlElement elem)
316elementList.Add(new WeakReference<XmlElement>(elem));
324elementList.Add(new WeakReference<XmlElement>(elem));
328internal void RemoveElementWithId(string id, XmlElement elem)
333WeakReference<XmlElement>? elemRef = GetElement(elementList, elem);
404public XmlElement? DocumentElement
406get { return (XmlElement?)FindChild(XmlNodeType.Element); }
651public XmlElement CreateElement(string name)
660internal void AddDefaultAttributes(XmlElement elem)
692private SchemaElementDecl? GetSchemaElementDecl(XmlElement elem)
918public XmlElement CreateElement(string qualifiedName, string? namespaceURI)
934public virtual XmlElement? GetElementById(string elementId)
941foreach (WeakReference<XmlElement> elemRef in elementList)
943if (elemRef.TryGetTarget(out XmlElement? elem) && elem.IsConnected())
1070public virtual XmlElement CreateElement(string? prefix, string localName, string? namespaceURI)
1072XmlElement elem = new XmlElement(AddXmlName(prefix, localName, namespaceURI, null), true, this);
1666internal XmlAttribute? GetDefaultAttribute(XmlElement elem, string attrPrefix, string attrLocalname, string attrNamespaceURI)
1744XmlElement? documentElement = DocumentElement;
System\Xml\Dom\XmlNodeReader.cs (21)
295return ((XmlElement)_curNode).IsEmpty;
334return ((XmlElement)_curNode).Attributes.Count;
479private static string? GetAttributeFromElement(XmlElement elem, string name)
494XmlNodeType.Element => GetAttributeFromElement((XmlElement)_curNode!, name),
495XmlNodeType.Attribute => GetAttributeFromElement((XmlElement)_elemNode!, name),
502private static string? GetAttributeFromElement(XmlElement elem, string name, string? ns)
516XmlNodeType.Element => GetAttributeFromElement((XmlElement)_curNode, name, ns),
517XmlNodeType.Attribute => GetAttributeFromElement((XmlElement)_elemNode!, name, ns),
532return ((XmlElement)_curNode).Attributes[attributeIndex].Value;
535return ((XmlElement)_elemNode!).Attributes[attributeIndex].Value;
637private bool MoveToAttributeFromElement(XmlElement elem, string name, string ns)
664return MoveToAttributeFromElement((XmlElement)_curNode, name, namespaceURI);
666return MoveToAttributeFromElement((XmlElement)_elemNode!, name, namespaceURI);
695attr = ((XmlElement)_curNode).Attributes[attributeIndex];
705attr = ((XmlElement)_elemNode!).Attributes[attributeIndex];
877XmlElement elem = (XmlElement)node;
945XmlElement elem = (XmlElement)node;
997XmlElement elem = (XmlElement)node;
System.Runtime.Serialization.Schema (5)
System.Security.Cryptography.Xml (278)
System\Security\Cryptography\Xml\Utils.cs (16)
26private static bool HasNamespace(XmlElement element, string prefix, string value)
34internal static bool IsCommittedNamespace(XmlElement element, string prefix, string value)
46internal static bool IsRedundantNamespace(XmlElement element, string prefix, string value)
56XmlElement? ancestorElement = ancestorNode as XmlElement;
65internal static string? GetAttribute(XmlElement element, string localName, string namespaceURI)
73internal static bool HasAttribute(XmlElement element, string localName, string namespaceURI)
78internal static bool VerifyAttributes(XmlElement element, string? expectedAttrName)
83internal static bool VerifyAttributes(XmlElement element, string[]? expectedAttrNames)
221internal static XmlDocument PreProcessElementInput(XmlElement elem, XmlResolver xmlResolver, string? baseUri)
361internal static void RemoveAllChildren(XmlElement inputElement)
470internal static void AddNamespaces(XmlElement elem, CanonicalXmlNodeList? namespaces)
486internal static void AddNamespaces(XmlElement elem, Hashtable namespaces)
501internal static CanonicalXmlNodeList? GetPropagatedAttributes(XmlElement? elem)
512XmlElement? ancestorElement = ancestorNode as XmlElement;
System.ServiceModel.Federation (7)
System.ServiceModel.Federation.Tests (2)
System.ServiceModel.Primitives (5)
System.Xml (1)
System.Xml.ReaderWriter (1)
System.Xml.XmlDocument (1)