4 types derived from XmlElement
Microsoft.Build (1)
ElementLocation\XmlElementWithLocation.cs (1)
22internal class XmlElementWithLocation : XmlElement, IXmlLineInfo, ILinkedXml
System.Configuration.ConfigurationManager (1)
System\Configuration\ConfigXmlElement.cs (1)
9internal sealed class ConfigXmlElement : XmlElement, IConfigErrorInfo
System.Data.Common (1)
System\Xml\XmlBoundElement.cs (1)
25internal sealed class XmlBoundElement : XmlElement
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\CanonicalXmlElement.cs (1)
11internal sealed class CanonicalXmlElement : XmlElement, ICanonicalizableNode
2 instantiations of XmlElement
System.Private.Xml (2)
System\Xml\Dom\XmlDocument.cs (1)
1072XmlElement elem = new XmlElement(AddXmlName(prefix, localName, namespaceURI, null), true, this);
System\Xml\Dom\XmlLoader.cs (1)
467XmlElement element = new XmlElement(_reader.Prefix, _reader.LocalName, _reader.NamespaceURI, _doc!);
998 references to XmlElement
CSharpSyntaxGenerator (2)
Model\Comment.cs (1)
15public XmlElement[] Body;
SourceWriter.cs (1)
1812foreach (XmlElement element in comment.Body)
dotnet-svcutil-lib (1)
CodeDomFixup\System.ServiceModel.FederationCodeGen.cs (1)
76public System.Collections.Generic.ICollection<System.Xml.XmlElement> AdditionalRequestParameters => default;
ILLink.Tasks (5)
CreateRuntimeRootDescriptorFile.cs (5)
309 XmlElement linkerNode = doc["linker"]; 317 XmlElement featureAssemblyNode = doc.CreateElement ("assembly"); 351 XmlElement typeNode = doc.CreateElement ("type"); 372 XmlElement fieldNode = doc.CreateElement ("field"); 382 XmlElement methodNode = doc.CreateElement ("method");
IOperationGenerator (2)
IOperationClassWriter.cs (1)
242foreach (var el in comments.Elements)
Model.cs (1)
178public XmlElement[] Elements;
Microsoft.AspNetCore.AzureAppServices.SiteExtension.Tests (2)
TransformTest.cs (2)
25var envNode = doc["configuration"]?["system.webServer"]?["runtime"]?["environmentVariables"]; 55var envNode = doc["configuration"]?["system.webServer"]?["runtime"]?["environmentVariables"];
Microsoft.AspNetCore.DataProtection (4)
XmlEncryption\CertificateXmlEncryptor.cs (3)
90var elementToEncrypt = (XmlElement)xmlDocument.DocumentElement!.FirstChild!; 123EncryptedData IInternalCertificateXmlEncryptor.PerformEncryption(EncryptedXml encryptedXml, XmlElement elementToEncrypt)
XmlEncryption\IInternalCertificateXmlEncryptor.cs (1)
14EncryptedData PerformEncryption(EncryptedXml encryptedXml, XmlElement elementToEncrypt);
Microsoft.AspNetCore.DataProtection.Tests (2)
XmlEncryption\CertificateXmlEncryptionTests.cs (2)
24mockInternalEncryptor.Setup(o => o.PerformEncryption(It.IsAny<EncryptedXml>(), It.IsAny<XmlElement>())) 25.Returns<EncryptedXml, XmlElement>((encryptedXml, element) =>
Microsoft.Build (49)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
670foreach (XmlElement projectConfiguration in projectConfigurations)
Construction\ProjectChooseElement.cs (2)
32internal ProjectChooseElement(XmlElement xmlElement, ProjectElementContainer parent, ProjectRootElement containingProject) 41private ProjectChooseElement(XmlElement xmlElement, ProjectRootElement containingProject)
Construction\ProjectElement.cs (1)
61internal ProjectElement(XmlElement xmlElement, ProjectElementContainer parent, ProjectRootElement containingProject)
Construction\ProjectElementContainer.cs (1)
57internal ProjectElementContainer(XmlElement xmlElement, ProjectElementContainer parent, ProjectRootElement containingProject)
Construction\ProjectExtensionsElement.cs (4)
35internal ProjectExtensionsElement(XmlElement xmlElement, ProjectRootElement parent, ProjectRootElement project) 44private ProjectExtensionsElement(XmlElement xmlElement, ProjectRootElement project) 111XmlElement idElement = XmlElement[name]; 128XmlElement idElement = XmlElement[name];
Construction\ProjectItemDefinitionElement.cs (2)
31internal ProjectItemDefinitionElement(XmlElement xmlElement, ProjectItemDefinitionGroupElement parent, ProjectRootElement containingProject) 40private ProjectItemDefinitionElement(XmlElement xmlElement, ProjectRootElement containingProject)
Construction\ProjectItemDefinitionGroupElement.cs (2)
31internal ProjectItemDefinitionGroupElement(XmlElement xmlElement, ProjectElementContainer parent, ProjectRootElement containingProject) 40private ProjectItemDefinitionGroupElement(XmlElement xmlElement, ProjectRootElement containingProject)
Construction\ProjectOutputElement.cs (2)
31internal ProjectOutputElement(XmlElement xmlElement, ProjectTaskElement parent, ProjectRootElement containingProject) 40private ProjectOutputElement(XmlElement xmlElement, ProjectRootElement containingProject)
Construction\ProjectWhenElement.cs (2)
31internal ProjectWhenElement(XmlElement xmlElement, ProjectChooseElement parent, ProjectRootElement containingProject) 40private ProjectWhenElement(XmlElement xmlElement, ProjectRootElement containingProject)
Construction\Solution\ProjectInSolution.cs (3)
312XmlElement mainProjectElement = null; 320mainProjectElement = (XmlElement)childNode; 550private static bool ElementContainsInvalidNamespaceDefitions(XmlElement mainProjectElement)
ElementLocation\XmlDocumentWithLocation.cs (2)
178internal XmlElement CreateElement(string localName, string namespaceURI, ElementLocation location) 200public override XmlElement CreateElement(string prefix, string localName, string namespaceURI)
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);
Graph\ProjectInterpretation.cs (1)
138if (solutionConfiguration.TryGetProjectByGuid(projectGuid, out XmlElement projectElement)
SolutionConfiguration.cs (10)
23private readonly Dictionary<string, XmlElement> _cachedProjectElements = new Dictionary<string, XmlElement>(StringComparer.OrdinalIgnoreCase); 26private readonly Dictionary<string, XmlElement> _cachedProjectElementsByAbsolutePath = new Dictionary<string, XmlElement>(StringComparer.OrdinalIgnoreCase); 50foreach (XmlElement xmlElement in projectConfigurationElements) 79XmlElement dependencyElement = ((XmlElement)dependencyNode); 108public ICollection<XmlElement> ProjectConfigurations => _cachedProjectElements.Values; 127public bool TryGetProjectByGuid(string projectGuid, [NotNullWhen(true)] out XmlElement? projectElement) => _cachedProjectElements.TryGetValue(projectGuid, out projectElement); 129public bool TryGetProjectByAbsolutePath(string projectFullPath, [NotNullWhen(true)] out XmlElement? projectElement) => _cachedProjectElementsByAbsolutePath.TryGetValue(projectFullPath, out projectElement);
Microsoft.Build.BuildCheck.UnitTests (1)
EndToEndTests.cs (1)
920XmlElement addNode = doc.CreateElement("add");
Microsoft.Build.Tasks.Core (126)
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)
AssignProjectConfiguration.cs (2)
262XmlElement projectConfigurationElement = null; 332internal static void SetBuildInProjectAndReferenceOutputAssemblyMetadata(bool onlyReferenceAndBuildProjectsEnabledInSolutionConfiguration, ITaskItem resolvedProjectWithConfiguration, XmlElement projectConfigurationElement)
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");
GenerateApplicationManifest.cs (1)
463XmlNode node = (XmlElement)document.SelectSingleNode(XPaths.requestedExecutionLevelPath, nsmgr);
ManifestUtil\AssemblyIdentity.cs (2)
232var element = (XmlElement)document.SelectSingleNode(XPaths.assemblyIdentityPath, nsmgr);
ManifestUtil\Manifest.cs (1)
422((XmlElement)hashNode).InnerText = hash;
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 (43)
39private void AddSameSiteAttribute(XmlElement permissionSetElement) 64private void FixupPermissionSetElement(XmlElement permissionSetElement) 128XmlElement defaultAssemblyRequestElement = (XmlElement)permissionSetElement.ParentNode.SelectSingleNode(XPaths.defaultAssemblyRequestElement, nsmgr); 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); 593XmlElement permissionSetElement = outputDocument.DocumentElement; 711XmlElement assemblyElement = (XmlElement)document.SelectSingleNode(XPaths.assemblyElement, nsmgr); 717var trustInfoElement = (XmlElement)assemblyElement.SelectSingleNode(XPaths.trustInfoElement, nsmgr); 727XmlElement securityElement = (XmlElement)trustInfoElement.SelectSingleNode(XPaths.securityElement, nsmgr); 733XmlElement applicationRequestMinimumElement = (XmlElement)securityElement.SelectSingleNode(XPaths.applicationRequestMinimumElement, nsmgr); 746XmlElement fullTrustPermissionSetElement = document.CreateElement(XmlUtil.TrimPrefix(XPaths.permissionSetElement), XmlNamespaces.asmv2);
ManifestUtil\Util.cs (1)
577public static void WriteLogFile(string filename, System.Xml.XmlElement element)
ManifestUtil\XmlUtil.cs (5)
38public static XmlElement CloneElementToDocument(XmlElement element, XmlDocument document, string namespaceURI) 40XmlElement newElement = document.CreateElement(element.Name, namespaceURI); 51XmlElement childElement = CloneElementToDocument((XmlElement)node, document, namespaceURI);
ResolveProjectBase.cs (3)
115XmlElement projectElement = GetProjectElement(projectRef); 123protected XmlElement GetProjectElement(ITaskItem projectRef) 127if (_solutionConfiguration.TryGetProjectByGuid(projectGuid, out XmlElement projectElement))
SolutionConfiguration.cs (10)
23private readonly Dictionary<string, XmlElement> _cachedProjectElements = new Dictionary<string, XmlElement>(StringComparer.OrdinalIgnoreCase); 26private readonly Dictionary<string, XmlElement> _cachedProjectElementsByAbsolutePath = new Dictionary<string, XmlElement>(StringComparer.OrdinalIgnoreCase); 50foreach (XmlElement xmlElement in projectConfigurationElements) 79XmlElement dependencyElement = ((XmlElement)dependencyNode); 108public ICollection<XmlElement> ProjectConfigurations => _cachedProjectElements.Values; 127public bool TryGetProjectByGuid(string projectGuid, [NotNullWhen(true)] out XmlElement? projectElement) => _cachedProjectElements.TryGetValue(projectGuid, out projectElement); 129public bool TryGetProjectByAbsolutePath(string projectFullPath, [NotNullWhen(true)] out XmlElement? projectElement) => _cachedProjectElementsByAbsolutePath.TryGetValue(projectFullPath, out projectElement);
Microsoft.Build.Tasks.UnitTests (6)
XmlPoke_Tests.cs (6)
108List<XmlElement> nodes = xmlDocument.SelectNodes(query)?.Cast<XmlElement>().ToList(); 114var testNodes = nodes?.First().ChildNodes.Cast<XmlElement>().ToList(); 302List<XmlElement> nodes = xmlDocument.SelectNodes(query)?.Cast<XmlElement>().ToList(); 308foreach (var node in nodes)
Microsoft.Build.Utilities.Core (9)
ApiContract.cs (2)
46internal static void ReadContractsElement(XmlElement element, ICollection<ApiContract> apiContracts) 55if (contractNode is XmlElement contractElement && string.Equals(contractNode.Name, Elements.ApiContract, StringComparison.Ordinal))
PlatformManifest.cs (3)
107XmlElement rootElement = null; 114rootElement = (XmlElement)childNode; 130if (!(childNode is XmlElement childElement))
SDKManifest.cs (4)
326XmlElement rootElement = null; 333rootElement = (XmlElement)childNode; 343XmlElement childElement = childNode as XmlElement;
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
PDB\CSharpPDBTestBase.cs (1)
56foreach (XmlElement item in entry.ChildNodes)
Microsoft.DotNet.SignCheckLibrary (2)
Verification\VsixVerifier.cs (1)
53XmlElement element = packageSignature.Signature.GetXml();
Verification\XmlVerifier.cs (1)
56signedXml.LoadXml((XmlElement)signatureNodes[0]);
Microsoft.Maui.Resizetizer (5)
TizenResourceXmlGenerator.cs (5)
40 XmlElement groupImageNode = doc.CreateElement("group-image", NamespaceURI); 44 XmlElement groupLayoutNode = doc.CreateElement("group-layout", NamespaceURI); 48 XmlElement groupSoundNode = doc.CreateElement("group-sound", NamespaceURI); 52 XmlElement groupBinNode = doc.CreateElement("group-bin", NamespaceURI); 75 XmlElement node = doc.CreateElement("node", NamespaceURI);
Microsoft.Web.Xdt.Extensions.Tests (4)
InsertOrAppendAttributeTests.cs (4)
22var configurationNode = doc["configuration"]; 46var configurationNode = doc["configuration"]; 70var configurationNode = doc["configuration"]; 94var configurationNode = doc["configuration"];
netstandard (1)
netstandard.cs (1)
2473[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XmlElement))]
PresentationBuildTasks (10)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (9)
634XmlElement nodeGroup = root.ChildNodes[i] as XmlElement; 647XmlElement nodeItem = nodeGroup.ChildNodes[j] as XmlElement; 666XmlElement item = node as XmlElement; 724XmlElement embedItem = null; 729XmlElement nodeItem = xmlProjectDoc.CreateElement(sItemName, root.NamespaceURI); 784XmlElement nodeItem = xmlProjectDoc.CreateElement(property.PropertyName, root.NamespaceURI);
Microsoft\Build\Tasks\Windows\UpdateManifestForBrowserApplication.cs (1)
111XmlElement hostInBrowser;
PresentationFramework (41)
MS\Internal\Annotations\Component\HighlightComponent.cs (1)
481foreach (XmlElement content in contents)
MS\Internal\Annotations\XmlElementCollection.cs (10)
25internal sealed class XmlElementCollection : ObservableCollection<XmlElement> 65foreach (XmlElement item in this) 79XmlElement removedItem = this[index]; 90protected override void InsertItem(int index, XmlElement item) 106protected override void SetItem(int index, XmlElement item) 113XmlElement originalItem = this[index]; 140private void UnregisterForElement(XmlElement element) 170private void RegisterForElement(XmlElement element) 203XmlElement element = null; 216element = current as XmlElement;
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (10)
459SNCAnnotation annotation, XmlToken token, out AnnotationResource cargo, out XmlElement root, out bool newCargo, out bool newRoot) 502private void UpdateAttribute(XmlElement root, XmlToken token, string value) 622private static XmlElement FindRootXmlElement(XmlToken token, AnnotationResource cargo) 626XmlElement element = null; 653foreach (XmlElement node in cargo.Contents) 674XmlElement root = SNCAnnotation.FindRootXmlElement(token, cargo); 726XmlElement root = null; 769XmlElement node = (XmlElement)FindData(token); 791XmlElement root;
MS\Internal\Globalization\BamlTreeMap.cs (4)
592XmlElement element = FindElementByID(_commentsDocument, node.Uid); 644private static XmlElement FindElementByID(XmlDocument doc, string uid) 654XmlElement element = (XmlElement)node;
MS\Internal\Globalization\BamlTreeUpdater.cs (4)
435XmlElement root = doc.FirstChild as XmlElement; 490XmlElement child = node as XmlElement;
MS\Internal\IO\Packaging\XmlGlyphRunInfo.cs (4)
36_glyphsNode = glyphsNode as XmlElement; 165for (XmlElement currentNode = _glyphsNode; 167currentNode = (currentNode.ParentNode as XmlElement)) 249private XmlElement _glyphsNode = null;
System\Windows\Annotations\AnnotationHelper.cs (1)
1028XmlElement colorsElement = doc.CreateElement(HighlightComponent.ColorsContentName, AnnotationXmlConstants.Namespaces.BaseSchemaNamespace);
System\Windows\Annotations\AnnotationResource.cs (4)
146foreach (XmlElement content in _contents) 187XmlElement element = doc.ReadNode(reader) as XmlElement; 305public Collection<XmlElement> Contents
System\Windows\Documents\FixedTextBuilder.cs (3)
1572XmlElement newDumpNode = _dumpDoc.CreateElement(element.Type.Name); 1630_currentDumpNode = (XmlElement) _currentDumpNode.ParentNode; 1799private XmlElement _currentDumpNode;
ReachFramework (57)
PrintConfig\PrintSchemaShim.cs (2)
128XmlElement parameterInitElem = ticket.XmlDoc.CreateElement(PrintSchemaPrefixes.Framework, PrintSchemaTags.Framework.ParameterInit, PrintSchemaNamespaces.Framework); 136XmlElement valueElem = ticket.XmlDoc.CreateElement(PrintSchemaPrefixes.Framework, PrintSchemaTags.Framework.Value, PrintSchemaNamespaces.Framework);
PrintConfig\PrtTicket_Base.cs (36)
61XmlElement parentElement = null; 260XmlElement parentElement = null; 383private PTFeatureNode(PrintTicketFeature ownerFeature, XmlElement featureElement) 399XmlElement parentElement) 405XmlElement featureElement = PrintTicketEditor.GetSchemaElementWithNameAttr(pt, 422XmlElement parentElement) 445XmlElement optionNode = GetFirstOption(); 484XmlElement optionNode = GetFirstOption(); 513XmlElement optionNode = GetFirstOption(); 555XmlElement option = GetFirstOption(); 574XmlElement property = PrintTicketEditor.AddSchemaElementWithNameAttr(pt, 579XmlElement valueNode = PrintTicketEditor.AddSchemaElementWithNameAttr(pt, 602XmlElement optionNode = GetFirstOption(); 634XmlElement option = GetFirstOption(); 653XmlElement property = PrintTicketEditor.AddSchemaElementWithNameAttr(pt, 658XmlElement valueNode = PrintTicketEditor.AddSchemaElementWithNameAttr(pt, 681XmlElement optionNode = GetFirstOption(); 687XmlElement propertyNode = PrintTicketEditor.GetSchemaElementWithNameAttr(pt, 696XmlElement refNode = PrintTicketEditor.GetSchemaElementWithNameAttr(pt, 732XmlElement option = GetFirstOption(); 751XmlElement property = PrintTicketEditor.AddSchemaElementWithNameAttr(pt, 765public XmlElement GetFirstOption() 787public XmlElement FeatureElement 802private string GetOptionPropertyValueText(XmlElement parentOption, string propertyName) 807XmlElement propertyNode = PrintTicketEditor.GetSchemaElementWithNameAttr(pt, 816XmlElement valueNode = PrintTicketEditor.GetSchemaElementWithNameAttr(pt, 844private XmlElement _featureElement; 1192private PrintTicketParameterNode(PrintTicketParameter ownerParameter, XmlElement parameterElement) 1213XmlElement parameterElement = PrintTicketEditor.GetSchemaElementWithNameAttr(pt, 1288XmlElement valueNode = PrintTicketEditor.GetSchemaElementWithNameAttr(pt, 1313public XmlElement SetIntValue(int value) 1315XmlElement valueNode = SetStringValue(value.ToString(CultureInfo.InvariantCulture), 1324public XmlElement SetStringValue(string value, string xsiType) 1335XmlElement valueNode = PrintTicketEditor.AddSchemaElementWithNameAttr(pt, 1360public XmlElement ParameterElement 1373private XmlElement _parameterElement;
PrintConfig\PrtTicket_Editor.cs (19)
39XmlElement root = pt.XmlDoc.DocumentElement; 111string childName = ((XmlElement)rootChild).GetAttribute(PrintSchemaTags.Framework.NameAttr, 146XmlElement root = pt.XmlDoc.DocumentElement; 201public static string AddStdNamespaceDeclaration(XmlElement root, string prefix_header, string nsURI) 233public static XmlElement GetSchemaElementWithNameAttr(InternalPrintTicket pt, 234XmlElement parent, 238XmlElement elementMatched = null; 266string childName = ((XmlElement)child).GetAttribute( 281elementMatched = (XmlElement)child; 297XmlElement parent, 301XmlElement childMatched; 325childMatched = (XmlElement)child; 330string childName = ((XmlElement)child).GetAttribute( 339childMatched = (XmlElement)child; 352public static XmlElement AddSchemaElementWithNameAttr(InternalPrintTicket pt, 353XmlElement parent, 359XmlElement newNode = pt.XmlDoc.CreateElement(prefix, schemaTag, PrintSchemaNamespaces.Framework); 368return (XmlElement)parent.AppendChild(newNode); 372XmlElement valueElement,
System.Configuration.ConfigurationManager (5)
System\Configuration\ConfigXmlDocument.cs (1)
98public override XmlElement CreateElement(string prefix, string localName, string namespaceUri)
System\Configuration\ErrorInfoXmlDocument.cs (1)
91public override XmlElement CreateElement(string prefix, string localName, string namespaceUri)
System\Configuration\LocalFileSettingsProvider.cs (3)
436private XmlElement SerializeToXmlElement(SettingsProperty setting, SettingsPropertyValue value) 439XmlElement valueXml = doc.CreateElement(nameof(value)); 513private readonly XmlElement tempElement;
System.Data.Common (161)
System\Data\DataSet.cs (6)
1719XmlElement topNode = xdoc.CreateElement(reader.Prefix, reader.LocalName, reader.NamespaceURI); 1863schema.LoadSchema((XmlElement)schNode, this); 2151XmlElement topNode = xdoc.CreateElement(reader.Prefix, reader.LocalName, reader.NamespaceURI); 2277XmlElement root = xdoc.DocumentElement!; 2496XmlElement node = xdoc.CreateElement(reader.Prefix, reader.LocalName, reader.NamespaceURI); 2635XmlElement? topNode = null;
System\Data\DataTable.cs (3)
5847XmlElement topNode = xdoc.CreateElement(reader.Prefix, reader.LocalName, reader.NamespaceURI); 6035XmlElement? topNode = null; 6347XmlElement node = xdoc.CreateElement(reader.Prefix, reader.LocalName, reader.NamespaceURI);
System\Data\SimpleType.cs (3)
230XmlElement typeNode = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SIMPLETYPE, Keywords.XSDNS); 241XmlElement type = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_RESTRICTION, Keywords.XSDNS); 274XmlElement constraint;
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\XmlDataLoader.cs (13)
25private XmlElement? _topMostNode; 41internal XmlDataLoader(DataSet dataset, bool IsXdr, XmlElement topNode, bool ignoreSchema) 66internal XmlDataLoader(DataTable datatable, bool IsXdr, XmlElement topNode, bool ignoreSchema) 105XmlElement e = (XmlElement)n; 213internal DataRow? GetRowFromElement(XmlElement e) 218internal bool FColumnElement(XmlElement e) 227if (tabNode is XmlElement) 338XmlElement e = xdoc.DocumentElement; 368private void LoadRowData(DataRow row, XmlElement rowElement) 400XmlElement e = (XmlElement)n; 512if (n is XmlElement e)
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\Data\XMLSchema.cs (3)
80internal static bool GetBooleanAttribute(XmlElement element, string attrName, string attrNS, bool defVal) 424internal void HandleRelation(XmlElement node, bool fNested) 869HandleRelation((XmlElement)relations[i], fNested);
System\Xml\DataPointer.cs (1)
611return ((XmlElement)_node).IsEmpty;
System\Xml\DataSetMappper.cs (5)
184internal static DataTable? GetTableSchemaForElement(XmlElement elem) 205internal static DataRow? GetRowFromElement(XmlElement? e) => (e as XmlBoundElement)?.Row; 295XmlElement? e = n as XmlElement; 340DataRow? row = GetRowFromElement((XmlElement?)n);
System\Xml\RegionIterator.cs (1)
126if (CurrentNode.NodeType == XmlNodeType.Element && DataSetMapper.GetTableSchemaForElement((XmlElement)(CurrentNode)) != null)
System\Xml\XmlBoundElement.cs (2)
220XmlElement element; 224element = (XmlElement)(base.CloneNode(deep));
System\Xml\XmlDataDocument.cs (28)
333public override XmlElement CreateElement(string? prefix, string localName, string? namespaceURI) 456private XmlElement EnsureDocumentElement() 458XmlElement? docelem = DocumentElement; 474private XmlElement EnsureNonRowDocumentElement() 476XmlElement? docElem = DocumentElement; 487private XmlElement DemoteDocumentElement() 495XmlElement oldDocElem = DocumentElement!; 497XmlElement docElem = EnsureDocumentElement(); 543private void FixNestedChildren(DataRow row, XmlElement rowElement) 549XmlElement? childElem = r.Element; 614private void Foliate(XmlElement element) 621private void FoliateIfDataPointers(XmlElement rowElement) 766XmlElement? e = node as XmlElement; 841public DataRow? GetRowFromElement(XmlElement? e) 846private XmlElement? GetRowInsertBeforeLocation(DataRow row, XmlNode parentElement) 877public XmlElement GetElementFromRow(DataRow r) 923private bool IsFoliated(XmlElement element) 1517XmlElement e = (XmlElement)iter.CurrentNode; 1735parentRowInTree = GetRowFromElement((XmlElement)childElement.ParentNode); 1742XmlElement newParent = GetElementFromRow(parentRowInRelation); 2070XmlElement rowElement = GetElementFromRow(row); 2228private void OnUndeleteRow(DataRow row, XmlElement rowElement) 2231XmlElement parent; 2486XmlElement? e = iter.CurrentNode as XmlElement; 3023public override XmlElement? GetElementById(string elemId)
System\Xml\XPathNodePointer.cs (2)
136return ((XmlElement)_node).IsEmpty; 357XmlElement? rootElem = ((XmlDocument)_node).DocumentElement;
System.Private.DataContractSerialization (45)
System\Runtime\Serialization\DataContract.cs (3)
649"Xml.XmlElement" => typeof(XmlElement), 739else if (type == typeof(XmlElement) || type == typeof(XmlNode[])) 863dataContract = new XmlDataContract(typeof(XmlElement));
System\Runtime\Serialization\ExtensionDataReader.cs (1)
612XmlElement wrapperElement = XmlObjectSerializerReadContext.CreateWrapperXmlElement(dataNode.OwnerDocument,
System\Runtime\Serialization\Globals.cs (1)
310s_typeOfXmlElement ??= typeof(XmlElement);
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\SchemaImporter.cs (12)
1023XmlElement? defaultValueElement = ImportAnnotation(annotation, SchemaExporter.DefaultValueAnnotation); 1034XmlElement? actualTypeElement = ImportAnnotation(annotation, SchemaExporter.ActualTypeAnnotationName); 1250XmlElement? typeElement = xmlNode as XmlElement; 1272XmlElement? typeElement = xmlNode as XmlElement; 1283private static GenericInfo ImportGenericInfo(XmlElement typeElement, XmlSchemaType type) 1298if (childNode is XmlElement argumentElement) 1332private object? ImportSurrogateData(XmlElement? typeElement, string name, string ns) 1410private static string? GetInnerText(XmlQualifiedName typeName, XmlElement? xmlElement) 1426private static XmlElement? ImportAnnotation(XmlSchemaAnnotation? annotation, XmlQualifiedName annotationQualifiedName) 1436if (markup[i] is XmlElement annotationElement && annotationElement.LocalName == annotationQualifiedName.Name && annotationElement.NamespaceURI == 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\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (2)
489XmlElement? xmlElement = obj as XmlElement;
System.Private.Xml (162)
System\Xml\Dom\DocumentSchemaValidator.cs (14)
130partialValidationType = FindSchemaInfo((nodeToValidate as XmlElement)!); 180XmlElement elem = (XmlElement)node; 267XmlElement? docElem = ((XmlDocument)node).DocumentElement; 323XmlElement? elementNode = _currentNode as XmlElement; 385private void ValidateAttributes(XmlElement elementNode) 482private XmlSchemaObject? FindSchemaInfo(XmlElement elementToValidate) 551XmlElement parentElement = attributeToValidate.OwnerElement!; 575private XmlSchemaObject? GetTypeFromAncestors(XmlElement elementToValidate, XmlSchemaObject? ancestorType, int ancestorsCount) 588XmlElement currentElement = (node as XmlElement)!; 670private void ValidateSingleElement(XmlElement elementNode, bool skipToEnd, XmlSchemaInfo? newSchemaInfo) 735ValidateSingleElement((child as XmlElement)!, true, null);
System\Xml\Dom\DocumentXmlWriter.cs (6)
184XmlElement? elem = _write as XmlElement; 432XmlElement? elem = _start as XmlElement; 514XmlElement? elem = parent as XmlElement;
System\Xml\Dom\DocumentXPathNavigator.cs (32)
20private XmlElement? _namespaceParent; // parent for namespace 189XmlElement? element = _document.DocumentElement; 237if (_source is XmlElement element) 267if (_source is XmlElement element 291if (_source is XmlElement element 319if (_source is XmlElement element 379XmlElement? element = node as XmlElement; 401element = element.ParentNode as XmlElement; 423XmlElement? element = _source as XmlElement; 443_namespaceParent = (XmlElement)_source; 447element = element.ParentNode as XmlElement; 453_namespaceParent = (XmlElement)_source; 463if (!(_source is XmlElement element)) 548XmlElement? element = attributes.parent.ParentNode as XmlElement; 559element = element.ParentNode as XmlElement; 662XmlElement? element = attributes.parent.ParentNode as XmlElement; 673element = element.ParentNode as XmlElement; 678private bool PathHasDuplicateNamespace(XmlElement? top, XmlElement bottom, string localName) 680XmlElement? current = bottom; 690current = current.ParentNode as XmlElement; 894XmlElement? element = _document.GetElementById(id); 1316XmlElement? element = ((XmlAttribute)node1).OwnerElement; 1802List<XmlElement> elements = new List<XmlElement>(); 1806if (node is XmlElement element 1838XmlElement? element = attribute.OwnerElement; 1869XmlElement? element = attribute.OwnerElement;
System\Xml\Dom\XmlAttribute.cs (4)
146XmlElement? ownerElement = OwnerElement; 158XmlElement? ownerElement = OwnerElement; 326public virtual XmlElement? OwnerElement 330return parentNode as XmlElement;
System\Xml\Dom\XmlAttributeCollection.cs (9)
322XmlAttribute? defattr = parent.OwnerDocument!.GetDefaultAttribute((XmlElement)parent, retNode.Prefix, retNode.LocalName, retNode.NamespaceURI); 337XmlElement? parentElem = parent as XmlElement; 354XmlElement? parentElem = parent as XmlElement; 385XmlElement? parentElem = parent as XmlElement; 402XmlElement? parentElem = parent as XmlElement;
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\XmlElement.cs (6)
58XmlElement element = doc.CreateElement(Prefix, LocalName, NamespaceURI); 430if (GetType() == typeof(XmlElement)) 453private static void WriteElementTo(XmlWriter writer, XmlElement el) 455XmlElement? e = el; 460e = n as XmlElement; 462if (e != null && e.GetType() == typeof(XmlElement))
System\Xml\Dom\XmlLoader.cs (10)
101XmlElement? element; 152element = parent as XmlElement; 467XmlElement element = new XmlElement(_reader.Prefix, _reader.LocalName, _reader.NamespaceURI, _doc!); 695XmlElement? element = node as XmlElement; 787internal void LoadInnerXmlElement(XmlElement node, string innerxmltext) 793RemoveDuplicateNamespace((XmlElement)node, mgr, false); 802private void RemoveDuplicateNamespace(XmlElement elem, XmlNamespaceManager mgr, bool fCheckElemAttrs) 853XmlElement? childElem = child as XmlElement;
System\Xml\Dom\XmlNode.cs (12)
1093XmlElement elem = (XmlElement)node; 1178XmlElement elem = (XmlElement)node; 1238public virtual XmlElement? this[string name] 1245return (XmlElement)n; 1254public virtual XmlElement? this[string localname, string ns] 1261return (XmlElement)n; 1347XmlElement? elem; 1350elem = node as XmlElement; 1377XmlElement? elem; 1380elem = node as XmlElement;
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\Xml\Schema\Parser.cs (2)
331private XmlElement LoadElementNode(bool root) 338XmlElement element = _dummyDocument.CreateElement(r.Prefix, r.LocalName, r.NamespaceURI);
System\Xml\Serialization\_Events.cs (3)
72private readonly XmlElement _elem; 77internal XmlElementEventArgs(XmlElement elem, int lineNumber, int linePosition, object? o, string? qnames) 91public XmlElement Element
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (1)
238if (o is XmlElement elem)
System\Xml\Serialization\Types.cs (1)
860else if (typeof(XmlElement).IsAssignableFrom(type))
System\Xml\Serialization\XmlReflectionImporter.cs (3)
1684Type targetType = typeof(IXmlSerializable).IsAssignableFrom(arrayElementType) ? arrayElementType : typeof(XmlNode).IsAssignableFrom(arrayElementType) ? arrayElementType : typeof(XmlElement); 1925Type targetType = typeof(IXmlSerializable).IsAssignableFrom(accessorType) ? accessorType : typeof(XmlNode).IsAssignableFrom(accessorType) ? accessorType : typeof(XmlElement); 2097if (choiceTypes.Contains(typeof(XmlElement)) && a.XmlAnyElements.Count > 0)
System\Xml\Serialization\XmlSchemaExporter.cs (1)
1191XmlElement e = d.CreateElement("keepNamespaceDeclarations");
System\Xml\Serialization\XmlSchemaImporter.cs (4)
1205mapping.TypeDesc = Scope.GetTypeDesc(makeElement ? typeof(XmlElement) : typeof(XmlNode)); 1384mapping.TypeDesc = Scope.GetTypeDesc(typeof(XmlElement)); 1393mapping.TypeDesc = Scope.GetTypeDesc(mixed ? typeof(XmlNode) : typeof(XmlElement)); 1525if (node is XmlElement e)
System\Xml\Serialization\XmlSerializationReader.cs (5)
1181protected void UnknownElement(object? o, XmlElement elem) 1186protected void UnknownElement(object? o, XmlElement elem, string? qnames) 1247UnknownElement(o, (XmlElement)unknownNode, qnames); 1891XmlElement? unknownElement = unknownNode as XmlElement;
System\Xml\Serialization\XmlSerializationWriter.cs (2)
795if (node is XmlElement && name != null && name.Length > 0) 3738string fullTypeName = typeof(XmlElement).FullName!;
System\Xml\Serialization\XmlSerializationWriterILGen.cs (3)
1665ilg.IsInst(typeof(XmlElement)); 1670LocalBuilder elemLoc = ilg.DeclareLocal(typeof(XmlElement), "elem"); 1671source.Load(typeof(XmlElement));
System.Runtime.Serialization.Schema (5)
System\Runtime\Serialization\Schema\ImportGlobals.cs (1)
97internal static Type TypeOfXmlElement => s_typeOfXmlElement ??= typeof(XmlElement);
System\Runtime\Serialization\Schema\XsdDataContractImporter.cs (4)
366XmlElement? actualTypeElement = ImportAnnotation(annotation, ActualTypeAnnotationName); 379private static XmlElement? ImportAnnotation(XmlSchemaAnnotation? annotation, XmlQualifiedName annotationQualifiedName) 389XmlElement? annotationElement = markup[i] as XmlElement;
System.Security.Cryptography.Xml (278)
System\Security\Cryptography\Xml\AncestralNamespaceContextManager.cs (1)
65internal abstract void GetNamespacesToRender(XmlElement element, SortedList attrListToRender, SortedList nsListToRender, Hashtable nsLocallyDeclared);
System\Security\Cryptography\Xml\C14NAncestralNamespaceContextManager.cs (1)
56internal override void GetNamespacesToRender(XmlElement element, SortedList attrListToRender, SortedList nsListToRender, Hashtable nsLocallyDeclared)
System\Security\Cryptography\Xml\CanonicalXmlDocument.cs (1)
64public override XmlElement CreateElement(string? prefix, string localName, string? namespaceURI)
System\Security\Cryptography\Xml\CipherData.cs (8)
11private XmlElement? _cachedXml; 68public XmlElement GetXml() 77internal XmlElement GetXml(XmlDocument document) 80XmlElement cipherDataElement = (XmlElement)document.CreateElement("CipherData", EncryptedXml.XmlEncNamespaceUrl); 83XmlElement cipherValueElement = document.CreateElement("CipherValue", EncryptedXml.XmlEncNamespaceUrl); 99public void LoadXml(XmlElement value) 120_cipherReference.LoadXml((XmlElement)cipherReferenceNode);
System\Security\Cryptography\Xml\CipherReference.cs (5)
43public override XmlElement GetXml() 52internal new XmlElement GetXml(XmlDocument document) 58XmlElement referenceElement = document.CreateElement(ReferenceType, EncryptedXml.XmlEncNamespaceUrl); 71public override void LoadXml(XmlElement value) 87TransformChain.LoadXml((transformsNode as XmlElement)!);
System\Security\Cryptography\Xml\DataObject.cs (6)
15private XmlElement? _cachedXml; 27public DataObject(string id, string mimeType, string encoding, XmlElement data) 107public XmlElement GetXml() 116internal XmlElement GetXml(XmlDocument document) 118XmlElement objectElement = document.CreateElement("Object", SignedXml.XmlDsigNamespaceUrl); 138public void LoadXml(XmlElement value)
System\Security\Cryptography\Xml\DSAKeyValue.cs (14)
65/// An <see cref="XmlElement"/> containing the XML representation. 67public override XmlElement GetXml() 92internal override XmlElement GetXml(XmlDocument xmlDocument) 96XmlElement keyValueElement = xmlDocument.CreateElement(KeyValueElementName, SignedXml.XmlDsigNamespaceUrl); 97XmlElement dsaKeyValueElement = xmlDocument.CreateElement(DSAKeyValueElementName, SignedXml.XmlDsigNamespaceUrl); 99XmlElement pElement = xmlDocument.CreateElement(PElementName, SignedXml.XmlDsigNamespaceUrl); 103XmlElement qElement = xmlDocument.CreateElement(QElementName, SignedXml.XmlDsigNamespaceUrl); 107XmlElement gElement = xmlDocument.CreateElement(GElementName, SignedXml.XmlDsigNamespaceUrl); 111XmlElement yElement = xmlDocument.CreateElement(YElementName, SignedXml.XmlDsigNamespaceUrl); 118XmlElement jElement = xmlDocument.CreateElement(JElementName, SignedXml.XmlDsigNamespaceUrl); 125XmlElement seedElement = xmlDocument.CreateElement(SeedElementName, SignedXml.XmlDsigNamespaceUrl); 129XmlElement counterElement = xmlDocument.CreateElement(PgenCounterElementName, SignedXml.XmlDsigNamespaceUrl); 146/// An <see cref="XmlElement"/> containing the XML representation. This cannot be null. 154public override void LoadXml(XmlElement value)
System\Security\Cryptography\Xml\EncryptedData.cs (10)
13public override void LoadXml(XmlElement value) 34EncryptionMethod.LoadXml((encryptionMethodNode as XmlElement)!); 40KeyInfo.LoadXml((keyInfoNode as XmlElement)!); 48CipherData.LoadXml((cipherDataNode as XmlElement)!); 61ep.LoadXml((node as XmlElement)!); 71public override XmlElement GetXml() 80internal XmlElement GetXml(XmlDocument document) 83XmlElement encryptedDataElement = (XmlElement)document.CreateElement("EncryptedData", EncryptedXml.XmlEncNamespaceUrl); 111XmlElement encryptionPropertiesElement = document.CreateElement("EncryptionProperties", EncryptedXml.XmlEncNamespaceUrl);
System\Security\Cryptography\Xml\EncryptedKey.cs (15)
52public override void LoadXml(XmlElement value) 74EncryptionMethod.LoadXml((encryptionMethodNode as XmlElement)!); 80KeyInfo.LoadXml((keyInfoNode as XmlElement)!); 88CipherData.LoadXml((cipherDataNode as XmlElement)!); 101ep.LoadXml((node as XmlElement)!); 125dr.LoadXml((node as XmlElement)!); 136kr.LoadXml((node as XmlElement)!); 146public override XmlElement GetXml() 155internal XmlElement GetXml(XmlDocument document) 158XmlElement encryptedKeyElement = (XmlElement)document.CreateElement("EncryptedKey", EncryptedXml.XmlEncNamespaceUrl); 188XmlElement encryptionPropertiesElement = document.CreateElement("EncryptionProperties", EncryptedXml.XmlEncNamespaceUrl); 200XmlElement referenceListElement = document.CreateElement("ReferenceList", EncryptedXml.XmlEncNamespaceUrl); 211XmlElement carriedKeyNameElement = (XmlElement)document.CreateElement("CarriedKeyName", EncryptedXml.XmlEncNamespaceUrl);
System\Security\Cryptography\Xml\EncryptedReference.cs (6)
14internal XmlElement? _cachedXml; 79public virtual XmlElement GetXml() 88internal XmlElement GetXml(XmlDocument document) 94XmlElement referenceElement = document.CreateElement(ReferenceType, EncryptedXml.XmlEncNamespaceUrl); 107public virtual void LoadXml(XmlElement value) 126TransformChain.LoadXml((transformsNode as XmlElement)!);
System\Security\Cryptography\Xml\EncryptedType.cs (3)
19internal XmlElement? _cachedXml; 109public abstract void LoadXml(XmlElement value); 110public abstract XmlElement GetXml();
System\Security\Cryptography\Xml\EncryptedXml.cs (12)
221XmlElement? idElem = GetIdElement(_document, idref); 264public virtual XmlElement? GetIdElement(XmlDocument document, string idValue) 342XmlElement encryptedKeyElement = (encryptedKeyNode as XmlElement)!; 546public EncryptedData Encrypt(XmlElement inputElement, X509Certificate2 certificate) 592public EncryptedData Encrypt(XmlElement inputElement, string keyName) 686XmlElement encryptedDataElement = (encryptedDataNode as XmlElement)!; 746public byte[] EncryptData(XmlElement inputElement, SymmetricAlgorithm symmetricAlgorithm, bool content) 813public void ReplaceData(XmlElement inputElement, byte[] decryptedData) 887public static void ReplaceElement(XmlElement inputElement, EncryptedData encryptedData, bool content) 899XmlElement elemED = encryptedData.GetXml(inputElement.OwnerDocument);
System\Security\Cryptography\Xml\EncryptionMethod.cs (8)
11private XmlElement? _cachedXml; 57public XmlElement GetXml() 66internal XmlElement GetXml(XmlDocument document) 69XmlElement encryptionMethodElement = (XmlElement)document.CreateElement("EncryptionMethod", EncryptedXml.XmlEncNamespaceUrl); 75XmlElement keySizeElement = document.CreateElement("KeySize", EncryptedXml.XmlEncNamespaceUrl); 82public void LoadXml(XmlElement value) 92XmlElement encryptionMethodElement = value;
System\Security\Cryptography\Xml\EncryptionProperty.cs (8)
13private XmlElement? _elemProp; 14private XmlElement? _cachedXml; 19public EncryptionProperty(XmlElement elementProperty) 44public XmlElement? PropertyElement 68public XmlElement GetXml() 77internal XmlElement GetXml(XmlDocument document) 79return (document.ImportNode(_elemProp!, true) as XmlElement)!; 82public void LoadXml(XmlElement value)
System\Security\Cryptography\Xml\ExcAncestralNamespaceContextManager.cs (1)
58internal override void GetNamespacesToRender(XmlElement element, SortedList attrListToRender, SortedList nsListToRender, Hashtable nsLocallyDeclared)
System\Security\Cryptography\Xml\KeyInfo.cs (10)
34public XmlElement GetXml() 41internal XmlElement GetXml(XmlDocument xmlDocument) 44XmlElement keyInfoElement = xmlDocument.CreateElement("KeyInfo", SignedXml.XmlDsigNamespaceUrl); 53XmlElement xmlElement = ((KeyInfoClause)_keyInfoClauses[i]!).GetXml(xmlDocument); 63public void LoadXml(XmlElement value) 70XmlElement keyInfoElement = value; 78XmlElement? elem = child as XmlElement; 93XmlElement? elem2 = node2 as XmlElement;
System\Security\Cryptography\Xml\KeyInfoClause.cs (5)
20public abstract XmlElement GetXml(); 21internal virtual XmlElement GetXml(XmlDocument xmlDocument) 23XmlElement keyInfo = GetXml(); 24return (XmlElement)xmlDocument.ImportNode(keyInfo, true); 27public abstract void LoadXml(XmlElement element);
System\Security\Cryptography\Xml\KeyInfoEncryptedKey.cs (3)
28public override XmlElement GetXml() 35internal override XmlElement GetXml(XmlDocument xmlDocument) 42public override void LoadXml(XmlElement value)
System\Security\Cryptography\Xml\KeyInfoName.cs (5)
37public override XmlElement GetXml() 44internal override XmlElement GetXml(XmlDocument xmlDocument) 46XmlElement nameElement = xmlDocument.CreateElement("KeyName", SignedXml.XmlDsigNamespaceUrl); 51public override void LoadXml(XmlElement value) 58XmlElement nameElement = value;
System\Security\Cryptography\Xml\KeyInfoNode.cs (7)
11private XmlElement? _node; 19public KeyInfoNode(XmlElement node) 28public XmlElement? Value 38public override XmlElement GetXml() 45internal override XmlElement GetXml(XmlDocument xmlDocument) 47return (xmlDocument.ImportNode(_node!, true) as XmlElement)!; 50public override void LoadXml(XmlElement value)
System\Security\Cryptography\Xml\KeyInfoRetrievalMethod.cs (4)
46public override XmlElement GetXml() 53internal override XmlElement GetXml(XmlDocument xmlDocument) 56XmlElement retrievalMethodElement = xmlDocument.CreateElement("RetrievalMethod", SignedXml.XmlDsigNamespaceUrl); 66public override void LoadXml(XmlElement value)
System\Security\Cryptography\Xml\KeyInfoX509Data.cs (11)
214public override XmlElement GetXml() 221internal override XmlElement GetXml(XmlDocument xmlDocument) 223XmlElement x509DataElement = xmlDocument.CreateElement("X509Data", SignedXml.XmlDsigNamespaceUrl); 229XmlElement issuerSerialElement = xmlDocument.CreateElement("X509IssuerSerial", SignedXml.XmlDsigNamespaceUrl); 230XmlElement issuerNameElement = xmlDocument.CreateElement("X509IssuerName", SignedXml.XmlDsigNamespaceUrl); 233XmlElement serialNumberElement = xmlDocument.CreateElement("X509SerialNumber", SignedXml.XmlDsigNamespaceUrl); 244XmlElement subjectKeyIdElement = xmlDocument.CreateElement("X509SKI", SignedXml.XmlDsigNamespaceUrl); 254XmlElement subjectNameElement = xmlDocument.CreateElement("X509SubjectName", SignedXml.XmlDsigNamespaceUrl); 264XmlElement x509Element = xmlDocument.CreateElement("X509Certificate", SignedXml.XmlDsigNamespaceUrl); 272XmlElement crlElement = xmlDocument.CreateElement("X509CRL", SignedXml.XmlDsigNamespaceUrl); 280public override void LoadXml(XmlElement element)
System\Security\Cryptography\Xml\Reference.cs (21)
24private XmlElement? _cachedXml; 60internal Reference(XmlElement element) 158public XmlElement GetXml() 167internal XmlElement GetXml(XmlDocument document) 170XmlElement referenceElement = document.CreateElement("Reference", SignedXml.XmlDsigNamespaceUrl); 189XmlElement digestMethodElement = document.CreateElement("DigestMethod", SignedXml.XmlDsigNamespaceUrl); 200XmlElement digestValueElement = document.CreateElement("DigestValue", SignedXml.XmlDsigNamespaceUrl); 209public void LoadXml(XmlElement value) 236XmlElement transformsElement = (transformsNodes[0] as XmlElement)!; 254XmlElement transformElement = (transformNode as XmlElement)!; 318XmlElement digestMethodElement = (digestMethodNodes[0] as XmlElement)!; 328XmlElement digestValueElement = (digestValueNodes[0] as XmlElement)!; 427XmlElement? elem = SignedXml!.GetIdElement(document, idref); 429_namespaces = Utils.GetPropagatedAttributes(elem.ParentNode as XmlElement); 438XmlElement? tempElem = node as XmlElement; 479hashInputStream = TransformChain.TransformToOctetStream(Utils.PreProcessElementInput((XmlElement)_refTarget!, resolver!, baseUri), resolver, baseUri);
System\Security\Cryptography\Xml\RSAKeyValue.cs (9)
60/// An <see cref="XmlElement"/> containing the XML representation. 62public override XmlElement GetXml() 74internal override XmlElement GetXml(XmlDocument xmlDocument) 78XmlElement keyValueElement = xmlDocument.CreateElement(KeyValueElementName, SignedXml.XmlDsigNamespaceUrl); 79XmlElement rsaKeyValueElement = xmlDocument.CreateElement(RSAKeyValueElementName, SignedXml.XmlDsigNamespaceUrl); 81XmlElement modulusElement = xmlDocument.CreateElement(ModulusElementName, SignedXml.XmlDsigNamespaceUrl); 85XmlElement exponentElement = xmlDocument.CreateElement(ExponentElementName, SignedXml.XmlDsigNamespaceUrl); 101/// An <see cref="XmlElement"/> containing the XML representation. This cannot be null. 109public override void LoadXml(XmlElement value)
System\Security\Cryptography\Xml\Signature.cs (15)
85public XmlElement GetXml() 92internal XmlElement GetXml(XmlDocument document) 95XmlElement signatureElement = (XmlElement)document.CreateElement("Signature", SignedXml.XmlDsigNamespaceUrl); 109XmlElement signatureValueElement = document.CreateElement("SignatureValue", SignedXml.XmlDsigNamespaceUrl); 134public void LoadXml(XmlElement value) 142XmlElement signatureElement = value; 159XmlElement signedInfoElement = (signedInfoNodes[0] as XmlElement)!; 169XmlElement signatureValueElement = (signatureValueNodes[0] as XmlElement)!; 187XmlElement? keyInfoElement = node as XmlElement; 201XmlElement? objectElement = node as XmlElement;
System\Security\Cryptography\Xml\SignedInfo.cs (17)
19private XmlElement? _cachedXml; 155public XmlElement GetXml() 164internal XmlElement GetXml(XmlDocument document) 167XmlElement signedInfoElement = document.CreateElement("SignedInfo", SignedXml.XmlDsigNamespaceUrl); 172XmlElement canonicalizationMethodElement = CanonicalizationMethodObject.GetXml(document, "CanonicalizationMethod"); 179XmlElement signatureMethodElement = document.CreateElement("SignatureMethod", SignedXml.XmlDsigNamespaceUrl); 184XmlElement hmacLengthElement = document.CreateElement(null, "HMACOutputLength", SignedXml.XmlDsigNamespaceUrl); 205public void LoadXml(XmlElement value) 213XmlElement signedInfoElement = value; 230XmlElement canonicalizationMethodElement = (canonicalizationMethodNodes.Item(0) as XmlElement)!; 243XmlElement signatureMethodElement = (signatureMethodNodes.Item(0) as XmlElement)!; 250XmlElement? signatureLengthElement = signatureMethodElement.SelectSingleNode("ds:HMACOutputLength", nsm) as XmlElement; 267XmlElement referenceElement = (node as XmlElement)!;
System\Security\Cryptography\Xml\SignedXml.cs (12)
30internal XmlElement? _context; 111public SignedXml(XmlElement elem) 125private void Initialize(XmlElement? element) 221public XmlElement GetXml() 232public void LoadXml(XmlElement value) 552public virtual XmlElement? GetIdElement(XmlDocument? document, string idValue) 557internal static XmlElement? DefaultGetIdElement(XmlDocument? document, string idValue) 576XmlElement? elem = document.GetElementById(idValue); 583XmlElement? cloneElem = docClone.GetElementById(idValue); 595XmlElement? cloneElem2 = docClone.GetElementById(idValue); 1086private static XmlElement? GetSingleReferenceTarget(XmlDocument document, string idAttributeName, string idValue) 1110return nodeList[0] as XmlElement;
System\Security\Cryptography\Xml\SignedXmlDebugLog.cs (2)
356internal static void LogBeginSignatureComputation(SignedXml signedXml, XmlElement context) 386internal static void LogBeginSignatureVerification(SignedXml signedXml, XmlElement? context)
System\Security\Cryptography\Xml\Transform.cs (6)
32private XmlElement? _context; 116public XmlElement GetXml() 123internal XmlElement GetXml(XmlDocument document) 128internal XmlElement GetXml(XmlDocument document, string name) 130XmlElement transformElement = document.CreateElement(name, SignedXml.XmlDsigNamespaceUrl); 159public XmlElement? Context
System\Security\Cryptography\Xml\TransformChain.cs (6)
154internal XmlElement GetXml(XmlDocument document, string ns) 156XmlElement transformsElement = document.CreateElement("Transforms", ns); 162XmlElement transformElement = transform.GetXml(document); 172internal void LoadXml(XmlElement value) 189XmlElement transformElement = (XmlElement)transformNodes.Item(i)!;
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\Security\Cryptography\Xml\XmlDecryptionTransform.cs (9)
39protected virtual bool IsTargetElement(XmlElement? inputElement, string idValue) 96XmlElement? elem = node as XmlElement; 125XmlElement element = document.CreateElement("Transform", SignedXml.XmlDsigNamespaceUrl); 130XmlElement exceptUriElement = document.CreateElement("Except", Consts.XmlDecryptionTransformNamespaceUrl); 178private void ReplaceEncryptedData(XmlElement encryptedDataElement, byte[] decrypted) 198private bool ProcessEncryptedDataItem(XmlElement encryptedDataElement) 232XmlElement? encryptedDataElement = node as XmlElement;
System\Security\Cryptography\Xml\XmlDsigExcC14NTransform.cs (4)
52XmlElement? e = n as XmlElement; 99XmlElement element = document.CreateElement("Transform", SignedXml.XmlDsigNamespaceUrl); 102XmlElement prefixListElement = document.CreateElement("InclusiveNamespaces", SignedXml.XmlDsigExcC14NTransformUrl);
System\Security\Cryptography\Xml\XmlDsigXPathTransform.cs (3)
45XmlElement? elem = node as XmlElement; 89XmlElement element = document.CreateElement(null, "XPath", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\XmlDsigXsltTransform.cs (3)
54XmlElement? firstDataElement = null; 60if (node is XmlElement) 64firstDataElement = node as XmlElement;
System\Security\Cryptography\Xml\XmlLicenseTransform.cs (11)
50XmlElement? encryptionMethod; 51XmlElement? keyInfo; 52XmlElement? cipherData; 59encryptionMethod = encryptedGrantList[i]!.SelectSingleNode("//r:encryptedGrant/enc:EncryptionMethod", _namespaceManager!) as XmlElement; 60keyInfo = encryptedGrantList[i]!.SelectSingleNode("//r:encryptedGrant/dsig:KeyInfo", _namespaceManager!) as XmlElement; 61cipherData = encryptedGrantList[i]!.SelectSingleNode("//r:encryptedGrant/enc:CipherData", _namespaceManager!) as XmlElement; 142XmlElement? currentIssuerContext; 143XmlElement? currentLicenseContext; 147currentIssuerContext = Context.SelectSingleNode("ancestor-or-self::r:issuer[1]", _namespaceManager) as XmlElement; 151signatureNode = currentIssuerContext.SelectSingleNode("descendant-or-self::dsig:Signature[1]", _namespaceManager) as XmlElement; 155currentLicenseContext = currentIssuerContext.SelectSingleNode("ancestor-or-self::r:license[1]", _namespaceManager) as XmlElement;
System.ServiceModel.Federation (7)
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (2)
188foreach (XmlElement parameter in WSTrustTokenParameters.AdditionalRequestParameters) 190trustRequest.AdditionalXmlElements.Add((XmlElement)parameter.CloneNode(true));
System\ServiceModel\Federation\WsTrustTokenParameters.cs (5)
69foreach (var parameter in other.AdditionalRequestParameters) 70AdditionalRequestParameters.Add((XmlElement)parameter.CloneNode(true)); 105/// Allows the addition of custom <see cref="XmlElement"/>s to the WSTrust request 108public new ICollection<XmlElement> AdditionalRequestParameters { get; } = new Collection<XmlElement>();
System.ServiceModel.Federation.Tests (2)
WSTrustChannelSecurityTokenProviderTest.cs (2)
33var additionalElements= new Collection<XmlElement>() { new XmlDocument().CreateElement(eln1), new XmlDocument().CreateElement(eln2) }; 45foreach(XmlElement element in additionalElements)
System.Xml (1)
System.Xml.cs (1)
202[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XmlElement))]
System.Xml.ReaderWriter (1)
artifacts\obj\System.Xml.ReaderWriter\Debug\net10.0\System.Xml.ReaderWriter.Forwards.cs (1)
130[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XmlElement))]
System.Xml.XmlDocument (1)
System.Xml.XmlDocument.cs (1)
12[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XmlElement))]