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)
468XmlElement element = new XmlElement(_reader.Prefix, _reader.LocalName, _reader.NamespaceURI, _doc!);
1080 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)
322XmlElement mainProjectElement = null; 330mainProjectElement = (XmlElement)childNode; 574private 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)
40private readonly Dictionary<XmlElement, IList<ProjectRootElement>> _importTable; 67_importTable = new Dictionary<XmlElement, IList<ProjectRootElement>>(imports.Count); 120private void AddToImportTable(XmlElement element, ProjectRootElement importedProject) 167private void AddImplicitImportNodes(XmlElement documentElement) 185XmlElement xmlElement = (XmlElement)documentElement.OwnerDocument.ImportNode(import.ImportingElement.XmlElement, false); 211XmlElement xmlElement = (XmlElement)documentElement.InsertAfter(documentElement.OwnerDocument.ImportNode(import.ImportingElement.XmlElement, false), documentElement.LastChild); 245string innerInitialTargets = ((XmlElement)child).GetAttribute(XMakeAttributes.initialTargets).Trim(); 262string innerDefaultTargets = ((XmlElement)child).GetAttribute(XMakeAttributes.defaultTargets).Trim(); 281string importCondition = ((XmlElement)child).GetAttribute(XMakeAttributes.condition); 283string importProject = ((XmlElement)child).GetAttribute(XMakeAttributes.project).Replace("--", "__"); 284string importSdk = ((XmlElement)child).GetAttribute(XMakeAttributes.sdk); 288string projectSdk = source.NodeType == XmlNodeType.Element && String.Equals(XMakeElements.project, source.Name, StringComparison.Ordinal) ? ((XmlElement)source).GetAttribute(XMakeAttributes.sdk) : String.Empty; 291if (!_importTable.TryGetValue((XmlElement)child, out resolvedList)) 339string 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)
995XmlElement 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) 1918private static XmlElement CreateApplicationElement(XmlElement configElement, BuildSettings settings) 1920XmlElement applicationElement = null; 1933XmlElement filesNode = applicationElement.OwnerDocument.CreateElement("Files"); 1934XmlElement fileNode = filesNode.OwnerDocument.CreateElement("File");
GenerateApplicationManifest.cs (1)
462XmlNode node = (XmlElement)document.SelectSingleNode(XPaths.requestedExecutionLevelPath, nsmgr);
ManifestUtil\AssemblyIdentity.cs (2)
243var element = (XmlElement)document.SelectSingleNode(XPaths.assemblyIdentityPath, nsmgr);
ManifestUtil\Manifest.cs (1)
421((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; 634private static XmlDocument CreateLicenseDom(CmiManifestSigner2 signer, XmlElement principal, byte[] hash) 643XmlElement assemblyIdentityNode = licenseDom.SelectSingleNode("r:license/r:grant/as:ManifestInformation/as:assemblyIdentity", nsm) as XmlElement; 650XmlElement manifestInformationNode = licenseDom.SelectSingleNode("r:license/r:grant/as:ManifestInformation", nsm) as XmlElement; 656XmlElement authenticodePublisherNode = licenseDom.SelectSingleNode("r:license/r:grant/as:AuthenticodePublisher/as:X509SubjectName", nsm) as XmlElement; 721XmlElement xmlDigitalSignature = signedXml.GetXml(); 727XmlElement issuerNode = licenseDom.SelectSingleNode("r:license/r:issuer", nsm) as XmlElement; 855XmlElement signatureValueNode = licenseDom.SelectSingleNode("r:license/r:issuer/ds:Signature/ds:SignatureValue", nsm) as XmlElement; 896XmlElement asTimestamp = licenseDom.CreateElement("as", "Timestamp", AuthenticodeNamespaceUri); 899XmlElement dsObject = licenseDom.CreateElement("Object", SignedXml.XmlDsigNamespaceUrl); 902XmlElement signatureNode = licenseDom.SelectSingleNode("r:license/r:issuer/ds:Signature", nsm) as XmlElement; 921XmlElement signatureParent = manifestDom.SelectSingleNode("asm:assembly", nsm) as XmlElement; 988XmlElement xmlDigitalSignature = signedXml.GetXml();
ManifestUtil\TrustInfo.cs (43)
38private void AddSameSiteAttribute(XmlElement permissionSetElement) 63private void FixupPermissionSetElement(XmlElement permissionSetElement) 127XmlElement defaultAssemblyRequestElement = (XmlElement)permissionSetElement.ParentNode.SelectSingleNode(XPaths.defaultAssemblyRequestElement, nsmgr); 175private XmlElement GetInputPermissionSetElement() 180XmlElement trustInfoElement = _inputTrustInfoDocument.CreateElement(XmlUtil.TrimPrefix(XPaths.trustInfoElement), XmlNamespaces.asmv2); 186private XmlElement GetInputRequestedPrivilegeElement() 194XmlElement trustInfoElement = _inputTrustInfoDocument.DocumentElement; 195XmlElement securityElement = (XmlElement)trustInfoElement?.SelectSingleNode(XPaths.securityElement, nsmgr); 196XmlElement requestedPrivilegeElement = (XmlElement)securityElement?.SelectSingleNode(XPaths.requestedPrivilegeElement, nsmgr); 200private static XmlElement GetRequestedPrivilegeElement(XmlElement inputRequestedPrivilegeElement, XmlDocument document) 218XmlElement requestedPrivilegeElement = document.CreateElement(XmlUtil.TrimPrefix(XPaths.requestedPrivilegeElement), XmlNamespaces.asmv3); 254XmlElement inputRequestedExecutionLevel = (XmlElement)inputRequestedPrivilegeElement.SelectSingleNode(XPaths.requestedExecutionLevelElement, nsmgr); 296XmlElement requestedExecutionLevelElement = document.CreateElement(XmlUtil.TrimPrefix(XPaths.requestedExecutionLevelElement), XmlNamespaces.asmv3); 315private XmlElement GetPermissionSetElement(XmlDocument document) 319XmlElement trustInfoElement = document.DocumentElement; 320var securityElement = (XmlElement)trustInfoElement.SelectSingleNode(XPaths.securityElement, nsmgr); 326XmlElement applicationRequestMinimumElement = (XmlElement)securityElement.SelectSingleNode(XPaths.applicationRequestMinimumElement, nsmgr); 332XmlElement permissionSetElement = (XmlElement)applicationRequestMinimumElement.SelectSingleNode(XPaths.permissionSetElement, nsmgr); 460var trustInfoElement = (XmlElement)document.SelectSingleNode(xpath, nsmgr); 496XmlElement psElement = GetInputPermissionSetElement(); 561XmlElement inputPermissionSetElement = GetInputPermissionSetElement(); 564XmlElement outputPermissionSetElement = XmlUtil.CloneElementToDocument(inputPermissionSetElement, outputDocument, XmlNamespaces.asmv2); 570XmlElement inputRequestedPrivilegeElement = GetInputRequestedPrivilegeElement(); 572XmlElement requestedPrivilegeElement = GetRequestedPrivilegeElement(inputRequestedPrivilegeElement, privilegeDocument); 592XmlElement permissionSetElement = outputDocument.DocumentElement; 710XmlElement assemblyElement = (XmlElement)document.SelectSingleNode(XPaths.assemblyElement, nsmgr); 716var trustInfoElement = (XmlElement)assemblyElement.SelectSingleNode(XPaths.trustInfoElement, nsmgr); 726XmlElement securityElement = (XmlElement)trustInfoElement.SelectSingleNode(XPaths.securityElement, nsmgr); 732XmlElement applicationRequestMinimumElement = (XmlElement)securityElement.SelectSingleNode(XPaths.applicationRequestMinimumElement, nsmgr); 745XmlElement fullTrustPermissionSetElement = document.CreateElement(XmlUtil.TrimPrefix(XPaths.permissionSetElement), XmlNamespaces.asmv2);
ManifestUtil\Util.cs (1)
561public static void WriteLogFile(string filename, System.Xml.XmlElement element)
ManifestUtil\XmlUtil.cs (5)
37public static XmlElement CloneElementToDocument(XmlElement element, XmlDocument document, string namespaceURI) 39XmlElement newElement = document.CreateElement(element.Name, namespaceURI); 50XmlElement 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 (1)
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 (7)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (6)
629if (root.ChildNodes[i] is XmlElement nodeGroup && string.Equals(nodeGroup.Name, groupName, StringComparison.OrdinalIgnoreCase)) 640if (nodeGroup.ChildNodes[j] is XmlElement nodeItem && string.Equals(nodeItem.Name, sItemName, StringComparison.OrdinalIgnoreCase)) 661if (node is XmlElement item) 713XmlElement embedItem = null; 718XmlElement nodeItem = xmlProjectDoc.CreateElement(sItemName, root.NamespaceURI); 773XmlElement nodeItem = xmlProjectDoc.CreateElement(property.PropertyName, root.NamespaceURI);
Microsoft\Build\Tasks\Windows\UpdateManifestForBrowserApplication.cs (1)
102XmlElement hostInBrowser;
PresentationFramework (40)
MS\Internal\Annotations\Component\HighlightComponent.cs (1)
480foreach (XmlElement content in contents)
MS\Internal\Annotations\XmlElementCollection.cs (10)
24internal sealed class XmlElementCollection : ObservableCollection<XmlElement> 64foreach (XmlElement item in this) 78XmlElement removedItem = this[index]; 89protected override void InsertItem(int index, XmlElement item) 105protected override void SetItem(int index, XmlElement item) 112XmlElement originalItem = this[index]; 139private void UnregisterForElement(XmlElement element) 169private void RegisterForElement(XmlElement element) 202XmlElement element = null; 215element = current as XmlElement;
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (10)
458SNCAnnotation annotation, XmlToken token, out AnnotationResource cargo, out XmlElement root, out bool newCargo, out bool newRoot) 501private void UpdateAttribute(XmlElement root, XmlToken token, string value) 621private static XmlElement FindRootXmlElement(XmlToken token, AnnotationResource cargo) 625XmlElement element = null; 652foreach (XmlElement node in cargo.Contents) 673XmlElement root = SNCAnnotation.FindRootXmlElement(token, cargo); 725XmlElement root = null; 768XmlElement node = (XmlElement)FindData(token); 790XmlElement root;
MS\Internal\Globalization\BamlTreeMap.cs (4)
582XmlElement element = FindElementByID(_commentsDocument, node.Uid); 634private static XmlElement FindElementByID(XmlDocument doc, string uid) 644XmlElement element = (XmlElement)node;
MS\Internal\Globalization\BamlTreeUpdater.cs (3)
417if (doc.FirstChild is XmlElement root && root.HasChildNodes) 471XmlElement child = node as XmlElement;
MS\Internal\IO\Packaging\XmlGlyphRunInfo.cs (4)
35_glyphsNode = glyphsNode as XmlElement; 164for (XmlElement currentNode = _glyphsNode; 166currentNode = (currentNode.ParentNode as XmlElement)) 248private XmlElement _glyphsNode = null;
System\Windows\Annotations\AnnotationHelper.cs (1)
1025XmlElement colorsElement = doc.CreateElement(HighlightComponent.ColorsContentName, AnnotationXmlConstants.Namespaces.BaseSchemaNamespace);
System\Windows\Annotations\AnnotationResource.cs (4)
145foreach (XmlElement content in _contents) 183XmlElement element = doc.ReadNode(reader) as XmlElement; 301public Collection<XmlElement> Contents
System\Windows\Documents\FixedTextBuilder.cs (3)
1567XmlElement newDumpNode = _dumpDoc.CreateElement(element.Type.Name); 1625_currentDumpNode = (XmlElement) _currentDumpNode.ParentNode; 1796private XmlElement _currentDumpNode;
ReachFramework (57)
PrintConfig\PrintSchemaShim.cs (2)
127XmlElement parameterInitElem = ticket.XmlDoc.CreateElement(PrintSchemaPrefixes.Framework, PrintSchemaTags.Framework.ParameterInit, PrintSchemaNamespaces.Framework); 135XmlElement valueElem = ticket.XmlDoc.CreateElement(PrintSchemaPrefixes.Framework, PrintSchemaTags.Framework.Value, PrintSchemaNamespaces.Framework);
PrintConfig\PrtTicket_Base.cs (36)
58XmlElement parentElement = null; 257XmlElement parentElement = null; 380private PTFeatureNode(PrintTicketFeature ownerFeature, XmlElement featureElement) 396XmlElement parentElement) 402XmlElement featureElement = PrintTicketEditor.GetSchemaElementWithNameAttr(pt, 419XmlElement parentElement) 442XmlElement optionNode = GetFirstOption(); 481XmlElement optionNode = GetFirstOption(); 510XmlElement optionNode = GetFirstOption(); 551XmlElement option = GetFirstOption(); 570XmlElement property = PrintTicketEditor.AddSchemaElementWithNameAttr(pt, 575XmlElement valueNode = PrintTicketEditor.AddSchemaElementWithNameAttr(pt, 598XmlElement optionNode = GetFirstOption(); 630XmlElement option = GetFirstOption(); 649XmlElement property = PrintTicketEditor.AddSchemaElementWithNameAttr(pt, 654XmlElement valueNode = PrintTicketEditor.AddSchemaElementWithNameAttr(pt, 677XmlElement optionNode = GetFirstOption(); 683XmlElement propertyNode = PrintTicketEditor.GetSchemaElementWithNameAttr(pt, 692XmlElement refNode = PrintTicketEditor.GetSchemaElementWithNameAttr(pt, 728XmlElement option = GetFirstOption(); 747XmlElement property = PrintTicketEditor.AddSchemaElementWithNameAttr(pt, 761public XmlElement GetFirstOption() 783public XmlElement FeatureElement 798private string GetOptionPropertyValueText(XmlElement parentOption, string propertyName) 803XmlElement propertyNode = PrintTicketEditor.GetSchemaElementWithNameAttr(pt, 812XmlElement valueNode = PrintTicketEditor.GetSchemaElementWithNameAttr(pt, 840private XmlElement _featureElement; 1182private PrintTicketParameterNode(PrintTicketParameter ownerParameter, XmlElement parameterElement) 1203XmlElement parameterElement = PrintTicketEditor.GetSchemaElementWithNameAttr(pt, 1277XmlElement valueNode = PrintTicketEditor.GetSchemaElementWithNameAttr(pt, 1302public XmlElement SetIntValue(int value) 1304XmlElement valueNode = SetStringValue(value.ToString(CultureInfo.InvariantCulture), 1313public XmlElement SetStringValue(string value, string xsiType) 1324XmlElement valueNode = PrintTicketEditor.AddSchemaElementWithNameAttr(pt, 1349public XmlElement ParameterElement 1362private XmlElement _parameterElement;
PrintConfig\PrtTicket_Editor.cs (19)
38XmlElement root = pt.XmlDoc.DocumentElement; 110string childName = ((XmlElement)rootChild).GetAttribute(PrintSchemaTags.Framework.NameAttr, 145XmlElement root = pt.XmlDoc.DocumentElement; 200public static string AddStdNamespaceDeclaration(XmlElement root, string prefix_header, string nsURI) 232public static XmlElement GetSchemaElementWithNameAttr(InternalPrintTicket pt, 233XmlElement parent, 237XmlElement elementMatched = null; 265string childName = ((XmlElement)child).GetAttribute( 280elementMatched = (XmlElement)child; 296XmlElement parent, 300XmlElement childMatched; 324childMatched = (XmlElement)child; 329string childName = ((XmlElement)child).GetAttribute( 338childMatched = (XmlElement)child; 351public static XmlElement AddSchemaElementWithNameAttr(InternalPrintTicket pt, 352XmlElement parent, 358XmlElement newNode = pt.XmlDoc.CreateElement(prefix, schemaTag, PrintSchemaNamespaces.Framework); 367return (XmlElement)parent.AppendChild(newNode); 371XmlElement 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)
102XmlElement? element; 153element = parent as XmlElement; 468XmlElement element = new XmlElement(_reader.Prefix, _reader.LocalName, _reader.NamespaceURI, _doc!); 696XmlElement? element = node as XmlElement; 788internal void LoadInnerXmlElement(XmlElement node, string innerxmltext) 794RemoveDuplicateNamespace((XmlElement)node, mgr, false); 803private void RemoveDuplicateNamespace(XmlElement elem, XmlNamespaceManager mgr, bool fCheckElemAttrs) 854XmlElement? 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)
261if (o is XmlElement elem)
System\Xml\Serialization\Types.cs (1)
860else if (typeof(XmlElement).IsAssignableFrom(type))
System\Xml\Serialization\XmlReflectionImporter.cs (3)
1688Type targetType = typeof(IXmlSerializable).IsAssignableFrom(arrayElementType) ? arrayElementType : typeof(XmlNode).IsAssignableFrom(arrayElementType) ? arrayElementType : typeof(XmlElement); 1929Type targetType = typeof(IXmlSerializable).IsAssignableFrom(accessorType) ? accessorType : typeof(XmlNode).IsAssignableFrom(accessorType) ? accessorType : typeof(XmlElement); 2101if (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) 117_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) 84TransformChain.LoadXml((transformsNode as XmlElement)!);
System\Security\Cryptography\Xml\DataObject.cs (6)
15private XmlElement? _cachedXml; 27public DataObject(string id, string mimeType, string encoding, XmlElement data) 104public XmlElement GetXml() 113internal XmlElement GetXml(XmlDocument document) 115XmlElement objectElement = document.CreateElement("Object", SignedXml.XmlDsigNamespaceUrl); 135public void LoadXml(XmlElement value)
System\Security\Cryptography\Xml\DSAKeyValue.cs (14)
59/// An <see cref="XmlElement"/> containing the XML representation. 61public override XmlElement GetXml() 86internal override XmlElement GetXml(XmlDocument xmlDocument) 90XmlElement keyValueElement = xmlDocument.CreateElement(KeyValueElementName, SignedXml.XmlDsigNamespaceUrl); 91XmlElement dsaKeyValueElement = xmlDocument.CreateElement(DSAKeyValueElementName, SignedXml.XmlDsigNamespaceUrl); 93XmlElement pElement = xmlDocument.CreateElement(PElementName, SignedXml.XmlDsigNamespaceUrl); 97XmlElement qElement = xmlDocument.CreateElement(QElementName, SignedXml.XmlDsigNamespaceUrl); 101XmlElement gElement = xmlDocument.CreateElement(GElementName, SignedXml.XmlDsigNamespaceUrl); 105XmlElement yElement = xmlDocument.CreateElement(YElementName, SignedXml.XmlDsigNamespaceUrl); 112XmlElement jElement = xmlDocument.CreateElement(JElementName, SignedXml.XmlDsigNamespaceUrl); 119XmlElement seedElement = xmlDocument.CreateElement(SeedElementName, SignedXml.XmlDsigNamespaceUrl); 123XmlElement counterElement = xmlDocument.CreateElement(PgenCounterElementName, SignedXml.XmlDsigNamespaceUrl); 140/// An <see cref="XmlElement"/> containing the XML representation. This cannot be null. 148public override void LoadXml(XmlElement value)
System\Security\Cryptography\Xml\EncryptedData.cs (10)
13public override void LoadXml(XmlElement value) 31EncryptionMethod.LoadXml((encryptionMethodNode as XmlElement)!); 37KeyInfo.LoadXml((keyInfoNode as XmlElement)!); 45CipherData.LoadXml((cipherDataNode as XmlElement)!); 58ep.LoadXml((node as XmlElement)!); 68public override XmlElement GetXml() 77internal XmlElement GetXml(XmlDocument document) 80XmlElement encryptedDataElement = (XmlElement)document.CreateElement("EncryptedData", EncryptedXml.XmlEncNamespaceUrl); 108XmlElement encryptionPropertiesElement = document.CreateElement("EncryptionProperties", EncryptedXml.XmlEncNamespaceUrl);
System\Security\Cryptography\Xml\EncryptedKey.cs (15)
52public override void LoadXml(XmlElement value) 71EncryptionMethod.LoadXml((encryptionMethodNode as XmlElement)!); 77KeyInfo.LoadXml((keyInfoNode as XmlElement)!); 85CipherData.LoadXml((cipherDataNode as XmlElement)!); 98ep.LoadXml((node as XmlElement)!); 122dr.LoadXml((node as XmlElement)!); 133kr.LoadXml((node as XmlElement)!); 143public override XmlElement GetXml() 152internal XmlElement GetXml(XmlDocument document) 155XmlElement encryptedKeyElement = (XmlElement)document.CreateElement("EncryptedKey", EncryptedXml.XmlEncNamespaceUrl); 185XmlElement encryptionPropertiesElement = document.CreateElement("EncryptionProperties", EncryptedXml.XmlEncNamespaceUrl); 197XmlElement referenceListElement = document.CreateElement("ReferenceList", EncryptedXml.XmlEncNamespaceUrl); 208XmlElement 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) 123TransformChain.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)
218XmlElement? idElem = GetIdElement(_document, idref); 261public virtual XmlElement? GetIdElement(XmlDocument document, string idValue) 333XmlElement encryptedKeyElement = (encryptedKeyNode as XmlElement)!; 528public EncryptedData Encrypt(XmlElement inputElement, X509Certificate2 certificate) 568public EncryptedData Encrypt(XmlElement inputElement, string keyName) 656XmlElement encryptedDataElement = (encryptedDataNode as XmlElement)!; 710public byte[] EncryptData(XmlElement inputElement, SymmetricAlgorithm symmetricAlgorithm, bool content) 765public void ReplaceData(XmlElement inputElement, byte[] decryptedData) 833public static void ReplaceElement(XmlElement inputElement, EncryptedData encryptedData, bool content) 839XmlElement 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) 89XmlElement encryptionMethodElement = value;
System\Security\Cryptography\Xml\EncryptionProperty.cs (8)
13private XmlElement? _elemProp; 14private XmlElement? _cachedXml; 19public EncryptionProperty(XmlElement elementProperty) 41public XmlElement? PropertyElement 65public XmlElement GetXml() 74internal XmlElement GetXml(XmlDocument document) 76return (document.ImportNode(_elemProp!, true) as XmlElement)!; 79public 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) 67XmlElement keyInfoElement = value; 75XmlElement? elem = child as XmlElement; 90XmlElement? 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) 55XmlElement 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)
208public override XmlElement GetXml() 215internal override XmlElement GetXml(XmlDocument xmlDocument) 217XmlElement x509DataElement = xmlDocument.CreateElement("X509Data", SignedXml.XmlDsigNamespaceUrl); 223XmlElement issuerSerialElement = xmlDocument.CreateElement("X509IssuerSerial", SignedXml.XmlDsigNamespaceUrl); 224XmlElement issuerNameElement = xmlDocument.CreateElement("X509IssuerName", SignedXml.XmlDsigNamespaceUrl); 227XmlElement serialNumberElement = xmlDocument.CreateElement("X509SerialNumber", SignedXml.XmlDsigNamespaceUrl); 238XmlElement subjectKeyIdElement = xmlDocument.CreateElement("X509SKI", SignedXml.XmlDsigNamespaceUrl); 248XmlElement subjectNameElement = xmlDocument.CreateElement("X509SubjectName", SignedXml.XmlDsigNamespaceUrl); 258XmlElement x509Element = xmlDocument.CreateElement("X509Certificate", SignedXml.XmlDsigNamespaceUrl); 266XmlElement crlElement = xmlDocument.CreateElement("X509CRL", SignedXml.XmlDsigNamespaceUrl); 274public 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) 233XmlElement transformsElement = (transformsNodes[0] as XmlElement)!; 251XmlElement transformElement = (transformNode as XmlElement)!; 315XmlElement digestMethodElement = (digestMethodNodes[0] as XmlElement)!; 325XmlElement digestValueElement = (digestValueNodes[0] as XmlElement)!; 421XmlElement? elem = SignedXml!.GetIdElement(document, idref); 423_namespaces = Utils.GetPropagatedAttributes(elem.ParentNode as XmlElement); 432XmlElement? tempElem = node as XmlElement; 473hashInputStream = TransformChain.TransformToOctetStream(Utils.PreProcessElementInput((XmlElement)_refTarget!, resolver!, baseUri), resolver, baseUri);
System\Security\Cryptography\Xml\RSAKeyValue.cs (9)
54/// An <see cref="XmlElement"/> containing the XML representation. 56public override XmlElement GetXml() 68internal override XmlElement GetXml(XmlDocument xmlDocument) 72XmlElement keyValueElement = xmlDocument.CreateElement(KeyValueElementName, SignedXml.XmlDsigNamespaceUrl); 73XmlElement rsaKeyValueElement = xmlDocument.CreateElement(RSAKeyValueElementName, SignedXml.XmlDsigNamespaceUrl); 75XmlElement modulusElement = xmlDocument.CreateElement(ModulusElementName, SignedXml.XmlDsigNamespaceUrl); 79XmlElement exponentElement = xmlDocument.CreateElement(ExponentElementName, SignedXml.XmlDsigNamespaceUrl); 95/// An <see cref="XmlElement"/> containing the XML representation. This cannot be null. 103public 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) 139XmlElement signatureElement = value; 156XmlElement signedInfoElement = (signedInfoNodes[0] as XmlElement)!; 166XmlElement signatureValueElement = (signatureValueNodes[0] as XmlElement)!; 184XmlElement? keyInfoElement = node as XmlElement; 198XmlElement? 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) 210XmlElement signedInfoElement = value; 227XmlElement canonicalizationMethodElement = (canonicalizationMethodNodes.Item(0) as XmlElement)!; 240XmlElement signatureMethodElement = (signatureMethodNodes.Item(0) as XmlElement)!; 247XmlElement? signatureLengthElement = signatureMethodElement.SelectSingleNode("ds:HMACOutputLength", nsm) as XmlElement; 264XmlElement referenceElement = (node as XmlElement)!;
System\Security\Cryptography\Xml\SignedXml.cs (12)
30internal XmlElement? _context; 108public SignedXml(XmlElement elem) 119private void Initialize(XmlElement? element) 215public XmlElement GetXml() 226public void LoadXml(XmlElement value) 540public virtual XmlElement? GetIdElement(XmlDocument? document, string idValue) 545internal static XmlElement? DefaultGetIdElement(XmlDocument? document, string idValue) 564XmlElement? elem = document.GetElementById(idValue); 571XmlElement? cloneElem = docClone.GetElementById(idValue); 583XmlElement? cloneElem2 = docClone.GetElementById(idValue); 1068private static XmlElement? GetSingleReferenceTarget(XmlDocument document, string idAttributeName, string idValue) 1092return 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) 186XmlElement 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) 43internal static bool IsRedundantNamespace(XmlElement element, string prefix, string value) 50XmlElement? ancestorElement = ancestorNode as XmlElement; 59internal static string? GetAttribute(XmlElement element, string localName, string namespaceURI) 67internal static bool HasAttribute(XmlElement element, string localName, string namespaceURI) 72internal static bool VerifyAttributes(XmlElement element, string? expectedAttrName) 77internal static bool VerifyAttributes(XmlElement element, string[]? expectedAttrNames) 212internal static XmlDocument PreProcessElementInput(XmlElement elem, XmlResolver xmlResolver, string? baseUri) 349internal static void RemoveAllChildren(XmlElement inputElement) 458internal static void AddNamespaces(XmlElement elem, CanonicalXmlNodeList? namespaces) 474internal static void AddNamespaces(XmlElement elem, Hashtable namespaces) 489internal static CanonicalXmlNodeList? GetPropagatedAttributes(XmlElement? elem) 500XmlElement? ancestorElement = ancestorNode as XmlElement;
System\Security\Cryptography\Xml\XmlDecryptionTransform.cs (9)
39protected virtual bool IsTargetElement(XmlElement? inputElement, string idValue) 93XmlElement? elem = node as XmlElement; 122XmlElement element = document.CreateElement("Transform", SignedXml.XmlDsigNamespaceUrl); 127XmlElement exceptUriElement = document.CreateElement("Except", Consts.XmlDecryptionTransformNamespaceUrl); 172private void ReplaceEncryptedData(XmlElement encryptedDataElement, byte[] decrypted) 192private bool ProcessEncryptedDataItem(XmlElement encryptedDataElement) 226XmlElement? 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.Web.Services.Description (87)
System\Web\Services\Description\ServiceDescription.cs (24)
376internal static WsiProfiles GetConformanceClaims(XmlElement documentation) 389if (child is XmlElement) 391XmlElement element = (XmlElement)child; 406internal static void AddConformanceClaims(XmlElement documentation, WsiProfiles claims) 425XmlElement claim = d.CreateElement(Soap.ClaimPrefix, Soap.Element.Claim, Soap.ConformanceClaim); 471private XmlElement _documentationElement; 508public XmlElement DocumentationElement 1173public XmlElement Find(string name, string ns) 1177XmlElement element = List[i] as XmlElement; 1188public XmlElement[] FindAll(string name, string ns) 1193XmlElement element = List[i] as XmlElement; 1201return (XmlElement[])list.ToArray(typeof(XmlElement)); 1204private void SetHandled(XmlElement element) 1219return item is XmlElement ? IsHandled((XmlElement)item) : ((ServiceDescriptionFormatExtension)item).Handled; 1224return item is XmlElement ? IsRequired((XmlElement)item) : ((ServiceDescriptionFormatExtension)item).Required; 1227private bool IsHandled(XmlElement element) 1232private bool IsRequired(XmlElement element) 1257if (!(value is XmlElement || value is ServiceDescriptionFormatExtension))
System\Web\Services\Description\ServiceDescriptionSerializer.cs (62)
231else if (ai is System.Xml.XmlElement) { 232System.Xml.XmlElement elem = (System.Xml.XmlElement)ai; 397else if (ai is System.Xml.XmlElement) { 398System.Xml.XmlElement elem = (System.Xml.XmlElement)ai; 480else if (ai is System.Xml.XmlElement) { 481System.Xml.XmlElement elem = (System.Xml.XmlElement)ai; 562else if (ai is System.Xml.XmlElement) { 563System.Xml.XmlElement elem = (System.Xml.XmlElement)ai; 746else if (ai is System.Xml.XmlElement) { 747System.Xml.XmlElement elem = (System.Xml.XmlElement)ai; 851else if (ai is System.Xml.XmlElement) { 852System.Xml.XmlElement elem = (System.Xml.XmlElement)ai; 1332else if (ai is System.Xml.XmlElement) { 1333System.Xml.XmlElement elem = (System.Xml.XmlElement)ai; 2330if (ai is System.Xml.XmlElement) { 2331System.Xml.XmlElement elem = (System.Xml.XmlElement)ai; 2385if (ai is System.Xml.XmlElement) { 2386System.Xml.XmlElement elem = (System.Xml.XmlElement)ai; 4905o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 4963a_4.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 5036o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 5050a_4.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 5126o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 5160a_4.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 5417o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 5461a_4.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 5534o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 5586a_4.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 5658o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 5682a_4.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 5914o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 5998a_4.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 6799a_1.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 6994o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 7098a_4.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 7679o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 7693a_4.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 7771o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 7805a_4.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 7881o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 7885a_5.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 7961o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 7965a_5.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 8041o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 8045a_5.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 8118o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 8132a_4.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 8212o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 8216a_4.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 8285o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 8299a_3.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 13190o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 13194a_3.Add((global::System.Xml.XmlElement)ReadXmlNode(false));
System\Web\Services\Protocols\RuntimeUtils.cs (1)
13internal static string ElementString(XmlElement element)
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))]