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)
23internal 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!);
1393 references to XmlElement
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");
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)
666foreach (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; 542private static bool ElementContainsInvalidNamespaceDefitions(XmlElement mainProjectElement)
ElementLocation\XmlDocumentWithLocation.cs (2)
200internal XmlElement CreateElement(string localName, string namespaceURI, ElementLocation location) 222public 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)
142if (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)
186XmlElement addNode = doc.CreateElement("add");
Microsoft.Build.Conversion.Core (1)
ProjectFileConverter.cs (1)
1594XmlElement xmlElement
Microsoft.Build.Engine (177)
Choose\Choose.cs (4)
71XmlElement chooseElement, 115ProjectXmlUtilities.VerifyThrowProjectValidNamespace((XmlElement)chooseChildNode); 124(XmlElement)chooseChildNode, 136(XmlElement)chooseChildNode,
Choose\When.cs (6)
58XmlElement whenElement, 151XmlElement parentNode, 171ProjectXmlUtilities.VerifyThrowProjectValidNamespace((XmlElement)whenChildNode); 178BuildItemGroup newItemGroup = new BuildItemGroup((XmlElement)whenChildNode, importedFromAnotherProject, parentProjectForChildren); 184BuildPropertyGroup newPropertyGroup = new BuildPropertyGroup(parentProjectForChildren, (XmlElement)whenChildNode, importedFromAnotherProject); 191Choose newChoose = new Choose(parentProjectForChildren, this.PropertyAndItemLists, (XmlElement)whenChildNode,
Engine\BuildTask.cs (5)
43private XmlElement taskElement = null; 81XmlElement taskElement, 137internal XmlElement TaskXmlElement 602XmlElement newOutputElement = this.taskElement.OwnerDocument.CreateElement(XMakeElements.output, XMakeAttributes.defaultXmlNamespace); 646XmlElement newOutputElement = this.taskElement.OwnerDocument.CreateElement(XMakeElements.output, XMakeAttributes.defaultXmlNamespace);
Engine\EngineCallback.cs (1)
500XmlElement taskNode,
Engine\Import.cs (3)
48private XmlElement importElement = null; 53internal XmlElement ImportElement 209internal Import(XmlElement importElement, Project parentProject, bool isImported)
Engine\ImportCollection.cs (2)
293XmlElement projectElement = this.parentProject.ProjectElement; 294XmlElement newImportElement = projectElement.OwnerDocument.CreateElement(XMakeElements.import, XMakeAttributes.defaultXmlNamespace);
Engine\Project.cs (19)
102private XmlElement mainProjectElement; 1242internal XmlElement ProjectElement 2028this.mainProjectElement = (XmlElement)childNode; 2598XmlElement parentElement = propertyGroupToRemove.ParentElement; 2886XmlElement parentElement = itemGroupToRemove.ParentElement; 2987XmlElement newUsingTaskElement = this.mainProjectEntireContents.CreateElement(XMakeElements.usingTask, XMakeAttributes.defaultXmlNamespace); 3048XmlElement idElement = (XmlElement)projectExtensionsNode[id]; 3079XmlElement idElement = (XmlElement)projectExtensionsNode[id]; 3740XmlElement projectElement, 3826XmlElement projectElement, 3845List<XmlElement> childElements = ProjectXmlUtilities.GetValidChildElements(projectElement); 3855foreach (XmlElement childElement in childElements) 3892XmlElement targetElement = childElement; 3941foreach (XmlElement importGroupChild in childElement.ChildNodes) 3984XmlElement importElement, 4073this.ProcessProjectAttributes((XmlElement)importedChildNode, 4075this.ProcessProjectChildren((XmlElement)importedChildNode,
Engine\Target.cs (8)
91private XmlElement targetElement = null; 144XmlElement targetElement, 251XmlElement anyOnErrorElement = null; 252List<XmlElement> childElements = ProjectXmlUtilities.GetValidChildElements(targetElement); 254foreach (XmlElement childElement in childElements) 467internal XmlElement TargetElement 820internal bool ExecuteOneTask(XmlElement taskNode, ITaskHost hostObject) 917XmlElement newTaskElement = this.targetElement.OwnerDocument.CreateElement(taskName, XMakeAttributes.defaultXmlNamespace);
Engine\TargetCollection.cs (2)
309XmlElement projectElement = this.parentProject.ProjectElement; 310XmlElement newTargetElement = projectElement.OwnerDocument.CreateElement(XMakeElements.target, XMakeAttributes.defaultXmlNamespace);
Engine\TargetExecutionWrapper.cs (8)
37XmlElement targetElement, 66private XmlElement targetElement; 355List<XmlElement> childElements = ProjectXmlUtilities.GetValidChildElements(targetElement); 357foreach (XmlElement childElement in childElements) 665ExecuteIntrinsicTask((XmlElement)targetChildNode); 696(XmlElement)targetChildNode, 741private void ExecuteIntrinsicTask(XmlElement taskNode) 768XmlElement taskNode,
Engine\TaskEngine.cs (3)
61XmlElement taskNodeXmlElement, 1190TaskOutput taskOutputSpecification = new TaskOutput((XmlElement)childNode); 1608private XmlElement taskNode;
Engine\TaskExecutionContext.cs (3)
33XmlElement taskNode, 111internal XmlElement TaskNode 163private XmlElement taskNode;
Engine\TaskExecutionState.cs (2)
39XmlElement taskXmlNode, 260private XmlElement taskXmlNode;
Engine\TaskOutput.cs (1)
34internal TaskOutput(XmlElement node)
Engine\ToolsetState.cs (1)
278defaultTaskRegistry.RegisterTask(new UsingTask((XmlElement)usingTaskNode, true), new Expander(propertyBag), loggingServices, buildEventContext);
Engine\UsingTask.cs (3)
210internal UsingTask(XmlElement usingTaskNode, bool isImported) 219XmlElement illegalChildElement = null; 221foreach (XmlElement childElement in usingTaskNode.ChildNodes)
Engine\XmlSearcher.cs (1)
200foreach (XmlAttribute xmlAttribute in ((XmlElement)elementToFind).Attributes)
Items\BuildItem.cs (8)
508internal BuildItem(XmlElement itemElement, bool importedFromAnotherProject, ItemDefinitionLibrary itemDefinitionLibrary) 517internal BuildItem(XmlElement itemElement, bool importedFromAnotherProject, bool isPartOfProjectManifest, ItemDefinitionLibrary itemDefinitionLibrary) 995internal XmlElement ItemElement 1151private void InitializeFromItemElement(XmlElement element) 1349List<XmlElement> metadataElements = xml.GetChildren(); 1352foreach (XmlElement metadataElement in metadataElements) 1620List<XmlElement> children = xml.GetChildren(); 1622foreach (XmlElement child in children)
Items\BuildItemGroup.cs (9)
101internal BuildItemGroup(XmlElement itemGroupElement, bool importedFromAnotherProject, Project parentProject) 109List<XmlElement> children = xml.GetChildren(); 198internal XmlElement ItemGroupElement 286internal XmlElement ParentElement 533XmlElement itemElementToInsertAfter = items[items.Count - 1].ItemElement; 534xml.InsertAfter((XmlElement)itemElementToInsertAfter.ParentNode, itemToAdd.ItemElement, itemElementToInsertAfter); 538XmlElement itemElementToInsertBefore = items[insertionIndex].ItemElement; 539xml.InsertBefore((XmlElement)itemElementToInsertBefore.ParentNode, itemToAdd.ItemElement, itemElementToInsertBefore); 811XmlElement itemElement = itemToRemove.ItemElement;
Items\ItemDefinitionLibrary.cs (9)
65internal void Add(XmlElement element) 183private XmlElement element; 196internal BuildItemDefinitionGroupXml(XmlElement element, Project parentProject) 227List<XmlElement> childElements = ProjectXmlUtilities.GetValidChildElements(element); 229foreach (XmlElement child in childElements) 240private void EvaluateItemDefinitionElement(XmlElement itemDefinitionElement, BuildPropertyGroup properties, ItemDefinitionsDictionary itemDefinitionsDictionary) 258List<XmlElement> childElements = ProjectXmlUtilities.GetValidChildElements(itemDefinitionElement); 260foreach (XmlElement child in childElements) 271private void EvaluateItemDefinitionChildElement(XmlElement itemDefinitionChildElement, BuildPropertyGroup properties, ItemDefinitionsDictionary itemDefinitionsDictionary)
Properties\BuildProperty.cs (6)
108private XmlElement propertyElement = null; 203XmlElement propertyElement, 226XmlElement propertyElement, 669internal XmlElement PropertyElement 771XmlElement newPropertyElement; 778newPropertyElement = (XmlElement)this.propertyElement.Clone();
Properties\BuildPropertyGroup.cs (13)
52private XmlElement propertyGroupElement = null; 234internal BuildPropertyGroup(Project parentProject, XmlElement propertyGroupElement) 243internal BuildPropertyGroup(Project parentProject, XmlElement propertyGroupElement, bool isImported) 251internal BuildPropertyGroup(Project parentProject, XmlElement propertyGroupElement, PropertyType propertyType) 313ProjectXmlUtilities.VerifyThrowProjectValidNamespace((XmlElement)propertyGroupChildNode); 316BuildProperty newProperty = new BuildProperty((XmlElement)propertyGroupChildNode, propertyType); 484internal XmlElement PropertyGroupElement 532internal XmlElement ParentElement 538if (this.propertyGroupElement.ParentNode is XmlElement) 540return (XmlElement)this.propertyGroupElement.ParentNode; 1277XmlElement propertyElement = property.PropertyElement; 1449XmlElement propertyElement = propertyToRemove.PropertyElement; 1756XmlElement propertyElement
Shared\ProjectInSolution.cs (2)
243XmlElement mainProjectElement = null; 251mainProjectElement = (XmlElement)childNode;
Shared\XmlUtilities.cs (4)
30internal static XmlElement RenameXmlElement(XmlElement oldElement, string newElementName, string xmlNamespace) 32XmlElement newElement = (xmlNamespace == null) 131internal static void VerifyThrowProjectValidElementName(XmlElement element)
Solution\VCProjectParser.cs (5)
30foreach (XmlElement referenceElement in ((XmlElement)referenceElements[0]).GetElementsByTagName("ProjectReference")) 59XmlElement element = (XmlElement)configurationNode; 65XmlElement configurationElement = element;
Tasks\IntrinsicTask.cs (8)
28internal IntrinsicTask(XmlElement taskNodeXmlElement, EngineLoggingServices loggingServices, BuildEventContext eventContext, string executionDirectory, ItemDefinitionLibrary itemDefinitionLibrary) 54List<XmlElement> children = backingItemGroupXml.GetChildren(); 57foreach (XmlElement child in children) 255List<XmlElement> metadataElements = child.GetChildren(); 256foreach (XmlElement metadataElement in metadataElements) 299List<XmlElement> metadataElements = child.GetChildren(); 300foreach (XmlElement metadataElement in metadataElements) 327private XmlElement taskNodeXmlElement;
Xml\BuildItemGroupChildXml.cs (12)
23private XmlElement element; 45internal BuildItemGroupChildXml(XmlElement element, ChildType childTypeExpected) 142List<XmlElement> children = ProjectXmlUtilities.GetValidChildElements(element); 149foreach (XmlElement child in children) 230internal XmlElement Element 267internal List<XmlElement> GetChildren() 269List<XmlElement> children = ProjectXmlUtilities.GetValidChildElements(element); 278List<XmlElement> children = GetChildren(); 279foreach (XmlElement child in children) 298XmlElement childToModify = null; 299List<XmlElement> children = GetChildren(); 301foreach (XmlElement child in children)
Xml\BuildItemGroupXml.cs (15)
23private XmlElement element; 34internal BuildItemGroupXml(XmlElement element) 69internal XmlElement ParentElement 73if (element?.ParentNode is XmlElement) 75return (XmlElement)element.ParentNode; 81internal XmlElement Element 100internal List<XmlElement> GetChildren() 102List<XmlElement> children = ProjectXmlUtilities.GetValidChildElements(element); 106internal void AppendChild(XmlElement child) 111internal void InsertAfter(XmlElement parent, XmlElement child, XmlElement reference) 116internal void InsertBefore(XmlElement parent, XmlElement child, XmlElement reference)
Xml\ProjectXmlUtilities.cs (14)
24internal static List<XmlElement> GetValidChildElements(XmlElement element) 26List<XmlElement> children = new List<XmlElement>(); 38XmlElement childElement = (XmlElement)child; 66internal static void VerifyThrowProjectNoChildElements(XmlElement element) 68List<XmlElement> childElements = GetValidChildElements(element); 86internal static void VerifyThrowElementName(XmlElement element, string expected) 94internal static void VerifyThrowProjectValidNameAndNamespace(XmlElement element) 103internal static void VerifyThrowProjectValidNamespace(XmlElement element) 115internal static void VerifyThrowProjectNoAttributes(XmlElement element) 146internal static XmlAttribute GetConditionAttribute(XmlElement element, bool verifySoleAttribute) 185internal static XmlAttribute SetOrRemoveAttribute(XmlElement element, string name, string value)
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; 690private static XmlDocument CreateLicenseDom(CmiManifestSigner2 signer, XmlElement principal, byte[] hash) 699XmlElement assemblyIdentityNode = licenseDom.SelectSingleNode("r:license/r:grant/as:ManifestInformation/as:assemblyIdentity", nsm) as XmlElement; 706XmlElement manifestInformationNode = licenseDom.SelectSingleNode("r:license/r:grant/as:ManifestInformation", nsm) as XmlElement; 712XmlElement authenticodePublisherNode = licenseDom.SelectSingleNode("r:license/r:grant/as:AuthenticodePublisher/as:X509SubjectName", nsm) as XmlElement; 777XmlElement xmlDigitalSignature = signedXml.GetXml(); 783XmlElement issuerNode = licenseDom.SelectSingleNode("r:license/r:issuer", nsm) as XmlElement; 906XmlElement signatureValueNode = licenseDom.SelectSingleNode("r:license/r:issuer/ds:Signature/ds:SignatureValue", nsm) as XmlElement; 947XmlElement asTimestamp = licenseDom.CreateElement("as", "Timestamp", AuthenticodeNamespaceUri); 950XmlElement dsObject = licenseDom.CreateElement("Object", SignedXml.XmlDsigNamespaceUrl); 953XmlElement signatureNode = licenseDom.SelectSingleNode("r:license/r:issuer/ds:Signature", nsm) as XmlElement; 972XmlElement signatureParent = manifestDom.SelectSingleNode("asm:assembly", nsm) as XmlElement; 1039XmlElement 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)
576public 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 (12)
AssignProjectConfiguration_Tests.cs (6)
126XmlElement element = doc.CreateElement("TestElement"); 147XmlElement element = doc.CreateElement("TestElement"); 166XmlElement element = doc.CreateElement("TestElement"); 189XmlElement element = doc.CreateElement("TestElement"); 209XmlElement element = doc.CreateElement("TestElement"); 233XmlElement element = doc.CreateElement("TestElement");
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.DotNet.SignCheckLibrary (2)
Verification\VsixVerifier.cs (1)
53XmlElement element = packageSignature.Signature.GetXml();
Verification\XmlVerifier.cs (1)
56signedXml.LoadXml((XmlElement)signatureNodes[0]);
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)
639XmlElement nodeGroup = root.ChildNodes[i] as XmlElement; 652XmlElement nodeItem = nodeGroup.ChildNodes[j] as XmlElement; 671XmlElement item = node as XmlElement; 729XmlElement embedItem = null; 734XmlElement nodeItem = xmlProjectDoc.CreateElement(sItemName, root.NamespaceURI); 789XmlElement nodeItem = xmlProjectDoc.CreateElement(property.PropertyName, root.NamespaceURI);
Microsoft\Build\Tasks\Windows\UpdateManifestForBrowserApplication.cs (1)
117XmlElement hostInBrowser;
PresentationFramework (41)
MS\Internal\Annotations\Component\HighlightComponent.cs (1)
489foreach (XmlElement content in contents)
MS\Internal\Annotations\XmlElementCollection.cs (10)
31internal sealed class XmlElementCollection : ObservableCollection<XmlElement> 71foreach (XmlElement item in this) 85XmlElement removedItem = this[index]; 96protected override void InsertItem(int index, XmlElement item) 112protected override void SetItem(int index, XmlElement item) 119XmlElement originalItem = this[index]; 146private void UnregisterForElement(XmlElement element) 176private void RegisterForElement(XmlElement element) 209XmlElement element = null; 222element = current as XmlElement;
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (10)
469SNCAnnotation annotation, XmlToken token, out AnnotationResource cargo, out XmlElement root, out bool newCargo, out bool newRoot) 512private void UpdateAttribute(XmlElement root, XmlToken token, string value) 632private static XmlElement FindRootXmlElement(XmlToken token, AnnotationResource cargo) 636XmlElement element = null; 663foreach (XmlElement node in cargo.Contents) 684XmlElement root = SNCAnnotation.FindRootXmlElement(token, cargo); 736XmlElement root = null; 779XmlElement node = (XmlElement)FindData(token); 801XmlElement root;
MS\Internal\Globalization\BamlTreeMap.cs (4)
597XmlElement element = FindElementByID(_commentsDocument, node.Uid); 649private static XmlElement FindElementByID(XmlDocument doc, string uid) 659XmlElement element = (XmlElement)node;
MS\Internal\Globalization\BamlTreeUpdater.cs (4)
443XmlElement root = doc.FirstChild as XmlElement; 498XmlElement child = node as XmlElement;
MS\Internal\IO\Packaging\XmlGlyphRunInfo.cs (4)
38_glyphsNode = glyphsNode as XmlElement; 167for (XmlElement currentNode = _glyphsNode; 169currentNode = (currentNode.ParentNode as XmlElement)) 251private XmlElement _glyphsNode = null;
System\Windows\Annotations\AnnotationHelper.cs (1)
1040XmlElement colorsElement = doc.CreateElement(HighlightComponent.ColorsContentName, AnnotationXmlConstants.Namespaces.BaseSchemaNamespace);
System\Windows\Annotations\AnnotationResource.cs (4)
152foreach (XmlElement content in _contents) 193XmlElement element = doc.ReadNode(reader) as XmlElement; 311public Collection<XmlElement> Contents
System\Windows\Documents\FixedTextBuilder.cs (3)
1588XmlElement newDumpNode = _dumpDoc.CreateElement(element.Type.Name); 1646_currentDumpNode = (XmlElement) _currentDumpNode.ParentNode; 1815private XmlElement _currentDumpNode;
ReachFramework (57)
PrintConfig\PrintSchemaShim.cs (2)
132XmlElement parameterInitElem = ticket.XmlDoc.CreateElement(PrintSchemaPrefixes.Framework, PrintSchemaTags.Framework.ParameterInit, PrintSchemaNamespaces.Framework); 140XmlElement valueElem = ticket.XmlDoc.CreateElement(PrintSchemaPrefixes.Framework, PrintSchemaTags.Framework.Value, PrintSchemaNamespaces.Framework);
PrintConfig\PrtTicket_Base.cs (36)
69XmlElement parentElement = null; 268XmlElement parentElement = null; 391private PTFeatureNode(PrintTicketFeature ownerFeature, XmlElement featureElement) 407XmlElement parentElement) 413XmlElement featureElement = PrintTicketEditor.GetSchemaElementWithNameAttr(pt, 430XmlElement parentElement) 453XmlElement optionNode = GetFirstOption(); 492XmlElement optionNode = GetFirstOption(); 521XmlElement optionNode = GetFirstOption(); 563XmlElement option = GetFirstOption(); 582XmlElement property = PrintTicketEditor.AddSchemaElementWithNameAttr(pt, 587XmlElement valueNode = PrintTicketEditor.AddSchemaElementWithNameAttr(pt, 610XmlElement optionNode = GetFirstOption(); 642XmlElement option = GetFirstOption(); 661XmlElement property = PrintTicketEditor.AddSchemaElementWithNameAttr(pt, 666XmlElement valueNode = PrintTicketEditor.AddSchemaElementWithNameAttr(pt, 689XmlElement optionNode = GetFirstOption(); 695XmlElement propertyNode = PrintTicketEditor.GetSchemaElementWithNameAttr(pt, 704XmlElement refNode = PrintTicketEditor.GetSchemaElementWithNameAttr(pt, 740XmlElement option = GetFirstOption(); 759XmlElement property = PrintTicketEditor.AddSchemaElementWithNameAttr(pt, 773public XmlElement GetFirstOption() 795public XmlElement FeatureElement 810private string GetOptionPropertyValueText(XmlElement parentOption, string propertyName) 815XmlElement propertyNode = PrintTicketEditor.GetSchemaElementWithNameAttr(pt, 824XmlElement valueNode = PrintTicketEditor.GetSchemaElementWithNameAttr(pt, 852private XmlElement _featureElement; 1200private PrintTicketParameterNode(PrintTicketParameter ownerParameter, XmlElement parameterElement) 1221XmlElement parameterElement = PrintTicketEditor.GetSchemaElementWithNameAttr(pt, 1296XmlElement valueNode = PrintTicketEditor.GetSchemaElementWithNameAttr(pt, 1321public XmlElement SetIntValue(int value) 1323XmlElement valueNode = SetStringValue(value.ToString(CultureInfo.InvariantCulture), 1332public XmlElement SetStringValue(string value, string xsiType) 1343XmlElement valueNode = PrintTicketEditor.AddSchemaElementWithNameAttr(pt, 1368public XmlElement ParameterElement 1381private XmlElement _parameterElement;
PrintConfig\PrtTicket_Editor.cs (19)
46XmlElement root = pt.XmlDoc.DocumentElement; 118string childName = ((XmlElement)rootChild).GetAttribute(PrintSchemaTags.Framework.NameAttr, 153XmlElement root = pt.XmlDoc.DocumentElement; 208public static string AddStdNamespaceDeclaration(XmlElement root, string prefix_header, string nsURI) 240public static XmlElement GetSchemaElementWithNameAttr(InternalPrintTicket pt, 241XmlElement parent, 245XmlElement elementMatched = null; 273string childName = ((XmlElement)child).GetAttribute( 288elementMatched = (XmlElement)child; 304XmlElement parent, 308XmlElement childMatched; 332childMatched = (XmlElement)child; 337string childName = ((XmlElement)child).GetAttribute( 346childMatched = (XmlElement)child; 359public static XmlElement AddSchemaElementWithNameAttr(InternalPrintTicket pt, 360XmlElement parent, 366XmlElement newNode = pt.XmlDoc.CreateElement(prefix, schemaTag, PrintSchemaNamespaces.Framework); 375return (XmlElement)parent.AppendChild(newNode); 379XmlElement valueElement,
System.Configuration.ConfigurationManager (5)
System\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)
1699XmlElement topNode = xdoc.CreateElement(reader.Prefix, reader.LocalName, reader.NamespaceURI); 1842schema.LoadSchema((XmlElement)schNode, this); 2113XmlElement topNode = xdoc.CreateElement(reader.Prefix, reader.LocalName, reader.NamespaceURI); 2239XmlElement root = xdoc.DocumentElement!; 2453XmlElement node = xdoc.CreateElement(reader.Prefix, reader.LocalName, reader.NamespaceURI); 2590XmlElement? topNode = null;
System\Data\DataTable.cs (3)
5813XmlElement topNode = xdoc.CreateElement(reader.Prefix, reader.LocalName, reader.NamespaceURI); 6000XmlElement? topNode = null; 6311XmlElement 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) 337XmlElement e = xdoc.DocumentElement; 366private void LoadRowData(DataRow row, XmlElement rowElement) 398XmlElement e = (XmlElement)n; 509if (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) 585XmlElement rootSchema = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SCHEMA, Keywords.XSDNS); 683XmlElement dsCompositor = FillDataSetElement(xd, ds, dt); 697XmlElement el = HandleTable(top[i], xd, rootSchema); 737XmlElement node = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS); 751XmlElement node = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS); 779XmlElement? nodeAnn = null; 780XmlElement? nodeApp = null; 817XmlElement _import = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_IMPORT, Keywords.XSDNS); 871XmlElement tNode = (XmlElement)_namespaces[ns]!; 886XmlElement _import2 = _dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_IMPORT, Keywords.XSDNS); 941internal XmlElement SchemaTree(XmlDocument xd, DataTable dt) 956XmlElement rootSchema = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SCHEMA, Keywords.XSDNS); 1005XmlElement el = HandleTable(dt, xd, rootSchema, false); 1014internal XmlElement FillDataSetElement(XmlDocument xd, DataSet? ds, DataTable? dt) 1065XmlElement type = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_COMPLEXTYPE, Keywords.XSDNS); 1067XmlElement compositor = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_CHOICE, Keywords.XSDNS); 1113XmlElement rootSchema = SchemaTree(doc, dt); 1147internal XmlElement HandleRelation(DataRelation rel, XmlDocument dc) 1149XmlElement root = dc.CreateElement(Keywords.MSD, Keywords.MSD_RELATION, Keywords.MSDNS); 1203private static XmlElement? FindSimpleType(XmlElement schema, string name) 1207if (n is XmlElement e && e.GetAttribute(Keywords.NAME) == name) 1215internal XmlElement GetSchema(string NamespaceURI) 1217XmlElement? schemaEl = (XmlElement?)_namespaces![NamespaceURI]; 1234internal void HandleColumnType(DataColumn col, XmlDocument dc, XmlElement root, XmlElement schema) 1260XmlElement schNode = GetSchema(nSpace); 1284XmlElement? elmSimpeType = FindSimpleType(schNode, name); 1336internal void AddColumnProperties(DataColumn col, XmlElement root) 1415internal XmlElement HandleColumn(DataColumn col, XmlDocument dc, XmlElement schema, bool fWriteOrdinal) 1420XmlElement root; 1505XmlElement schNode = GetSchema(col.Namespace); 1559internal void AppendChildWithoutRef(string Namespace, XmlElement el) 1561XmlElement schNode = GetSchema(Namespace); 1566internal static XmlElement? FindTypeNode(XmlElement node, string strType) 1573if (!(n is XmlElement)) 1576XmlElement child = (XmlElement)n; 1591internal XmlElement HandleTable(DataTable table, XmlDocument dc, XmlElement schema) 1717internal XmlElement HandleTable(DataTable table, XmlDocument dc, XmlElement schema, bool genNested) 1723XmlElement root = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS); 1825XmlElement type = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_COMPLEXTYPE, Keywords.XSDNS); 1829XmlElement typeSchema = GetSchema(table.TypeName.Namespace); 1854XmlElement? compositor; 1860XmlElement sc = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SIMPLECONTENT, Keywords.XSDNS); 1880XmlElement ext = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_EXTENSION, Keywords.XSDNS); 1903XmlElement el = HandleColumn(col, dc, schema, fWriteOrdinals); 1905XmlElement node = isAttribute ? type : compositor; 1917XmlElement NestedTable; 1960XmlElement nodeAnn = _dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ANNOTATION, Keywords.XSDNS); 1963XmlElement nodeApp = _dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_APPINFO, Keywords.XSDNS); 1978XmlElement selector, field; 1988XmlElement? constraint; 2221private 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) 867HandleRelation((XmlElement)relations[i], fNested);
System\Xml\DataPointer.cs (1)
610return ((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)
244XmlElement element; 248element = (XmlElement)(base.CloneNode(deep));
System\Xml\XmlDataDocument.cs (28)
345public override XmlElement CreateElement(string? prefix, string localName, string? namespaceURI) 469private XmlElement EnsureDocumentElement() 471XmlElement? docelem = DocumentElement; 488private XmlElement EnsureNonRowDocumentElement() 490XmlElement? docElem = DocumentElement; 502private XmlElement DemoteDocumentElement() 510XmlElement oldDocElem = DocumentElement!; 512XmlElement docElem = EnsureDocumentElement(); 559private void FixNestedChildren(DataRow row, XmlElement rowElement) 565XmlElement? childElem = r.Element; 632private void Foliate(XmlElement element) 640private void FoliateIfDataPointers(XmlElement rowElement) 787XmlElement? e = node as XmlElement; 862public DataRow? GetRowFromElement(XmlElement? e) 867private XmlElement? GetRowInsertBeforeLocation(DataRow row, XmlNode parentElement) 898public XmlElement GetElementFromRow(DataRow r) 944private bool IsFoliated(XmlElement element) 1534XmlElement e = (XmlElement)iter.CurrentNode; 1757parentRowInTree = GetRowFromElement((XmlElement)childElement.ParentNode); 1764XmlElement newParent = GetElementFromRow(parentRowInRelation); 2099XmlElement rowElement = GetElementFromRow(row); 2258private void OnUndeleteRow(DataRow row, XmlElement rowElement) 2261XmlElement parent; 2522XmlElement? e = iter.CurrentNode as XmlElement; 3088public override XmlElement? GetElementById(string elemId)
System\Xml\XPathNodePointer.cs (2)
136return ((XmlElement)_node).IsEmpty; 355XmlElement? 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) 355return (XmlElement?)XmlDoc.ReadNode(XmlReader.Create(new StringReader(stringWriter.ToString()))); 365XmlElement? genericInfoElement = null, isDictionaryElement = null; 413private XmlElement ExportIsDictionary() 415XmlElement isDictionaryElement = XmlDoc.CreateElement(IsDictionaryAnnotationName.Name, IsDictionaryAnnotationName.Namespace); 426XmlElement? actualTypeElement = (enumDataContract.BaseContractName == DefaultEnumBaseTypeName) ? null : ExportActualType(enumDataContract.BaseContractName); 468XmlElement? genericInfoElement = null; 472XmlElement? isValueTypeElement = null; 806XmlElement annotationElement = GetAnnotationMarkup(annotationQualifiedName, innerText, schema); 833private XmlElement GetAnnotationMarkup(XmlQualifiedName annotationQualifiedName, string innerText, XmlSchema schema) 835XmlElement 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)
244if (o is XmlElement elem)
System\Xml\Serialization\Types.cs (1)
870else if (typeof(XmlElement).IsAssignableFrom(type))
System\Xml\Serialization\XmlReflectionImporter.cs (3)
1660Type targetType = typeof(IXmlSerializable).IsAssignableFrom(arrayElementType) ? arrayElementType : typeof(XmlNode).IsAssignableFrom(arrayElementType) ? arrayElementType : typeof(XmlElement); 1901Type targetType = typeof(IXmlSerializable).IsAssignableFrom(accessorType) ? accessorType : typeof(XmlNode).IsAssignableFrom(accessorType) ? accessorType : typeof(XmlElement); 2073if (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)
1174mapping.TypeDesc = Scope.GetTypeDesc(makeElement ? typeof(XmlElement) : typeof(XmlNode)); 1351mapping.TypeDesc = Scope.GetTypeDesc(typeof(XmlElement)); 1360mapping.TypeDesc = Scope.GetTypeDesc(mixed ? typeof(XmlNode) : typeof(XmlElement)); 1490if (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); 1880XmlElement? unknownElement = unknownNode as XmlElement;
System\Xml\Serialization\XmlSerializationWriter.cs (2)
793if (node is XmlElement && name != null && name.Length > 0) 3736string fullTypeName = typeof(XmlElement).FullName!;
System\Xml\Serialization\XmlSerializationWriterILGen.cs (3)
1687ilg.IsInst(typeof(XmlElement)); 1692LocalBuilder elemLoc = ilg.DeclareLocal(typeof(XmlElement), "elem"); 1693source.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)
206public override XmlElement GetXml() 213internal override XmlElement GetXml(XmlDocument xmlDocument) 215XmlElement x509DataElement = xmlDocument.CreateElement("X509Data", SignedXml.XmlDsigNamespaceUrl); 221XmlElement issuerSerialElement = xmlDocument.CreateElement("X509IssuerSerial", SignedXml.XmlDsigNamespaceUrl); 222XmlElement issuerNameElement = xmlDocument.CreateElement("X509IssuerName", SignedXml.XmlDsigNamespaceUrl); 225XmlElement serialNumberElement = xmlDocument.CreateElement("X509SerialNumber", SignedXml.XmlDsigNamespaceUrl); 236XmlElement subjectKeyIdElement = xmlDocument.CreateElement("X509SKI", SignedXml.XmlDsigNamespaceUrl); 246XmlElement subjectNameElement = xmlDocument.CreateElement("X509SubjectName", SignedXml.XmlDsigNamespaceUrl); 256XmlElement x509Element = xmlDocument.CreateElement("X509Certificate", SignedXml.XmlDsigNamespaceUrl); 264XmlElement crlElement = xmlDocument.CreateElement("X509CRL", SignedXml.XmlDsigNamespaceUrl); 272public 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)
190foreach (XmlElement parameter in WSTrustTokenParameters.AdditionalRequestParameters) 192trustRequest.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.ServiceModel.Primitives (134)
System\IdentityModel\Security\WSTrust.cs (1)
159protected static bool CheckElement(XmlElement element, string name, string ns, out string value)
System\IdentityModel\Tokens\GenericXmlSecurityKeyIdentifierClause.cs (4)
12public GenericXmlSecurityKeyIdentifierClause(XmlElement referenceXml) 17public GenericXmlSecurityKeyIdentifierClause(XmlElement referenceXml, byte[] derivationNonce, int derivationLength) 23public XmlElement ReferenceXml { get; } 31private bool Matches(XmlElement xmlElement)
System\IdentityModel\Tokens\GenericXmlSecurityToken.cs (3)
22XmlElement tokenXml, 66public XmlElement TokenXml { get; } 107private static string GetId(XmlElement tokenXml)
System\ServiceModel\Channels\ReliableSessionBindingElement.cs (1)
417private static XmlElement CreatePolicyElement(PolicyVersion policyVersion, XmlDocument doc)
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (2)
213XmlElement xmlElement = (XmlElement)valueToSerialize;
System\ServiceModel\Dispatcher\OperationFormatter.cs (2)
929protected XmlElement headerValue; 930public XmlElementMessageHeader(OperationFormatter operationFormatter, MessageVersion version, string name, string ns, bool mustUnderstand, string actor, bool relay, XmlElement headerValue) :
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (8)
99foreach (XmlElement element in doc.DocumentElement.ChildNodes) 128XmlElement element = (XmlElement)GetContentOfMessageHeaderOfT(unknownHeaderDescription, unknownHeader, out mustUnderstand, out relay, out actor); 180parameters[unknownHeaderDescription.Index] = unknownHeaders.ToArray(unknownHeaderDescription.TypedHeader ? typeof(MessageHeader<XmlElement>) : typeof(XmlElement)); 264parameters[unknownHeaderDescription.Index] = unknownHeaders.ToArray(unknownHeaderDescription.TypedHeader ? typeof(MessageHeader<XmlElement>) : typeof(XmlElement)); 281((XmlElement)unknownHeader).WriteTo(bufferWriter);
System\ServiceModel\Security\RequestSecurityToken.cs (11)
26private XmlElement _rstXml; 27private IList<XmlElement> _requestProperties; 55XmlElement requestSecurityTokenXml, 73public RequestSecurityToken(XmlElement requestSecurityTokenXml, 92XmlElement rstXml, 218public IEnumerable<XmlElement> RequestProperties 238Collection<XmlElement> coll = new Collection<XmlElement>(); 239foreach (XmlElement property in value) 309public XmlElement RequestSecurityTokenXml 474_requestProperties = new ReadOnlyCollection<XmlElement>(_requestProperties);
System\ServiceModel\Security\RequestSecurityTokenResponse.cs (5)
36private XmlElement _rstrXml; 60public RequestSecurityTokenResponse(XmlElement requestSecurityTokenResponseXml, 87XmlElement requestSecurityTokenResponseXml, 125XmlElement rstrXml, 372public XmlElement RequestSecurityTokenResponseXml
System\ServiceModel\Security\SecurityStandardsManager.cs (2)
118internal bool TryCreateKeyIdentifierClauseFromTokenXml(XmlElement element, SecurityTokenReferenceStyle tokenReferenceStyle, out SecurityKeyIdentifierClause securityKeyIdentifierClause) 124internal SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXml(XmlElement element, SecurityTokenReferenceStyle tokenReferenceStyle)
System\ServiceModel\Security\Tokens\BufferedGenericXmlSecurityToken.cs (1)
15XmlElement tokenXml,
System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (4)
40foreach (XmlElement parameter in other.AdditionalRequestParameters) 42AdditionalRequestParameters.Add((XmlElement)parameter.Clone()); 83public Collection<XmlElement> AdditionalRequestParameters { get; } = new Collection<XmlElement>();
System\ServiceModel\Security\WSSecureConversation.cs (6)
86public override SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXmlCore(XmlElement issuedTokenXml, 319public override SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXmlCore(XmlElement issuedTokenXml, 334XmlElement element = node as XmlElement; 354protected abstract bool CanReadGeneration(XmlElement element); 356protected abstract UniqueId ReadGeneration(XmlElement element);
System\ServiceModel\Security\WSSecureConversationDec2005.cs (2)
75protected override bool CanReadGeneration(XmlElement element) 86protected override UniqueId ReadGeneration(XmlElement element)
System\ServiceModel\Security\WSSecureConversationFeb2005.cs (2)
60protected override bool CanReadGeneration(XmlElement element) 71protected override UniqueId ReadGeneration(XmlElement element)
System\ServiceModel\Security\WSSecurityJan2004.cs (4)
98public override SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXmlCore(XmlElement issuedTokenXml, 201public override bool CanReadTokenCore(XmlElement element) 211public override SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXmlCore(XmlElement issuedTokenXml, 255public override SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXmlCore(XmlElement issuedTokenXml,
System\ServiceModel\Security\WSSecurityTokenSerializer.cs (5)
375public virtual bool TryCreateKeyIdentifierClauseFromTokenXml(XmlElement element, SecurityTokenReferenceStyle tokenReferenceStyle, out SecurityKeyIdentifierClause securityKeyIdentifierClause) 396public virtual SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXml(XmlElement element, SecurityTokenReferenceStyle tokenReferenceStyle) 465protected static SecurityKeyIdentifierClause CreateDirectReference(XmlElement issuedTokenXml, string idAttributeLocalName, string idAttributeNamespace, Type tokenType) 475public virtual bool CanReadTokenCore(XmlElement element) 498public abstract SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXmlCore(XmlElement issuedTokenXml, SecurityTokenReferenceStyle tokenReferenceStyle);
System\ServiceModel\Security\WSTrust.cs (46)
75public override bool CanReadTokenCore(XmlElement element) 94public override SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXmlCore(XmlElement issuedTokenXml, 229XmlElement rstXml = (doc.ReadNode(reader) as XmlElement); 242XmlElement child = (rstXml.ChildNodes[i] as XmlElement); 317XmlElement rstrXml; 320rstrXml = (doc.ReadNode(reader2) as XmlElement); 344XmlElement child = (rstrXml.ChildNodes[i] as XmlElement); 357XmlElement proofXml = XmlHelper.GetChildElement(child); 370XmlElement createdXml = XmlHelper.GetChildElement(child, UtilityStrings.CreatedElement, UtilityStrings.Namespace); 376XmlElement expiresXml = XmlHelper.GetChildElement(child, UtilityStrings.ExpiresElement, UtilityStrings.Namespace); 413private T GetAppliesTo<T>(XmlElement rootXml, XmlObjectSerializer serializer) 449XmlElement element = rstr.RequestSecurityTokenResponseXml.ChildNodes[i] as XmlElement; 454XmlElement combinedHashElement = XmlHelper.GetChildElement(element); 487private BinaryNegotiation GetBinaryNegotiation(XmlElement rootElement) 495XmlElement elem = rootElement.ChildNodes[i] as XmlElement; 527private SecurityToken GetEntropy(XmlElement rootElement, SecurityTokenResolver resolver) 535XmlElement element = rootElement.ChildNodes[i] as XmlElement; 540XmlElement tokenXml = XmlHelper.GetChildElement(element); 554private void GetIssuedAndProofXml(RequestSecurityTokenResponse rstr, out XmlElement issuedTokenXml, out XmlElement proofTokenXml) 562XmlElement elem = rstr.RequestSecurityTokenResponseXml.ChildNodes[i] as XmlElement; 627XmlElement proofXml; 628XmlElement issuedTokenXml; 753public static BinaryNegotiation ReadBinaryNegotiation(XmlElement elem) 806protected virtual void ReadReferences(XmlElement rstrXml, out SecurityKeyIdentifierClause requestedAttachedReference, 809XmlElement issuedTokenXml = null; 814XmlElement child = rstrXml.ChildNodes[i] as XmlElement; 877internal SecurityKeyIdentifierClause CreateGenericXmlSecurityKeyIdentifierClause(XmlNodeReader reader, XmlElement keyIdentifierReferenceXmlElement) 891internal SecurityKeyIdentifierClause GetKeyIdentifierXmlReferenceClause(XmlElement keyIdentifierReferenceXmlElement) 903protected virtual bool ReadRequestedTokenClosed(XmlElement rstrXml) 908protected virtual void ReadTargets(XmlElement rstXml, out SecurityKeyIdentifierClause renewTarget, out SecurityKeyIdentifierClause closeTarget) 1005foreach (XmlElement property in rst.RequestProperties) 1201public bool TryParseSymmetricKeyElement(XmlElement element) 1213private XmlElement CreateSymmetricKeyTypeElement() 1216XmlElement result = doc.CreateElement(DriverDictionary.Prefix.Value, DriverDictionary.KeyType.Value, 1222private bool TryParsePublicKeyElement(XmlElement element) 1234private XmlElement CreatePublicKeyTypeElement() 1237XmlElement result = doc.CreateElement(DriverDictionary.Prefix.Value, DriverDictionary.KeyType.Value,
System\ServiceModel\Security\WSTrustDec2005.cs (3)
44internal virtual bool IsSecondaryParametersElement(XmlElement element) 50public virtual XmlElement CreateKeyWrapAlgorithmElement(string keyWrapAlgorithm) 58XmlElement result = doc.CreateElement(DXD.TrustDec2005Dictionary.Prefix.Value, DXD.TrustDec2005Dictionary.KeyWrapAlgorithm.Value,
System\ServiceModel\Security\WSTrustFeb2005.cs (10)
94protected override void ReadReferences(XmlElement rstrXml, out SecurityKeyIdentifierClause requestedAttachedReference, 97XmlElement issuedTokenXml = null; 102XmlElement child = rstrXml.ChildNodes[i] as XmlElement; 140protected override bool ReadRequestedTokenClosed(XmlElement rstrXml) 144XmlElement child = (rstrXml.ChildNodes[i] as XmlElement); 156protected override void ReadTargets(XmlElement rstXml, out SecurityKeyIdentifierClause renewTarget, out SecurityKeyIdentifierClause closeTarget) 163XmlElement child = (rstXml.ChildNodes[i] as XmlElement);
System\ServiceModel\Security\XmlHelper.cs (12)
48internal static XmlElement GetChildElement(XmlElement parent) 55XmlElement result = null; 65result = ((XmlElement)child); 81internal static XmlElement GetChildElement(XmlElement parent, string childLocalName, string childNamespace) 100return ((XmlElement)child); 174internal static void OnChildNodeTypeMissing(XmlElement parent, XmlNodeType expectedNodeType) 184internal static void OnEmptyElementError(XmlElement e) 214internal static void OnUnexpectedChildNodeError(XmlElement parent, XmlNode n) 266internal static string ReadTextElementAsTrimmedString(XmlElement element) 413static public UniqueId ReadTextElementAsUniqueId(XmlElement element)
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\net9.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))]