2 types derived from XmlElement
System.Configuration (1)
System\Configuration\ConfigXmlElement.cs (1)
14internal sealed class ConfigXmlElement : XmlElement, IConfigErrorInfo {
System.Data (1)
fx\src\data\System\NewXml\XmlBoundElement.cs (1)
22internal sealed class XmlBoundElement: XmlElement {
2 instantiations of XmlElement
System.Xml (2)
System\Xml\Dom\XmlDocument.cs (1)
890XmlElement elem = new XmlElement( AddXmlName( prefix, localName, namespaceURI, null ), true, this );
System\Xml\Dom\XmlLoader.cs (1)
411XmlElement element = new XmlElement( reader.Prefix, reader.LocalName, reader.NamespaceURI, this.doc );
1818 references to XmlElement
PresentationBuildTasks (9)
BuildTasks\Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (8)
395XmlElement nodeGroup = root.ChildNodes[i] as XmlElement; 408XmlElement nodeItem = nodeGroup.ChildNodes[j] as XmlElement; 427XmlElement item = node as XmlElement; 470XmlElement embedItem = null; 475XmlElement nodeItem = xmlProjectDoc.CreateElement(sItemName, root.NamespaceURI);
BuildTasks\Microsoft\Build\Tasks\Windows\UpdateManifestForBrowserApplication.cs (1)
122XmlElement hostInBrowser;
PresentationFramework (38)
src\Framework\MS\Internal\Annotations\Component\HighlightComponent.cs (1)
508foreach (XmlElement content in contents)
src\Framework\MS\Internal\Annotations\XmlElementCollection.cs (10)
34internal sealed class XmlElementCollection : ObservableCollection<XmlElement> 74foreach (XmlElement item in this) 88XmlElement removedItem = this[index]; 99protected override void InsertItem(int index, XmlElement item) 115protected override void SetItem(int index, XmlElement item) 122XmlElement originalItem = this[index]; 149private void UnregisterForElement(XmlElement element) 179private void RegisterForElement(XmlElement element) 212XmlElement element = null; 225element = current as XmlElement;
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (10)
475SNCAnnotation annotation, XmlToken token, out AnnotationResource cargo, out XmlElement root, out bool newCargo, out bool newRoot) 518private void UpdateAttribute(XmlElement root, XmlToken token, string value) 638private static XmlElement FindRootXmlElement(XmlToken token, AnnotationResource cargo) 642XmlElement element = null; 669foreach (XmlElement node in cargo.Contents) 690XmlElement root = SNCAnnotation.FindRootXmlElement(token, cargo); 743XmlElement root = null; 786XmlElement node = (XmlElement)FindData(token); 808XmlElement root;
src\Framework\MS\Internal\Globalization\BamlTreeMap.cs (4)
602XmlElement element = FindElementByID(_commentsDocument, node.Uid); 654private static XmlElement FindElementByID(XmlDocument doc, string uid) 664XmlElement element = (XmlElement) node;
src\Framework\MS\Internal\Globalization\BamlTreeUpdater.cs (4)
442XmlElement root = doc.FirstChild as XmlElement; 497XmlElement child = node as XmlElement;
src\Framework\MS\Internal\IO\Packaging\XmlGlyphRunInfo.cs (4)
44_glyphsNode = glyphsNode as XmlElement; 173for (XmlElement currentNode = _glyphsNode; 175currentNode = (currentNode.ParentNode as XmlElement)) 257private XmlElement _glyphsNode = null;
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (1)
1048XmlElement colorsElement = doc.CreateElement(HighlightComponent.ColorsContentName, AnnotationXmlConstants.Namespaces.BaseSchemaNamespace);
src\Framework\System\Windows\Annotations\AnnotationResource.cs (4)
171foreach (XmlElement content in _contents) 215XmlElement element = doc.ReadNode(reader) as XmlElement; 333public Collection<XmlElement> Contents
System.Activities.Core.Presentation (1)
System\ServiceModel\Activities\Presentation\ContentCorrelationTypeExpander.xaml.cs (1)
63typeof(XmlElement),
System.Configuration (2)
System\Configuration\ErrorInfoXmlDocument.cs (1)
92public override XmlElement CreateElement( string prefix, string localName, string namespaceUri) {
System\Configuration\RSAProtectedConfigurationProvider.cs (1)
52XmlElement inputElement;
System.Data (170)
fx\src\data\System\Data\DataSet.cs (6)
1590XmlElement topNode = xdoc.CreateElement(reader.Prefix, reader.LocalName, reader.NamespaceURI); 1707schema.LoadSchema((XmlElement)schNode, this); 1957XmlElement topNode = xdoc.CreateElement(reader.Prefix, reader.LocalName, reader.NamespaceURI); 2061XmlElement root = xdoc.DocumentElement; 2243XmlElement node = xdoc.CreateElement(reader.Prefix, reader.LocalName, reader.NamespaceURI); 2358XmlElement topNode = null;
fx\src\data\System\Data\DataTable.cs (3)
5211XmlElement topNode = xdoc.CreateElement(reader.Prefix, reader.LocalName, reader.NamespaceURI); 5368XmlElement topNode = null; 5616XmlElement node = xdoc.CreateElement(reader.Prefix, reader.LocalName, reader.NamespaceURI);
fx\src\data\System\Data\SimpleType.cs (3)
248XmlElement typeNode = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SIMPLETYPE, Keywords.XSDNS); 257XmlElement type = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_RESTRICTION, Keywords.XSDNS); 282XmlElement constraint;
fx\src\data\System\Data\XDRSchema.cs (28)
22internal XmlElement _schemaRoot; 34internal void LoadSchema(XmlElement schemaRoot, DataSet ds) { 55if (!(n is XmlElement)) 58XmlElement child = (XmlElement) n; 71internal XmlElement FindTypeNode(XmlElement node) { 101if (vn is XmlElement && ((XmlElement)vn).GetAttribute(Keywords.NAME) == strType) 102return(XmlElement)vn; 127internal bool IsTextOnlyContent(XmlElement node) { 148internal bool IsXDRField(XmlElement node, XmlElement typeNode) { 170internal DataTable HandleTable(XmlElement node) { 171XmlElement typeNode; 294internal string GetInstanceName(XmlElement node) { 313internal void HandleColumn(XmlElement node, DataTable table) { 359XmlElement typeNode = FindTypeNode(node); 452internal void GetMinMax(XmlElement elNode, ref int minOccurs, ref int maxOccurs) { 458internal void GetMinMax(XmlElement elNode, bool isAttribute, ref int minOccurs, ref int maxOccurs) { 500internal void HandleTypeNode(XmlElement typeNode, DataTable table, ArrayList tableChildren) 506if (!(n is XmlElement)) 512tableChild = HandleTable((XmlElement) n); 521HandleColumn((XmlElement) n, table); 532internal DataTable InstantiateTable(DataSet dataSet, XmlElement node, XmlElement typeNode) { 617internal DataTable InstantiateSimpleTable(DataSet dataSet, XmlElement node) { 639HandleColumn((XmlElement) node, table);
fx\src\data\System\Data\XmlDataLoader.cs (15)
30XmlElement topMostNode = null; 45internal XmlDataLoader( DataSet dataset, bool IsXdr, XmlElement topNode, bool ignoreSchema) { 68internal XmlDataLoader( DataTable datatable, bool IsXdr, XmlElement topNode, bool ignoreSchema) { 99XmlElement e = (XmlElement) n; 198internal DataRow GetRowFromElement( XmlElement e ) { 202internal bool FColumnElement(XmlElement e) { 210if (tabNode is XmlElement) 313XmlElement e = xdoc.DocumentElement; 339private void LoadRowData(DataRow row, XmlElement rowElement) { 367XmlElement e = (XmlElement) n; 461if (n is XmlElement) { 462XmlElement e = (XmlElement) n;
fx\src\data\System\Data\xmlsaver.cs (73)
44XmlElement _sRoot; 50XmlElement dsElement = null; 51XmlElement constraintSeparator = null; 64internal static void AddExtendedProperties(PropertyCollection props, XmlElement node) { 68internal static void AddExtendedProperties(PropertyCollection props, XmlElement node, Type type) { 102internal void AddXdoProperties(Object instance, XmlElement root, XmlDocument xd) { 119internal void AddXdoProperty(PropertyDescriptor pd, Object instance, XmlElement root, XmlDocument xd) { 329internal void WriteSchemaRoot(XmlDocument xd, XmlElement rootSchema, string targetNamespace) { 502XmlElement rootSchema = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SCHEMA, Keywords.XSDNS); 586XmlElement dsCompositor = FillDataSetElement(xd, ds, dt); 598XmlElement el = HandleTable(top[i], xd, rootSchema); 629XmlElement node = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS); 642XmlElement node = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS); 667XmlElement nodeAnn = null; 668XmlElement nodeApp = null; 698XmlElement _import = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_IMPORT, Keywords.XSDNS); 742XmlElement tNode = (XmlElement) namespaces[ns] ; 755XmlElement _import2 = _dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_IMPORT, Keywords.XSDNS); 801internal XmlElement SchemaTree(XmlDocument xd, DataTable dt) { 814XmlElement rootSchema = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SCHEMA, Keywords.XSDNS); 818XmlElement dsCompositor = FillDataSetElement(xd, null, dt); 856XmlElement el = HandleTable(dt, xd, rootSchema, false); 865internal XmlElement FillDataSetElement(XmlDocument xd, DataSet ds, DataTable dt) { 902XmlElement type = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_COMPLEXTYPE, Keywords.XSDNS); 904XmlElement compositor = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_CHOICE, Keywords.XSDNS); 943XmlElement rootSchema = SchemaTree(doc, dt); 971internal XmlElement HandleRelation(DataRelation rel, XmlDocument dc) { 972XmlElement root = dc.CreateElement(Keywords.MSD, Keywords.MSD_RELATION, Keywords.MSDNS); 1020private static XmlElement FindSimpleType(XmlElement schema, string name) { 1022if (n is XmlElement) { 1023XmlElement e = (XmlElement) n; 1032internal XmlElement GetSchema(string NamespaceURI) { 1033XmlElement schemaEl = (XmlElement) namespaces[NamespaceURI]; 1048internal void HandleColumnType(DataColumn col, XmlDocument dc, XmlElement root, XmlElement schema) { 1068XmlElement schNode= GetSchema(nSpace); 1090XmlElement elmSimpeType = FindSimpleType(schNode, name); 1133internal void AddColumnProperties(DataColumn col, XmlElement root){ 1200internal XmlElement HandleColumn(DataColumn col, XmlDocument dc, XmlElement schema, bool fWriteOrdinal) { 1201XmlElement root; 1275XmlElement schNode = GetSchema(col.Namespace); 1282XmlElement tNode = GetSchema(col.Table.Namespace); 1328internal void AppendChildWithoutRef(XmlElement node, string Namespace, XmlElement el, string refString) { 1329XmlElement schNode = GetSchema(Namespace); 1334internal XmlElement FindTypeNode(XmlElement node, string strType) { 1339if (!(n is XmlElement)) 1342XmlElement child = (XmlElement) n; 1355internal XmlElement HandleTable(DataTable table, XmlDocument dc, XmlElement schema) { 1473internal XmlElement HandleTable(DataTable table, XmlDocument dc, XmlElement schema, bool genNested) { 1474XmlElement root = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS); 1562XmlElement type = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_COMPLEXTYPE, Keywords.XSDNS); 1565XmlElement typeSchema = GetSchema(table.TypeName.Namespace); 1589XmlElement compositor = null; 1594XmlElement sc = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SIMPLECONTENT , Keywords.XSDNS); 1614XmlElement ext = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_EXTENSION, Keywords.XSDNS); 1635XmlElement el = HandleColumn(col, dc, schema, fWriteOrdinals); 1637XmlElement node = isAttribute ? type : compositor; 1648XmlElement NestedTable; 1686XmlElement nodeAnn = _dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ANNOTATION, Keywords.XSDNS); 1689XmlElement nodeApp = _dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_APPINFO, Keywords.XSDNS); 1706XmlElement selector, field; 1714XmlElement constraint = null; 1924private void SetMSDataAttribute(XmlElement root, Type type)
fx\src\data\System\Data\XMLSchema.cs (3)
81internal static bool GetBooleanAttribute(XmlElement element, String attrName, String attrNS, bool defVal) { 366internal void HandleRelation(XmlElement node, bool fNested) { 743HandleRelation((XmlElement)relations[i], fNested);
fx\src\data\System\NewXml\DataPointer.cs (1)
495return((XmlElement)node).IsEmpty;
fx\src\data\System\NewXml\DataSetMappper.cs (5)
155internal DataTable GetTableSchemaForElement( XmlElement elem ) { 183internal DataRow GetRowFromElement( XmlElement e ) { 266XmlElement e = n as XmlElement; 306DataRow row = GetRowFromElement( (XmlElement)n );
fx\src\data\System\NewXml\XmlBoundElement.cs (2)
189XmlElement element; 192element = (XmlElement)(base.CloneNode( deep ));
fx\src\data\System\NewXml\XmlDataDocument.cs (29)
305public override XmlElement CreateElement( string prefix, string localName, string namespaceURI) { 425private XmlElement EnsureDocumentElement() { 426XmlElement docelem = DocumentElement; 440private XmlElement EnsureNonRowDocumentElement() { 441XmlElement docElem = this.DocumentElement; 451private XmlElement DemoteDocumentElement() { 458XmlElement oldDocElem = this.DocumentElement; 460XmlElement docElem = EnsureDocumentElement(); 504private void FixNestedChildren(DataRow row, XmlElement rowElement) { 507XmlElement childElem = r.Element; 564private void Foliate( XmlElement element ) { 570private void FoliateIfDataPointers( DataRow row, XmlElement rowElement ) { 688XmlElement e = node as XmlElement; 759public DataRow GetRowFromElement( XmlElement e ) { 763private XmlNode GetRowInsertBeforeLocation(DataRow row, XmlElement rowElement, XmlNode parentElement) { 793public XmlElement GetElementFromRow( DataRow r ) { 836private bool IsFoliated( XmlElement element ) { 1357XmlElement e = (XmlElement) iter.CurrentNode; 1390XmlElement newElem = new XmlBoundElement( string.Empty, col.EncodedColumnName, col.Namespace, this ); 1548parentRowInTree = GetRowFromElement( (XmlElement) childElement.ParentNode ); 1555XmlElement newParent = GetElementFromRow( parentRowInRelation ); 1860XmlElement rowElement = GetElementFromRow( row ); 2004private void OnUndeleteRow( DataRow row, XmlElement rowElement ) { 2006XmlElement parent; 2246XmlElement e = iter.CurrentNode as XmlElement; 2722public override XmlElement GetElementById( string elemId ) {
fx\src\data\System\NewXml\XPathNodePointer.cs (2)
140return((XmlElement)_node).IsEmpty; 322XmlElement rootElem = ((XmlDocument)this._node).DocumentElement;
System.Data.Entity.Design (11)
System\Data\Entity\Design\AspNet\EntityDesignerBuildProvider.cs (4)
57XmlElement conceptualSchemaElement; 58XmlElement mappingElement; 59XmlElement storageSchemaElement; 92BuildProvider prov, XmlElement xmlElement, string resourceName)
System\Data\Entity\Design\EntityDesignerUtils.cs (7)
57out XmlElement conceptualSchemaNode, out XmlElement mappingNode, out XmlElement storageSchemaNode, out string metadataArtifactProcessingValue) 83conceptualSchemaNode = (XmlElement)xmlDocument.SelectSingleNode( 87storageSchemaNode = (XmlElement)xmlDocument.SelectSingleNode( 91mappingNode = (XmlElement)xmlDocument.SelectSingleNode( 124internal static void OutputXmlElementToStream(XmlElement xmlElement, Stream stream)
System.IdentityModel (56)
System\IdentityModel\Configuration\ConfigurationElementInterceptor.cs (1)
57public XmlElement ElementAsXml
System\IdentityModel\Protocols\WSTrust\EndpointReference.cs (4)
14Collection<XmlElement> _details = new Collection<XmlElement>(); 18public Collection<XmlElement> Details 63foreach ( XmlElement element in _details )
System\IdentityModel\Protocols\WSTrust\RequestedSecurityToken.cs (3)
19XmlElement _tokenAsXml; 42public RequestedSecurityToken(XmlElement tokenAsXml) 57public virtual XmlElement SecurityTokenXml
System\IdentityModel\Protocols\WSTrust\WSTrustSerializationHelper.cs (3)
2778public static XmlElement ReadInnerXml(XmlReader reader) 2783public static XmlElement ReadInnerXml(XmlReader reader, bool onStartElement) 2805XmlElement securityTokenXml;
System\IdentityModel\Tokens\ConfigurationBasedIssuerNameRegistry.cs (4)
58List<XmlElement> configNodes = XmlUtil.GetXmlElements(customConfiguration); 65XmlElement customConfigElement = configNodes[0]; 74XmlElement childElement = node as XmlElement;
System\IdentityModel\Tokens\GenericXmlSecurityKeyIdentifierClause.cs (5)
8XmlElement referenceXml; 10public GenericXmlSecurityKeyIdentifierClause(XmlElement referenceXml) 15public GenericXmlSecurityKeyIdentifierClause(XmlElement referenceXml, byte[] derivationNonce, int derivationLength) 25public XmlElement ReferenceXml 39private bool Matches(XmlElement xmlElement)
System\IdentityModel\Tokens\GenericXmlSecurityToken.cs (4)
26XmlElement tokenXml; 32XmlElement tokenXml, 82public XmlElement TokenXml 122static string GetId(XmlElement tokenXml)
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (2)
88List<XmlElement> configNodes = XmlUtil.GetXmlElements(customConfigElements); 92foreach (XmlElement configElement in configNodes)
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (2)
93List<XmlElement> configNodes = XmlUtil.GetXmlElements(customConfigElements); 97foreach (XmlElement configElement in configNodes)
System\IdentityModel\Tokens\SamlSecurityTokenRequirement.cs (3)
49public SamlSecurityTokenRequirement(XmlElement element) 171List<XmlElement> configElements = XmlUtil.GetXmlElements(element.ChildNodes); 173foreach (XmlElement childElement in configElements)
System\IdentityModel\Tokens\SecurityTokenElement.cs (8)
26XmlElement _securityTokenXml; 59/// <param name="securityTokenXml">The <see cref="XmlElement"/> representation of the security token.</param> 62public SecurityTokenElement(XmlElement securityTokenXml, SecurityTokenHandlerCollection securityTokenHandlers) 82/// <see cref="SecurityTokenElement(XmlElement, SecurityTokenHandlerCollection)"/>. 84public XmlElement SecurityTokenXml 128/// <param name="securityTokenXml">The <see cref="XmlElement"/> representation of the security token.</param> 133protected virtual ReadOnlyCollection<ClaimsIdentity> ValidateToken(XmlElement securityTokenXml, SecurityTokenHandlerCollection securityTokenHandlers) 151protected virtual SecurityToken ReadSecurityToken(XmlElement securityTokenXml,
System\IdentityModel\Tokens\SessionSecurityTokenHandler.cs (2)
101List<XmlElement> configNodes = XmlUtil.GetXmlElements(customConfigElements); 105foreach (XmlElement customConfigElement in configNodes)
System\IdentityModel\Tokens\WSTrust.cs (1)
167protected static bool CheckElement(XmlElement element, string name, string ns, out string value)
System\IdentityModel\Tokens\X509SecurityTokenHandler.cs (2)
97List<XmlElement> configNodes = XmlUtil.GetXmlElements(customConfigElements); 107foreach (XmlElement customConfigElement in configNodes)
System\IdentityModel\XmlHelper.cs (2)
68internal static string ReadTextElementAsTrimmedString(XmlElement element) 90internal static void OnUnexpectedChildNodeError(XmlElement parent, XmlNode n)
System\IdentityModel\XmlUtil.cs (5)
252public static List<XmlElement> GetXmlElements(XmlNodeList nodeList) 259List<XmlElement> xmlElements = new List<XmlElement>(); 262XmlElement tempElement = node as XmlElement;
System\ServiceModel\Security\EncryptedType.cs (4)
239XmlElement xml = null; 246xml = (doc.ReadNode(reader) as XmlElement); 302XmlElement keyIdentifierReferenceXml = (doc.ReadNode(localReader) as XmlElement);
System\ServiceModel\Security\Tokens\BufferedGenericXmlSecurityToken.cs (1)
21XmlElement tokenXml,
System.IdentityModel.Selectors (17)
infocard\client\System\IdentityModel\Selectors\CardSpacePolicyElement.cs (9)
22XmlElement m_target; 23XmlElement m_issuer; 24Collection<XmlElement> m_parameters; 35public XmlElement Target 41public XmlElement Issuer 47public Collection<XmlElement> Parameters 70public CardSpacePolicyElement(XmlElement target, XmlElement issuer, Collection<XmlElement> parameters, Uri privacyNoticeLink, int privacyNoticeVersion, bool isManagedIssuer)
infocard\client\System\IdentityModel\Selectors\CardSpaceSelector.cs (8)
102public static GenericXmlSecurityToken GetToken(XmlElement endpoint, 103IEnumerable<XmlElement> policy, 104XmlElement requiredRemoteTokenIssuer, 122Collection<XmlElement> policyCollection = new Collection<XmlElement>(); 124foreach (XmlElement element in policy) 350internal static string XmlToString(IEnumerable<XmlElement> xml) 354foreach (XmlElement element in xml)
System.Runtime.Serialization (43)
System\Runtime\Serialization\DataContract.cs (3)
784type = typeof(XmlElement); 871else if (type == typeof(XmlElement) || type == typeof(XmlNode[])) 993dataContract = new XmlDataContract(typeof(XmlElement));
System\Runtime\Serialization\Globals.cs (1)
1077typeOfXmlElement = typeof(XmlElement);
System\Runtime\Serialization\SchemaExporter.cs (22)
130XmlElement genericInfoElement = null; 141XmlElement actualTypeElement = null; 161XmlElement isValueTypeElement = null; 224private XmlElement ExportEmitDefaultValue(DataMember dataMember) 228XmlElement defaultValueElement = XmlDoc.CreateElement(DefaultValueAnnotation.Name, DefaultValueAnnotation.Namespace); 236XmlElement ExportActualType(XmlQualifiedName typeName) 241static XmlElement ExportActualType(XmlQualifiedName typeName, XmlDocument xmlDoc) 243XmlElement actualTypeElement = xmlDoc.CreateElement(ActualTypeAnnotationName.Name, ActualTypeAnnotationName.Namespace); 256XmlElement ExportGenericInfo(Type clrType, string elementName, string elementNs) 300XmlElement typeElement = XmlDoc.CreateElement(elementName, elementNs); 319XmlElement argumentElement = ExportGenericInfo(genericArguments[argIndex], Globals.GenericParameterLocalName, Globals.SerializationNamespace); 341XmlElement ExportSurrogateData(object key) 357return (XmlElement)XmlDoc.ReadNode(XmlReader.Create(new StringReader(stringWriter.ToString()))); 365XmlElement genericInfoElement = null, isDictionaryElement = null; 413XmlElement ExportIsDictionary() 415XmlElement isDictionaryElement = XmlDoc.CreateElement(IsDictionaryAnnotationName.Name, IsDictionaryAnnotationName.Namespace); 424XmlElement actualTypeElement = (enumDataContract.BaseContractName == DefaultEnumBaseTypeName) ? null : ExportActualType(enumDataContract.BaseContractName); 464XmlElement genericInfoElement = null; 468XmlElement isValueTypeElement = null; 809XmlElement annotationElement = GetAnnotationMarkup(annotationQualifiedName, innerText, schema); 836XmlElement GetAnnotationMarkup(XmlQualifiedName annotationQualifiedName, string innerText, XmlSchema schema) 838XmlElement annotationElement = XmlDoc.CreateElement(annotationQualifiedName.Name, annotationQualifiedName.Namespace);
System\Runtime\Serialization\SchemaImporter.cs (14)
1036XmlElement defaultValueElement = ImportAnnotation(annotation, SchemaExporter.DefaultValueAnnotation); 1048XmlElement actualTypeElement = ImportAnnotation(annotation, SchemaExporter.ActualTypeAnnotationName); 1257XmlElement typeElement = xmlNode as XmlElement; 1285XmlElement typeElement = xmlNode as XmlElement; 1296GenericInfo ImportGenericInfo(XmlElement typeElement, XmlSchemaType type) 1313XmlElement argumentElement = childNode as XmlElement; 1345object ImportSurrogateData(XmlElement typeElement, string name, string ns) 1422string GetInnerText(XmlQualifiedName typeName, XmlElement xmlElement) 1438static XmlElement ImportAnnotation(XmlSchemaAnnotation annotation, XmlQualifiedName annotationQualifiedName) 1448XmlElement annotationElement = markup[i] as XmlElement;
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
547obj = (XmlElement)xmlDoc.ReadNode(xmlSerializableReader);
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (2)
475XmlElement xmlElement = obj as XmlElement;
System.ServiceModel (1015)
System\ServiceModel\Administration\ServiceInfo.cs (3)
132else if (section.Metadata is System.Xml.XmlElement) 134System.Xml.XmlElement metadata = (System.Xml.XmlElement)section.Metadata;
System\ServiceModel\Channels\CompositeDuplexBindingElement.cs (1)
191static XmlElement CreateCompositeDuplexAssertion()
System\ServiceModel\Channels\CompositeDuplexBindingElementImporter.cs (1)
29XmlElement compositeDuplexAssertion = PolicyConversionContext.FindAssertion(context.GetBindingAssertions(),
System\ServiceModel\Channels\ConnectionOrientedTransportBindingElement.cs (1)
325ICollection<XmlElement> policyAssertions = context.GetBindingAssertions();
System\ServiceModel\Channels\ContextBindingElementImporter.cs (3)
23public void BeforeImport(ServiceDescriptionCollection wsdlDocuments, XmlSchemaSet xmlSchemas, ICollection<XmlElement> policy) 59XmlElement httpUseCookieAssertion = null; 131XmlElement httpUseCookieAssertion = null;
System\ServiceModel\Channels\ContextBindingElementPolicy.cs (7)
52XmlElement assertion = Document.CreateElement(null, IncludeContextName, WscNamespace); 72XmlElement assertion = Document.CreateElement(null, HttpUseCookieName, HttpNamespace); 77public static bool TryGetHttpUseCookieAssertion(ICollection<XmlElement> assertions, out XmlElement httpUseCookieAssertion) 86foreach (XmlElement assertion in assertions) 100static bool ContainOnlyWhitespaceChild(XmlElement parent) 127foreach (XmlElement assertion in assertions)
System\ServiceModel\Channels\HttpsTransportBindingElement.cs (1)
181public XmlElement GetTransportTokenAssertion()
System\ServiceModel\Channels\HttpTransportBindingElement.cs (7)
771XmlElement root = dummy.CreateElement(MetadataStrings.WSPolicy.Prefix, 801ICollection<XmlElement> bindingAssertions = policyContext.GetBindingAssertions(); 802List<XmlElement> httpAuthAssertions = new List<XmlElement>(); 805foreach (XmlElement assertion in bindingAssertions) 839httpAuthAssertions.ForEach(delegate(XmlElement element) { bindingAssertions.Remove(element); }); 845foreach (XmlElement assertion in bindingAssertions)
System\ServiceModel\Channels\ITransportTokenAssertionProvider.cs (1)
11XmlElement GetTransportTokenAssertion();
System\ServiceModel\Channels\MessageEncodingBindingElementImporter.cs (6)
16void IWsdlImportExtension.BeforeImport(ServiceDescriptionCollection wsdlDocuments, XmlSchemaSet xmlSchemas, ICollection<XmlElement> policy) 183ICollection<XmlElement> assertions = context.GetBindingAssertions(); 185XmlElement encodingAssertion; 215MessageEncodingBindingElement CreateEncodingBindingElement(ICollection<XmlElement> assertions, out XmlElement encodingAssertion) 218foreach (XmlElement assertion in assertions)
System\ServiceModel\Channels\MsmqBindingElementBase.cs (3)
299static bool FindAssertion(ICollection<XmlElement> assertions, string name) 318ICollection<XmlElement> policyAssertions = context.GetBindingAssertions(); 370ICollection<XmlElement> policyAssertions = policyContext.GetBindingAssertions();
System\ServiceModel\Channels\OneWayBindingElement.cs (2)
321XmlElement assertion = doc.CreateElement(OneWayPolicyConstants.Prefix, 327XmlElement child = doc.CreateElement(OneWayPolicyConstants.Prefix, OneWayPolicyConstants.PacketRoutable, OneWayPolicyConstants.Namespace);
System\ServiceModel\Channels\OneWayBindingElementImporter.cs (1)
29XmlElement oneWayAssertion = PolicyConversionContext.FindAssertion(context.GetBindingAssertions(),
System\ServiceModel\Channels\PeerSecurityHelpers.cs (13)
434internal static PeerHashToken CreateFrom(XmlElement child) 439XmlElement element = (XmlElement)node; 445XmlElement authElement = element.ChildNodes[0] as XmlElement; 492public override SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXml(XmlElement element, SecurityTokenReferenceStyle tokenReferenceStyle) 528XmlElement rstXml = rst.RequestSecurityTokenXml; 535XmlElement element = (XmlElement)node; 622XmlElement responseXml = response.RequestSecurityTokenResponseXml; 625foreach (XmlElement child in responseXml.ChildNodes) 631XmlElement desc = (child.ChildNodes[0] as XmlElement);
System\ServiceModel\Channels\PrivacyNoticeBindingElement.cs (1)
91XmlElement assertion = doc.CreateElement(PrivacyNoticePolicyStrings.PrivacyNoticePrefix,
System\ServiceModel\Channels\PrivacyNoticeBindingElementImporter.cs (1)
25XmlElement privacyNoticeAssertion = PolicyConversionContext.FindAssertion(policyContext.GetBindingAssertions(),
System\ServiceModel\Channels\ReliableSessionBindingElement.cs (12)
618XmlElement assertion = settings.CreateReliabilityAssertion(exporter.PolicyVersion, bindingElements); 624static XmlElement CreatePolicyElement(PolicyVersion policyVersion, XmlDocument doc) 633XmlElement CreateReliabilityAssertion(PolicyVersion policyVersion, BindingElementCollection bindingElements) 636XmlElement child = null; 658XmlElement assertion = doc.CreateElement(reliableSessionPrefix, ReliableSessionPolicyStrings.ReliableSessionName, reliableSessionNs); 663XmlElement policy = CreatePolicyElement(policyVersion, doc); 668XmlElement sequenceSTR = doc.CreateElement(reliableSessionPrefix, ReliableSessionPolicyStrings.SequenceSTR, reliableSessionNs); 673XmlElement deliveryAssurance = doc.CreateElement(reliableSessionPrefix, ReliableSessionPolicyStrings.DeliveryAssurance, reliableSessionNs); 676XmlElement nestedPolicy = CreatePolicyElement(policyVersion, doc); 679XmlElement exactlyOnce = doc.CreateElement(reliableSessionPrefix, ReliableSessionPolicyStrings.ExactlyOnce, reliableSessionNs); 685XmlElement inOrder = doc.CreateElement(reliableSessionPrefix, ReliableSessionPolicyStrings.InOrder, reliableSessionNs); 739static void WriteMillisecondsAttribute(XmlElement childElement, TimeSpan timeSpan)
System\ServiceModel\Channels\ReliableSessionBindingElementImporter.cs (18)
52XmlElement reliableSessionAssertion = PolicyConversionContext.FindAssertion(context.GetBindingAssertions(), 116static void ProcessReliableSession11Assertion(MetadataImporter importer, XmlElement element, 170static void ProcessReliableSessionFeb2005Assertion(XmlElement element, ReliableSessionBindingElement settings) 209XmlElement element = ThrowIfNotPolicyElement(node, ReliableMessagingVersion.WSReliableMessaging11); 210IEnumerable<IEnumerable<XmlElement>> alternatives = importer.NormalizePolicy(new XmlElement[] { element }); 213foreach (IEnumerable<XmlElement> alternative in alternatives) 333static XmlElement ThrowIfNotPolicyElement(XmlNode node, ReliableMessagingVersion reliableMessagingVersion) 355return (XmlElement)node; 372IEnumerable<XmlElement> alternative) 377foreach (XmlElement node in alternative) 423bool TryImportSequenceSTR(XmlElement node) 441bool TryImportDeliveryAssurance(MetadataImporter importer, XmlElement node) 453XmlElement policyElement = ThrowIfNotPolicyElement(policyNode, ReliableMessagingVersion.WSReliableMessaging11); 454IEnumerable<IEnumerable<XmlElement>> alternatives = importer.NormalizePolicy(new XmlElement[] { policyElement }); 456foreach (IEnumerable<XmlElement> alternative in alternatives) 460foreach (XmlElement element in alternative)
System\ServiceModel\Channels\SecurityBindingElement.cs (8)
1965static void AddAssertionIfNotNull(PolicyConversionContext policyContext, XmlElement assertion) 1973static void AddAssertionIfNotNull(PolicyConversionContext policyContext, Collection<XmlElement> assertions) 1983static void AddAssertionIfNotNull(PolicyConversionContext policyContext, OperationDescription operation, XmlElement assertion) 1991static void AddAssertionIfNotNull(PolicyConversionContext policyContext, OperationDescription operation, Collection<XmlElement> assertions) 2001static void AddAssertionIfNotNull(PolicyConversionContext policyContext, MessageDescription message, XmlElement assertion) 2009static void AddAssertionIfNotNull(PolicyConversionContext policyContext, FaultDescription message, XmlElement assertion) 2245XmlElement transportTokenAssertion = transportTokenAssertionProvider.GetTransportTokenAssertion(); 2267Collection<XmlElement> supportingTokenAssertions = sp.CreateWsspSupportingTokensAssertion(
System\ServiceModel\Channels\SecurityBindingElementImporter.cs (12)
63ICollection<XmlElement> operationBindingAssertions = policyContext.GetOperationBindingAssertions(operation); 96void ImportProtectionAssertions(ICollection<XmlElement> assertions, out MessagePartSpecification signedParts, out MessagePartSpecification encryptedParts) 98XmlElement assertion; 237ICollection<XmlElement> endpointBindingAssertions = policyContext.GetBindingAssertions(); 255ICollection<XmlElement> operationBindingAssertions = policyContext.GetOperationBindingAssertions(operation); 269ICollection<XmlElement> messageBindingAssertions = policyContext.GetMessageBindingAssertions(message); 363ICollection<XmlElement> faultBindingAssertions = policyContext.GetFaultBindingAssertions(fault); 472void ImportSupportingTokenAssertions(MetadataImporter importer, PolicyConversionContext policyContext, ICollection<XmlElement> assertions, SupportingTokenParameters requirements, SupportingTokenParameters optionalRequirements) 494XmlElement assertion = null; 527XmlElement assertion; 551XmlElement assertion; 576XmlElement assertion;
System\ServiceModel\Channels\SslStreamSecurityBindingElement.cs (3)
172XmlElement assertion = PolicyConversionContext.FindAssertion(policyContext.GetBindingAssertions(), 195public XmlElement GetTransportTokenAssertion() 198XmlElement assertion =
System\ServiceModel\Channels\StandardBindingImporter.cs (1)
16void IWsdlImportExtension.BeforeImport(WsdlNS.ServiceDescriptionCollection wsdlDocuments, XmlSchemaSet xmlSchemas, ICollection<XmlElement> policy) { }
System\ServiceModel\Channels\TransactionFlowBindingElement.cs (3)
363XmlElement GetAssertion(XmlDocument doc, TransactionFlowOption option, string prefix, string name, string ns, string policyNs) 368XmlElement result = null; 418XmlElement assertion = null;
System\ServiceModel\Channels\TransactionFlowBindingElementImporter.cs (7)
48XmlElement oleTxTransactionsAssertion = null; 49XmlElement wsatTransactionsAssertion = null; 53ICollection<XmlElement> operationAssertions = context.GetOperationBindingAssertions(operation); 54foreach (XmlElement element in operationAssertions) 167TransactionFlowOption GetOption(XmlElement elem, bool useLegacyNs) 184static bool IsRealOptionalTrue(XmlElement elem) 190static bool IsLegacyOptionalTrue(XmlElement elem)
System\ServiceModel\Channels\TransportBindingElementImporter.cs (2)
25void IWsdlImportExtension.BeforeImport(WsdlNS.ServiceDescriptionCollection wsdlDocuments, XmlSchemaSet xmlSchemas, ICollection<XmlElement> policy) 185ICollection<XmlElement> policyCollection = policyContext.GetBindingAssertions();
System\ServiceModel\Channels\UnrecognizedAssertionsBindingElement.cs (16)
17ICollection<XmlElement> bindingAsserions; 18IDictionary<OperationDescription, ICollection<XmlElement>> operationAssertions; 19IDictionary<MessageDescription, ICollection<XmlElement>> messageAssertions; 21internal protected UnrecognizedAssertionsBindingElement(XmlQualifiedName wsdlBinding, ICollection<XmlElement> bindingAsserions) 33internal ICollection<XmlElement> BindingAsserions 38this.bindingAsserions = new Collection<XmlElement>(); 43internal IDictionary<OperationDescription, ICollection<XmlElement>> OperationAssertions 48this.operationAssertions = new Dictionary<OperationDescription, ICollection<XmlElement>>(); 53internal IDictionary<MessageDescription, ICollection<XmlElement>> MessageAssertions 58this.messageAssertions = new Dictionary<MessageDescription, ICollection<XmlElement>>(); 63internal void Add(OperationDescription operation, ICollection<XmlElement> assertions) 65ICollection<XmlElement> existent; 72foreach (XmlElement assertion in assertions) 77internal void Add(MessageDescription message, ICollection<XmlElement> assertions) 79ICollection<XmlElement> existent; 86foreach (XmlElement assertion in assertions)
System\ServiceModel\Channels\UseManagedPresentationBindingElement.cs (1)
47XmlElement assertion = doc.CreateElement(UseManagedPresentationPolicyStrings.UseManagedPresentationPrefix,
System\ServiceModel\Channels\UseManagedPresentationBindingElementImporter.cs (1)
25XmlElement useManagedPresentationAssertion = PolicyConversionContext.FindAssertion(policyContext.GetBindingAssertions(),
System\ServiceModel\Channels\WindowsStreamSecurityBindingElement.cs (4)
134XmlElement assertion = PolicyConversionContext.FindAssertion(policyContext.GetBindingAssertions(), 163public XmlElement GetTransportTokenAssertion() 166XmlElement assertion = 170XmlElement protectionLevelElement = document.CreateElement(TransportPolicyConstants.DotNetFramingPrefix,
System\ServiceModel\ComIntegration\MexServiceChannelBuilder.cs (2)
430XmlElement xmlDoc = document as XmlElement;
System\ServiceModel\Configuration\FederatedMessageSecurityOverHttpElement.cs (1)
165foreach (XmlElement element in security.TokenRequestParameters)
System\ServiceModel\Configuration\IssuedTokenParametersElement.cs (1)
259foreach (XmlElement element in source.AdditionalRequestParameters)
System\ServiceModel\Configuration\Properties.cs (1)
3898properties.Add(new ConfigurationProperty("xmlElement", typeof(System.Xml.XmlElement), null, null, null, System.Configuration.ConfigurationPropertyOptions.IsKey));
System\ServiceModel\Configuration\UnrecognizedPolicyAssertionElement.cs (9)
19ICollection<XmlElement> bindingAsserions; 20IDictionary<OperationDescription, ICollection<XmlElement>> operationAssertions; 21IDictionary<MessageDescription, ICollection<XmlElement>> messageAssertions; 68foreach (XmlElement assertion in this.bindingAsserions) 79foreach (XmlElement assertion in this.operationAssertions[operation]) 89ICollection<XmlElement> assertions; 96foreach (XmlElement assertion in assertions) 120string ToString(XmlElement e, XmlDocument document) 122XmlElement top = document.CreateElement(e.Prefix, e.LocalName, e.NamespaceURI);
System\ServiceModel\Configuration\XmlElementElement.cs (5)
19public XmlElementElement(XmlElement element) : this() 37this.XmlElement = (XmlElement)source.XmlElement.Clone(); 53this.XmlElement = (XmlElement)doc.ReadNode(reader); 109public XmlElement XmlElement 111get { return (XmlElement)base[ConfigurationStrings.XmlElement]; }
System\ServiceModel\Configuration\XmlElementElementCollection.cs (1)
55this.Add(new XmlElementElement((XmlElement)doc.ReadNode(reader)));
System\ServiceModel\Description\DataContractSerializerMessageContractImporter.cs (2)
48void IWsdlImportExtension.BeforeImport(WsdlNS.ServiceDescriptionCollection wsdlDocuments, XmlSchemaSet xmlSchemas, ICollection<XmlElement> policy) { } 77void IWsdlImportExtension.BeforeImport(WsdlNS.ServiceDescriptionCollection wsdlDocuments, XmlSchemaSet xmlSchemas, ICollection<XmlElement> policy) { }
System\ServiceModel\Description\ImportedPolicyConversionContext.cs (25)
36ImportedPolicyConversionContext(ServiceEndpoint endpoint, IEnumerable<XmlElement> endpointAssertions, 37Dictionary<OperationDescription, IEnumerable<XmlElement>> operationBindingAssertions, 38Dictionary<MessageDescription, IEnumerable<XmlElement>> messageBindingAssertions, 39Dictionary<FaultDescription, IEnumerable<XmlElement>> faultBindingAssertions, 45this.endpointAssertions = new PolicyAssertionCollection(new MaxItemsEnumerable<XmlElement>(endpointAssertions, remainingAssertionsAllowed)); 65foreach (KeyValuePair<OperationDescription, IEnumerable<XmlElement>> entry in operationBindingAssertions) 67this.operationBindingAssertions[entry.Key].AddRange(new MaxItemsEnumerable<XmlElement>(entry.Value, remainingAssertionsAllowed)); 71foreach (KeyValuePair<MessageDescription, IEnumerable<XmlElement>> entry in messageBindingAssertions) 73this.messageBindingAssertions[entry.Key].AddRange(new MaxItemsEnumerable<XmlElement>(entry.Value, remainingAssertionsAllowed)); 77foreach (KeyValuePair<FaultDescription, IEnumerable<XmlElement>> entry in faultBindingAssertions) 79this.faultBindingAssertions[entry.Key].AddRange(new MaxItemsEnumerable<XmlElement>(entry.Value, remainingAssertionsAllowed)); 117IEnumerable<Dictionary<MessageDescription, IEnumerable<XmlElement>>> messageAssertionEnumerator; 118IEnumerable<Dictionary<FaultDescription, IEnumerable<XmlElement>>> faultAssertionEnumerator; 119IEnumerable<Dictionary<OperationDescription, IEnumerable<XmlElement>>> operationAssertionEnumerator; 120faultAssertionEnumerator = PolicyIterationHelper.GetCartesianProduct<FaultDescription, IEnumerable<XmlElement>>(policyAlternatives.FaultBindingAlternatives); 121messageAssertionEnumerator = PolicyIterationHelper.GetCartesianProduct<MessageDescription, IEnumerable<XmlElement>>(policyAlternatives.MessageBindingAlternatives); 122operationAssertionEnumerator = PolicyIterationHelper.GetCartesianProduct<OperationDescription, IEnumerable<XmlElement>>(policyAlternatives.OperationBindingAlternatives); 124foreach (Dictionary<FaultDescription, IEnumerable<XmlElement>> faultAssertionsSelection in faultAssertionEnumerator) 126foreach (Dictionary<MessageDescription, IEnumerable<XmlElement>> messageAssertionsSelection in messageAssertionEnumerator) 128foreach (Dictionary<OperationDescription, IEnumerable<XmlElement>> operationAssertionsSelection in operationAssertionEnumerator) 130foreach (IEnumerable<XmlElement> endpointAssertionsSelection in policyAlternatives.EndpointAlternatives) 313public IEnumerable<IEnumerable<XmlElement>> EndpointAlternatives; 314public Dictionary<OperationDescription, IEnumerable<IEnumerable<XmlElement>>> OperationBindingAlternatives; 315public Dictionary<MessageDescription, IEnumerable<IEnumerable<XmlElement>>> MessageBindingAlternatives; 316public Dictionary<FaultDescription, IEnumerable<IEnumerable<XmlElement>>> FaultBindingAlternatives;
System\ServiceModel\Description\IWsdlImportExtension.cs (1)
14void BeforeImport(WsdlNS.ServiceDescriptionCollection wsdlDocuments, XmlSchemaSet xmlSchemas, ICollection<XmlElement> policy);
System\ServiceModel\Description\MessageContractImporter.cs (3)
99else if (SoapHelper.IsSoapFaultBinding(o as XmlElement)) 1365XmlElement soapFaultBindingRaw = extension as XmlElement;
System\ServiceModel\Description\MessageHeaderDescription.cs (1)
77return isUnknownHeader || Multiple && (Type == typeof(XmlElement));
System\ServiceModel\Description\MetadataExchangeClient.cs (1)
708metadataType = typeof(XmlElement);
System\ServiceModel\Description\MetadataImporter.cs (5)
75internal virtual XmlElement ResolvePolicyReference(string policyReference, XmlElement contextAssertion) 79internal BindingElementCollection ImportPolicy(ServiceEndpoint endpoint, Collection<Collection<XmlElement>> policyAlternatives) 81foreach (Collection<XmlElement> selectedPolicy in policyAlternatives) 144internal BindingOnlyPolicyConversionContext(ServiceEndpoint endpoint, IEnumerable<XmlElement> bindingPolicy)
System\ServiceModel\Description\MetadataSection.cs (2)
85public static MetadataSection CreateFromPolicy(XmlElement policy, string identifier) 138internal static bool IsPolicyElement(XmlElement policy)
System\ServiceModel\Description\MetadataSet.cs (4)
370else if (o.@Metadata is System.Xml.XmlElement) 372System.Xml.XmlElement elem = (System.Xml.XmlElement)o.@Metadata; 599o.@Metadata = (global::System.Xml.XmlElement)ReadXmlNode(false);
System\ServiceModel\Description\PolicyAssertionCollection.cs (17)
13public class PolicyAssertionCollection : Collection<XmlElement> 19public PolicyAssertionCollection(IEnumerable<XmlElement> elements) 27internal void AddRange(IEnumerable<XmlElement> elements) 29foreach (XmlElement element in elements) 44XmlElement item = this[i]; 51public XmlElement Find(string localName, string namespaceUri) 56public XmlElement Remove(string localName, string namespaceUri) 61XmlElement Find(string localName, string namespaceUri, bool remove) 70XmlElement item = this[index]; 83public Collection<XmlElement> FindAll(string localName, string namespaceUri) 88public Collection<XmlElement> RemoveAll(string localName, string namespaceUri) 93Collection<XmlElement> FindAll(string localName, string namespaceUri, bool remove) 100Collection<XmlElement> collection = new Collection<XmlElement>(); 104XmlElement item = this[index]; 120protected override void InsertItem(int index, XmlElement item) 128protected override void SetItem(int index, XmlElement item)
System\ServiceModel\Description\PolicyConversionContext.cs (4)
41internal static XmlElement FindAssertion(ICollection<XmlElement> assertions, string localName, string namespaceUri, bool remove) 43XmlElement result = null; 44foreach (XmlElement assertion in assertions)
System\ServiceModel\Description\PolicyReader.cs (42)
22internal delegate void PolicyWarningHandler(XmlElement contextAssertion, string warningMessage); 27internal IEnumerable<IEnumerable<XmlElement>> NormalizePolicy(IEnumerable<XmlElement> policyAssertions) 51static IEnumerable<XmlElement> Empty = new PolicyHelper.EmptyEnumerable<XmlElement>(); 52static IEnumerable<IEnumerable<XmlElement>> EmptyEmpty = new PolicyHelper.SingleEnumerable<IEnumerable<XmlElement>>(new PolicyHelper.EmptyEnumerable<XmlElement>()); 61IEnumerable<IEnumerable<XmlElement>> ReadNode(XmlNode node, XmlElement contextAssertion, YieldLimiter yieldLimiter) 68string warningMsg = SR.GetString(SR.ExceededMaxPolicyComplexity, node.Name, PolicyHelper.GetFragmentIdentifier((XmlElement)node)); 75IEnumerable<IEnumerable<XmlElement>> nodes = EmptyEmpty; 80nodes = ReadNode_PolicyOrAll((XmlElement)node, contextAssertion, yieldLimiter); 83nodes = ReadNode_ExactlyOne((XmlElement)node, contextAssertion, yieldLimiter); 86nodes = ReadNode_Assertion((XmlElement)node, yieldLimiter); 89nodes = ReadNode_PolicyReference((XmlElement)node, contextAssertion, yieldLimiter); 100IEnumerable<IEnumerable<XmlElement>> ReadNode_PolicyReference(XmlElement element, XmlElement contextAssertion, YieldLimiter yieldLimiter) 116XmlElement policy = metadataImporter.ResolvePolicyReference(idRef, contextAssertion); 131IEnumerable<IEnumerable<XmlElement>> ReadNode_Assertion(XmlElement element, YieldLimiter yieldLimiter) 136yield return new PolicyHelper.SingleEnumerable<XmlElement>(element); 139IEnumerable<IEnumerable<XmlElement>> ReadNode_ExactlyOne(XmlElement element, XmlElement contextAssertion, YieldLimiter yieldLimiter) 145foreach (IEnumerable<XmlElement> alternative in ReadNode(child, contextAssertion, yieldLimiter)) 160IEnumerable<IEnumerable<XmlElement>> ReadNode_PolicyOrAll(XmlElement element, XmlElement contextAssertion, YieldLimiter yieldLimiter) 162IEnumerable<IEnumerable<XmlElement>> target = EmptyEmpty; 168IEnumerable<IEnumerable<XmlElement>> childPolicy = ReadNode(child, contextAssertion, yieldLimiter); 169target = PolicyHelper.CrossProduct<XmlElement>(target, childPolicy, yieldLimiter); 175internal IEnumerable<IEnumerable<XmlElement>> NormalizePolicy(IEnumerable<XmlElement> policyAssertions) 177IEnumerable<IEnumerable<XmlElement>> target = EmptyEmpty; 179foreach (XmlElement child in policyAssertions) 181IEnumerable<IEnumerable<XmlElement>> childPolicy = ReadNode(child, child, yieldLimiter); 182target = PolicyHelper.CrossProduct<XmlElement>(target, childPolicy, yieldLimiter); 221internal static string GetFragmentIdentifier(XmlElement element) 245XmlElement currentElement = node as XmlElement;
System\ServiceModel\Description\SoapHelper.cs (9)
115XmlElement fault = CreateSoapFaultBinding(version); 334XmlElement element = src as XmlElement; 371static XmlElement ConvertSoapFaultBinding(XmlElement src, EnvelopeVersion version) 391XmlElement dest = CreateSoapFaultBinding(version); 543static XmlElement CreateSoapFaultBinding(EnvelopeVersion version) 636internal static bool IsSoapFaultBinding(XmlElement element) 641internal static bool IsEncoded(XmlElement element)
System\ServiceModel\Description\WsdlExporter.cs (16)
628XmlElement endpointRef = (XmlElement)XmlDoc.ReadNode(xr).ChildNodes[0]; 635XmlElement addressingAssertion; 679XmlElement innerPolicyElement = XmlDoc.CreateElement(MetadataStrings.WSPolicy.Prefix, 683XmlElement responsesAssertion = XmlDoc.CreateElement(MetadataStrings.Addressing10.MetadataPolicy.Prefix, 728ICollection<XmlElement> assertions; 799void AttachItemPolicy(ICollection<XmlElement> assertions, string key, WsdlNS.ServiceDescription policyWsdl, WsdlNS.DocumentableItem item) 809XmlElement policyReferenceElement = XmlDoc.CreateElement(MetadataStrings.WSPolicy.Prefix, 822string InsertPolicy(string key, WsdlNS.ServiceDescription policyWsdl, ICollection<XmlElement> assertions) 825XmlElement policyElement = CreatePolicyElement(assertions); 843XmlElement CreatePolicyElement(ICollection<XmlElement> assertions) 846XmlElement policyElement = XmlDoc.CreateElement(MetadataStrings.WSPolicy.Prefix, 851XmlElement exactlyOneElement = XmlDoc.CreateElement(MetadataStrings.WSPolicy.Prefix, 857XmlElement allElement = XmlDoc.CreateElement(MetadataStrings.WSPolicy.Prefix, 863foreach (XmlElement assertion in assertions)
System\ServiceModel\Description\WsdlHelper.cs (9)
156IEnumerable<XmlElement> bindingPolicies = FindAllElements(wsdl.Extensions, MetadataStrings.WSPolicy.Elements.Policy); 158foreach (XmlElement policyElement in bindingPolicies) 194IEnumerable<XmlElement> bindingPolicyReferences = FindAllElements(extensions, MetadataStrings.WSPolicy.Elements.PolicyReference); 196foreach (XmlElement policyReferenceElement in bindingPolicyReferences) 209private static IEnumerable<XmlElement> FindAllElements(WsdlNS.ServiceDescriptionFormatExtensionCollection extensions, string elementName) 211List<XmlElement> policyReferences = new List<XmlElement>(); 214XmlElement element = extensions[i] as XmlElement;
System\ServiceModel\Description\WsdlImporter.cs (82)
34readonly Dictionary<string, XmlElement> policyDocuments = new Dictionary<string, XmlElement>(); 98internal override XmlElement ResolvePolicyReference(string policyReference, XmlElement contextAssertion) 616policyDocuments.Add(doc.Identifier, TryConvert<XmlElement>(doc)); 812XmlElement element = extension as XmlElement; 1082XmlElement addressing10Element = wsdlPort.Extensions.Find(AddressingStrings.EndpointReference, Addressing10Strings.Namespace); 1083XmlElement addressing200408Element = wsdlPort.Extensions.Find(AddressingStrings.EndpointReference, Addressing200408Strings.Namespace); 1133XmlElement addressingAssertion = PolicyConversionContext.FindAssertion(context.GetBindingAssertions(), 1138XmlElement policyElement = null; 1141if (node is XmlElement && MetadataSection.IsPolicyElement((XmlElement)node)) 1143policyElement = (XmlElement)node; 1158IEnumerable<IEnumerable<XmlElement>> alternatives = importer.NormalizePolicy(new XmlElement[] { policyElement }); 1159foreach (IEnumerable<XmlElement> alternative in alternatives) 1161foreach (XmlElement element in alternative) 1338XmlElement policy = PolicyConversionContext.FindAssertion(policyContext.GetBindingAssertions(), key, workaroundNS, true); 1439XmlElement policyElement = CreatePolicyElement(key, value, wsdlBindingQName); 1453static XmlElement CreatePolicyElement(string elementName, string value, XmlQualifiedName wsdlBindingQName) 1457XmlElement policyElement = XmlDoc.CreateElement(MetadataStrings.WSPolicy.Prefix, 1462XmlElement exactlyOneElement = XmlDoc.CreateElement(MetadataStrings.WSPolicy.Prefix, 1468XmlElement allElement = XmlDoc.CreateElement(MetadataStrings.WSPolicy.Prefix, 1474XmlElement workaroundElement = xmlDocument.CreateElement(elementName, workaroundNS); 1576internal static IEnumerable<MetadataSection> CreateMetadataDocuments(WsdlNS.ServiceDescriptionCollection wsdlDocuments, XmlSchemaSet xmlSchemas, IEnumerable<XmlElement> policyDocuments) 1588foreach (XmlElement policyDocument in policyDocuments) 1697static void AddUnImportedPolicyString(StringBuilder stringBuilder, WsdlNS.NamedItem item, IEnumerable<XmlElement> unimportdPolicy) 1701Dictionary<XmlElement, XmlElement> unique = new Dictionary<XmlElement, XmlElement>(); 1703foreach (XmlElement element in unimportdPolicy) 1719static void WriteElement(XmlElement element, StringBuilder stringBuilder) 2003IEnumerable<IEnumerable<XmlElement>> GetPolicyAlternatives(WsdlNS.NamedItem item, WsdlNS.ServiceDescription wsdl) 2005Collection<XmlElement> policyElements = new Collection<XmlElement>(); 2007foreach (XmlElement element in GetReferencedPolicy(item, wsdl)) 2012foreach (XmlElement element in GetEmbeddedPolicy(item)) 2022void LogPolicyNormalizationWarning(XmlElement contextAssertion, string warningMessage) 2081internal static IEnumerable<XmlElement> GetEmbeddedPolicy(WsdlNS.NamedItem item) 2083List<XmlElement> embeddedPolicies = new List<XmlElement>(); 2091IEnumerable<XmlElement> GetReferencedPolicy(WsdlNS.NamedItem item, WsdlNS.ServiceDescription wsdl) 2097XmlElement policy = policyDictionary.ResolvePolicyReference(policyRef, wsdl); 2127List<XmlElement> policyReferences = new List<XmlElement>(); 2133foreach (XmlElement element in policyReferences) 2204IEnumerable<IEnumerable<XmlElement>> wsdlBindingAlternatives = this.GetPolicyAlternatives(endpointContext.WsdlBinding, bindingWsdl); 2207IEnumerable<IEnumerable<XmlElement>> wsdlPortAlternatives = this.GetPolicyAlternatives(endpointContext.WsdlPort, endpointContext.WsdlPort.Service.ServiceDescription); 2208policyAlternatives.EndpointAlternatives = PolicyHelper.CrossProduct<XmlElement>(wsdlBindingAlternatives, wsdlPortAlternatives, new YieldLimiter(this.importer.Quotas.MaxYields, this.importer)); 2218policyAlternatives.OperationBindingAlternatives = new Dictionary<OperationDescription, IEnumerable<IEnumerable<XmlElement>>>(endpointContext.Endpoint.Contract.Operations.Count); 2219policyAlternatives.MessageBindingAlternatives = new Dictionary<MessageDescription, IEnumerable<IEnumerable<XmlElement>>>(); 2220policyAlternatives.FaultBindingAlternatives = new Dictionary<FaultDescription, IEnumerable<IEnumerable<XmlElement>>>(); 2233IEnumerable<IEnumerable<XmlElement>> operationAlternatives = this.GetPolicyAlternatives(wsdlOperationBinding, bindingWsdl); 2264IEnumerable<IEnumerable<XmlElement>> messageAlternatives = this.GetPolicyAlternatives(wsdlMessageBinding, bindingWsdl); 2280IEnumerable<IEnumerable<XmlElement>> faultAlternatives = this.GetPolicyAlternatives(wsdlFaultBinding, bindingWsdl); 2292internal XmlElement ResolvePolicyReference(string policyReference, XmlElement contextPolicyAssertion) 2300readonly Dictionary<WsdlNS.ServiceDescription, Dictionary<string, XmlElement>> embeddedPolicyDictionary = new Dictionary<WsdlNS.ServiceDescription, Dictionary<string, XmlElement>>(); 2301readonly Dictionary<string, XmlElement> externalPolicyDictionary = new Dictionary<string, XmlElement>(); 2302readonly Dictionary<XmlElement, WsdlNS.ServiceDescription> policySourceTable = new Dictionary<XmlElement, WsdlNS.ServiceDescription>(); 2304internal Dictionary<XmlElement, WsdlNS.ServiceDescription> PolicySourceTable 2318foreach (XmlElement element in WsdlPolicyReader.GetEmbeddedPolicy(wsdl)) 2327foreach (KeyValuePair<string, XmlElement> policyDocument in importer.policyDocuments) 2334void AddEmbeddedPolicy(WsdlImporter importer, WsdlNS.ServiceDescription wsdl, XmlElement element) 2345Dictionary<string, XmlElement> wsdlPolicyDictionary; 2348wsdlPolicyDictionary = new Dictionary<string, XmlElement>(); 2363void AddExternalPolicy(WsdlImporter importer, KeyValuePair<string, XmlElement> policyDocument) 2391internal XmlElement ResolvePolicyReference(string policyReference, XmlElement contextPolicyAssertion) 2393XmlElement policy; 2415internal XmlElement ResolvePolicyReference(string policyReference, WsdlNS.ServiceDescription wsdlDocument) 2417XmlElement policy; 2424Dictionary<string, XmlElement> wsdlPolicyDictionary; 2434static string CreateKeyFromPolicy(string identifier, XmlElement policyElement) 2441static string GetFragmentIdentifier(XmlElement element) 2450internal string CreateIdXPath(XmlElement policyAssertion) 2465internal static string CreateIdXPath(WsdlNS.ServiceDescription wsdl, XmlElement element, string key)
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (5)
186bool isXmlElement = headerDescription.Type == typeof(XmlElement); 208XmlElement xmlElement = (XmlElement)valueToSerialize; 346parameters[messageInfo.UnknownHeaderDescription.Index] = elementList.ToArray(messageInfo.UnknownHeaderDescription.TypedHeader ? typeof(MessageHeader<XmlElement>) : typeof(XmlElement));
System\ServiceModel\Dispatcher\OperationFormatter.cs (2)
856protected XmlElement headerValue; 857public XmlElementMessageHeader(OperationFormatter operationFormatter, MessageVersion version, string name, string ns, bool mustUnderstand, string actor, bool relay, XmlElement headerValue) :
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (8)
97foreach (XmlElement element in doc.DocumentElement.ChildNodes) 123XmlElement element = (XmlElement)GetContentOfMessageHeaderOfT(unknownHeaderDescription, unknownHeader, out mustUnderstand, out relay, out actor); 170parameters[unknownHeaderDescription.Index] = unknownHeaders.ToArray(unknownHeaderDescription.TypedHeader ? typeof(MessageHeader<XmlElement>) : typeof(XmlElement)); 238parameters[unknownHeaderDescription.Index] = unknownHeaders.ToArray(unknownHeaderDescription.TypedHeader ? typeof(MessageHeader<XmlElement>) : typeof(XmlElement)); 253((XmlElement)unknownHeader).WriteTo(bufferWriter);
System\ServiceModel\FederatedMessageSecurityOverHttp.cs (6)
31Collection<XmlElement> tokenRequestParameters; 39tokenRequestParameters = new Collection<XmlElement>(); 126public Collection<XmlElement> TokenRequestParameters 164foreach (XmlElement p in this.TokenRequestParameters) 283Collection<XmlElement> nonAlgorithmRequestParameters; 311foreach (XmlElement p in nonAlgorithmRequestParameters)
System\ServiceModel\PeerSecuritySettings.cs (2)
81XmlElement element = PolicyConversionContext.FindAssertion(context.GetBindingAssertions(), 131XmlElement element = doc.CreateElement(PeerTransportPolicyConstants.PeerTransportPrefix,
System\ServiceModel\PeerTransportSecuritySettings.cs (2)
50XmlElement element = PolicyConversionContext.FindAssertion(context.GetBindingAssertions(), 87XmlElement element = doc.CreateElement(PeerTransportPolicyConstants.PeerTransportPrefix,
System\ServiceModel\Security\ClientCredentialsSecurityTokenManager.cs (2)
501IEnumerable<XmlElement> tokenRequestParameters = issuedTokenParameters.CreateRequestParameters(issuerSecurityVersion, issuerSecurityTokenSerializer); 504foreach (XmlElement requestParameter in tokenRequestParameters)
System\ServiceModel\Security\InfoCardHelper.cs (4)
726Collection<XmlElement> m_parameters; 752public PolicyElement(EndpointAddress target, EndpointAddress issuer, Collection<XmlElement> parameters, Uri privacyNoticeLink, int privacyNoticeVersion, bool isManagedIssuer, Binding binding) 792private XmlElement EndPointAddressToXmlElement(EndpointAddress epr) 811return (XmlElement)doc.ReadNode(reader);
System\ServiceModel\Security\RequestSecurityToken.cs (11)
38XmlElement rstXml; 39IList<XmlElement> requestProperties; 69XmlElement requestSecurityTokenXml, 87public RequestSecurityToken(XmlElement requestSecurityTokenXml, 106XmlElement rstXml, 251public IEnumerable<XmlElement> RequestProperties 270Collection<XmlElement> coll = new Collection<XmlElement>(); 271foreach (XmlElement property in value) 331public XmlElement RequestSecurityTokenXml 573this.requestProperties = new ReadOnlyCollection<XmlElement>(this.requestProperties);
System\ServiceModel\Security\RequestSecurityTokenResponse.cs (5)
46XmlElement rstrXml; 72public RequestSecurityTokenResponse(XmlElement requestSecurityTokenResponseXml, 99XmlElement requestSecurityTokenResponseXml, 141XmlElement rstrXml, 385public XmlElement RequestSecurityTokenResponseXml
System\ServiceModel\Security\SecurityStandardsManager.cs (2)
145internal bool TryCreateKeyIdentifierClauseFromTokenXml(XmlElement element, SecurityTokenReferenceStyle tokenReferenceStyle, out SecurityKeyIdentifierClause securityKeyIdentifierClause) 150internal SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXml(XmlElement element, SecurityTokenReferenceStyle tokenReferenceStyle)
System\ServiceModel\Security\SspiNegotiationTokenProvider.cs (2)
119XmlElement rstrClone = (XmlElement) rstr.RequestSecurityTokenResponseXml.CloneNode(true);
System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (67)
34Collection<XmlElement> additionalRequestParameters = new Collection<XmlElement>(); 56foreach (XmlElement parameter in other.additionalRequestParameters) 58this.additionalRequestParameters.Add((XmlElement)parameter.Clone()); 99public Collection<XmlElement> AdditionalRequestParameters 240internal void SetRequestParameters(Collection<XmlElement> requestParameters, TrustDriver trustDriver) 248Collection<XmlElement> unknownRequestParameters = new Collection<XmlElement>(); 250foreach (XmlElement element in requestParameters) 255Collection<XmlElement> requiredClaims; 267Collection<XmlElement> unrecognizedRequiredClaims = new Collection<XmlElement>(); 268foreach (XmlElement claimRequirement in requiredClaims) 312public Collection<XmlElement> CreateRequestParameters(MessageSecurityVersion messageSecurityVersion, SecurityTokenSerializer securityTokenSerializer) 317internal Collection<XmlElement> CreateRequestParameters(TrustDriver driver) 322Collection<XmlElement> result = new Collection<XmlElement>(); 337Collection<XmlElement> claimsElements = new Collection<XmlElement>(); 341XmlElement element = doc.CreateElement(wsidPrefix, "ClaimType", wsidNamespace); 358Collection<XmlElement> trustNormalizedParameters = NormalizeAdditionalParameters(this.additionalRequestParameters, 362foreach (XmlElement parameter in trustNormalizedParameters) 371private Collection<XmlElement> NormalizeAdditionalParameters(Collection<XmlElement> additionalParameters, 382Collection<XmlElement> tmpCollection = new Collection<XmlElement>(); 383foreach (XmlElement e in additionalParameters) 395XmlElement encryptionAlgorithmElement = null; 396XmlElement canonicalizationAlgorithmElement = null; 397XmlElement keyWrapAlgorithmElement = null; 398XmlElement secondaryParameter = null; 426XmlElement child = node as XmlElement; 505Collection<XmlElement> childrenToPromote = null; 514foreach (XmlElement parameter in tmpCollection) 519childrenToPromote = new Collection<XmlElement>(); 523XmlElement innerElement = innerNode as XmlElement; 541XmlElement encryptionElement = null; 544XmlElement canonicalizationElement = null; 547XmlElement requiredClaimsElement = null; 548Collection<XmlElement> requiredClaims = null; 550Collection<XmlElement> processedElements = new Collection<XmlElement>(); 552foreach (XmlElement e in childrenToPromote) 576XmlElement keyWrapAlgorithmElement = null; 582Collection<XmlElement> reqClaims; 639private bool CollectionContainsElementsWithTrustNamespace(Collection<XmlElement> collection, string trustNamespace) 651private bool CanPromoteToRoot(XmlElement innerElement, WSTrustDec2005.DriverDec2005 trust13Driver, bool clientSideClaimTypeRequirementsSpecified) 656Collection<XmlElement> dummyOutParamForRequiredClaims = null; 711internal bool DoAlgorithmsMatch(SecurityAlgorithmSuite algorithmSuite, SecurityStandardsManager standardsManager, out Collection<XmlElement> otherRequestParameters) 718otherRequestParameters = new Collection<XmlElement>(); 721Collection<XmlElement> trustVersionNormalizedParameterCollection; 731trustVersionNormalizedParameterCollection = new Collection<XmlElement>(); 732foreach (XmlElement innerElement in this.AdditionalRequestParameters[0]) 745XmlElement element = trustVersionNormalizedParameterCollection[i]; 849XmlElement claimTypeRequirement = GetClaimTypeRequirement(parameters.AdditionalRequestParameters, standardsManager); 852XmlElement claimTypeElement = claimTypeRequirement.ChildNodes[0] as XmlElement; 882internal static XmlElement GetClaimTypeRequirement(Collection<XmlElement> additionalRequestParameters, SecurityStandardsManager standardsManager) 884foreach (XmlElement requestParameter in additionalRequestParameters) 895Collection<XmlElement> secondaryParameters = new Collection<XmlElement>(); 898XmlElement nodeAsElement = node as XmlElement; 904XmlElement claimTypeRequirement = GetClaimTypeRequirement(secondaryParameters, standardsManager);
System\ServiceModel\Security\Tokens\IssuedSecurityTokenProvider.cs (9)
104public Collection<XmlElement> TokenRequestParameters 437foreach (XmlElement element in TokenRequestParameters) 448XmlElement CreateXmlTokenElement(SecurityToken token, string prefix, string name, string ns, string usage) 499Collection<XmlElement> requestProperties = new Collection<XmlElement>(); 535public Collection<XmlElement> RequestProperties 892Collection<XmlElement> newRequestProperties = new Collection<XmlElement>(); 902XmlElement keyTypeElement = this.StandardsManager.TrustDriver.CreateKeyTypeElement(this.keyType);
System\ServiceModel\Security\TrustDriver.cs (24)
164public abstract XmlElement CreateKeySizeElement(int keySize); 165public abstract XmlElement CreateKeyTypeElement(SecurityKeyType keyType); 166public abstract XmlElement CreateTokenTypeElement(string tokenTypeUri); 167public abstract XmlElement CreateRequiredClaimsElement(IEnumerable<XmlElement> claimsList); 168public abstract XmlElement CreateUseKeyElement(SecurityKeyIdentifier keyIdentifier, SecurityStandardsManager standardsManager); 169public abstract XmlElement CreateSignWithElement(string signatureAlgorithm); 170public abstract XmlElement CreateEncryptWithElement(string encryptionAlgorithm); 171public abstract XmlElement CreateEncryptionAlgorithmElement(string encryptionAlgorithm); 172public abstract XmlElement CreateCanonicalizationAlgorithmElement(string canonicalicationAlgorithm); 173public abstract XmlElement CreateComputedKeyAlgorithmElement(string computedKeyAlgorithm); 174public abstract Collection<XmlElement> ProcessUnknownRequestParameters(Collection<XmlElement> unknownRequestParameters, Collection<XmlElement> originalRequestParameters); 175public abstract bool TryParseKeySizeElement(XmlElement element, out int keySize); 176public abstract bool TryParseKeyTypeElement(XmlElement element, out SecurityKeyType keyType); 177public abstract bool TryParseTokenTypeElement(XmlElement element, out string tokenType); 178public abstract bool TryParseRequiredClaimsElement(XmlElement element, out Collection<XmlElement> requiredClaims); 180internal virtual bool IsSignWithElement(XmlElement element, out string signatureAlgorithm) { signatureAlgorithm = null; return false; } 181internal virtual bool IsEncryptWithElement(XmlElement element, out string encryptWithAlgorithm) { encryptWithAlgorithm = null; return false; } 182internal virtual bool IsEncryptionAlgorithmElement(XmlElement element, out string encryptionAlgorithm) { encryptionAlgorithm = null; return false; } 183internal virtual bool IsCanonicalizationAlgorithmElement(XmlElement element, out string canonicalizationAlgorithm) { canonicalizationAlgorithm = null; return false; } 184internal virtual bool IsKeyWrapAlgorithmElement(XmlElement element, out string keyWrapAlgorithm) { keyWrapAlgorithm = null; return false; }
System\ServiceModel\Security\WSSecureConversation.cs (6)
101public override SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXmlCore(XmlElement issuedTokenXml, 336public override SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXmlCore(XmlElement issuedTokenXml, 351XmlElement element = node as XmlElement; 371protected abstract bool CanReadGeneration(XmlElement element); 373protected abstract UniqueId ReadGeneration(XmlElement element);
System\ServiceModel\Security\WSSecureConversationDec2005.cs (2)
91protected override bool CanReadGeneration(XmlElement element) 102protected override UniqueId ReadGeneration(XmlElement element)
System\ServiceModel\Security\WSSecureConversationFeb2005.cs (2)
83protected override bool CanReadGeneration(XmlElement element) 94protected override UniqueId ReadGeneration(XmlElement element)
System\ServiceModel\Security\WSSecurityJan2004.cs (6)
108public override SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXmlCore(XmlElement issuedTokenXml, 211public override bool CanReadTokenCore(XmlElement element) 221public override SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXmlCore(XmlElement issuedTokenXml, 308public override SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXmlCore(XmlElement issuedTokenXml, 365public override SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXmlCore(XmlElement issuedTokenXml, 497public override SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXmlCore(XmlElement issuedTokenXml,
System\ServiceModel\Security\WSSecurityPolicy.cs (259)
123public virtual XmlElement CreateWsspAssertion(string name) 128public virtual bool IsWsspAssertion(XmlElement assertion) 133public virtual bool IsWsspAssertion(XmlElement assertion, string name) 138public virtual bool IsMsspAssertion(XmlElement assertion, string name) 143public virtual bool TryImportWsspAssertion(ICollection<XmlElement> assertions, string name, out XmlElement assertion) 147foreach (XmlElement e in assertions) 160public virtual bool TryImportWsspAssertion(ICollection<XmlElement> assertions, string name) 165public virtual bool TryImportWsspAssertion(ICollection<XmlElement> assertions, string name, bool isOptional) 167foreach (XmlElement e in assertions) 179public virtual XmlElement CreateMsspAssertion(string name) 184public virtual bool CanImportAssertion(ICollection<XmlElement> assertions) 186foreach (XmlElement e in assertions) 225public virtual bool TryImportMsspAssertion(ICollection<XmlElement> assertions, string name) 227foreach (XmlElement e in assertions) 239public virtual XmlElement CreateWspPolicyWrapper(MetadataExporter exporter, params XmlElement[] nestedAssertions) 241XmlElement result = doc.CreateElement(WspPrefix, PolicyName, exporter.PolicyVersion.Namespace); 245foreach (XmlElement e in nestedAssertions) 257public virtual XmlElement CreateWsspSignedPartsAssertion(MessagePartSpecification parts) 264XmlElement result; 285public virtual XmlElement CreateWsspEncryptedPartsAssertion(MessagePartSpecification parts) 292XmlElement result; 313public virtual MessagePartSpecification TryGetProtectedParts(XmlElement assertion) 323else if (node is XmlElement) 325XmlElement element = (XmlElement)node; 359public virtual bool TryImportWsspEncryptedPartsAssertion(ICollection<XmlElement> assertions, out MessagePartSpecification parts, out XmlElement assertion) 373public virtual bool TryImportWsspSignedPartsAssertion(ICollection<XmlElement> assertions, out MessagePartSpecification parts, out XmlElement assertion) 387public virtual XmlElement CreateWsspHeaderAssertion(XmlQualifiedName header) 389XmlElement result = CreateWsspAssertion(HeaderName); 396public virtual XmlElement CreateWsspSymmetricBindingAssertion(MetadataExporter exporter, PolicyConversionContext policyContext, SymmetricSecurityBindingElement binding) 403XmlElement result = CreateWsspAssertion(SymmetricBindingName); 420public virtual bool TryGetNestedPolicyAlternatives(MetadataImporter importer, XmlElement assertion, out Collection<Collection<XmlElement>> alternatives) 424XmlElement policyElement = null; 427if (node is XmlElement && node.LocalName == PolicyName && (node.NamespaceURI == WspNamespace || node.NamespaceURI == Wsp15Namespace)) 429policyElement = (XmlElement)node; 440IEnumerable<IEnumerable<XmlElement>> enumerableAlternatives = importer.NormalizePolicy(new XmlElement[] { policyElement }); 442alternatives = new Collection<Collection<XmlElement>>(); 443foreach (IEnumerable<XmlElement> enumerableAlternative in enumerableAlternatives) 445Collection<XmlElement> alternative = new Collection<XmlElement>(); 447foreach (XmlElement e in enumerableAlternative) 457public virtual bool TryImportWsspSymmetricBindingAssertion(MetadataImporter importer, PolicyConversionContext policyContext, ICollection<XmlElement> assertions, out SymmetricSecurityBindingElement binding, out XmlElement assertion) 461Collection<Collection<XmlElement>> alternatives; 466foreach (Collection<XmlElement> alternative in alternatives) 494public virtual XmlElement CreateWsspAsymmetricBindingAssertion(MetadataExporter exporter, PolicyConversionContext policyContext, AsymmetricSecurityBindingElement binding) 501XmlElement result = CreateWsspAssertion(AsymmetricBindingName); 519public virtual bool TryImportWsspAsymmetricBindingAssertion(MetadataImporter importer, PolicyConversionContext policyContext, ICollection<XmlElement> assertions, out AsymmetricSecurityBindingElement binding, out XmlElement assertion) 523Collection<Collection<XmlElement>> alternatives; 528foreach (Collection<XmlElement> alternative in alternatives) 557public virtual XmlElement CreateWsspTransportBindingAssertion(MetadataExporter exporter, TransportSecurityBindingElement binding, XmlElement transportTokenAssertion) 559XmlElement result = CreateWsspAssertion(TransportBindingName); 572public virtual bool TryImportWsspTransportBindingAssertion(MetadataImporter importer, ICollection<XmlElement> assertions, out TransportSecurityBindingElement binding, out XmlElement assertion) 576Collection<Collection<XmlElement>> alternatives; 581foreach (Collection<XmlElement> alternative in alternatives) 583XmlElement transportTokenAssertion; 612public virtual XmlElement CreateWsspWssAssertion(MetadataExporter exporter, SecurityBindingElement binding) 644public virtual bool TryImportWsspWssAssertion(MetadataImporter importer, ICollection<XmlElement> assertions, SecurityBindingElement binding, out XmlElement assertion) 656Collection<Collection<XmlElement>> alternatives; 662foreach (Collection<XmlElement> alternative in alternatives) 683foreach (Collection<XmlElement> alternative in alternatives) 715public virtual XmlElement CreateWsspWss10Assertion(MetadataExporter exporter) 717XmlElement result = CreateWsspAssertion(Wss10Name); 728public virtual XmlElement CreateWsspWss11Assertion(MetadataExporter exporter, bool requireSignatureConfirmation) 730XmlElement result = CreateWsspAssertion(Wss11Name); 743public virtual XmlElement CreateWsspAssertionMustSupportRefKeyIdentifierName() 755public virtual XmlElement CreateWsspAssertionMustSupportRefIssuerSerialName() 767public virtual XmlElement CreateWsspAssertionMustSupportRefThumbprintName() 779public virtual XmlElement CreateWsspAssertionMustSupportRefEncryptedKeyName() 792public virtual XmlElement CreateWsspRequireSignatureConformationAssertion(bool requireSignatureConfirmation) 804public abstract XmlElement CreateWsspTrustAssertion(MetadataExporter exporter, SecurityKeyEntropyMode keyEntropyMode); 806public abstract bool TryImportWsspTrustAssertion(MetadataImporter importer, ICollection<XmlElement> assertions, SecurityBindingElement binding, out XmlElement assertion); 808protected XmlElement CreateWsspTrustAssertion(string trustName, MetadataExporter exporter, SecurityKeyEntropyMode keyEntropyMode) 810XmlElement result = CreateWsspAssertion(trustName); 822protected bool TryImportWsspTrustAssertion(string trustName, MetadataImporter importer, ICollection<XmlElement> assertions, SecurityBindingElement binding, out XmlElement assertion) 834Collection<Collection<XmlElement>> alternatives; 839foreach (Collection<XmlElement> alternative in alternatives) 880public virtual XmlElement CreateWsspRequireClientEntropyAssertion(SecurityKeyEntropyMode keyEntropyMode) 892public virtual XmlElement CreateWsspRequireServerEntropyAssertion(SecurityKeyEntropyMode keyEntropyMode) 904public virtual Collection<XmlElement> CreateWsspSupportingTokensAssertion(MetadataExporter exporter, Collection<SecurityTokenParameters> signed, Collection<SecurityTokenParameters> signedEncrypted, Collection<SecurityTokenParameters> endorsing, Collection<SecurityTokenParameters> signedEndorsing, Collection<SecurityTokenParameters> optionalSigned, Collection<SecurityTokenParameters> optionalSignedEncrypted, Collection<SecurityTokenParameters> optionalEndorsing, Collection<SecurityTokenParameters> optionalSignedEndorsing) 909public virtual Collection<XmlElement> CreateWsspSupportingTokensAssertion(MetadataExporter exporter, Collection<SecurityTokenParameters> signed, Collection<SecurityTokenParameters> signedEncrypted, Collection<SecurityTokenParameters> endorsing, Collection<SecurityTokenParameters> signedEndorsing, Collection<SecurityTokenParameters> optionalSigned, Collection<SecurityTokenParameters> optionalSignedEncrypted, Collection<SecurityTokenParameters> optionalEndorsing, Collection<SecurityTokenParameters> optionalSignedEndorsing, AddressingVersion addressingVersion) 911Collection<XmlElement> supportingTokenAssertions = new Collection<XmlElement>(); 914XmlElement supportingTokenAssertion = CreateWsspSignedSupportingTokensAssertion(exporter, signed, signedEncrypted, optionalSigned, optionalSignedEncrypted); 931protected XmlElement CreateWsspSignedSupportingTokensAssertion(MetadataExporter exporter, Collection<SecurityTokenParameters> signed, Collection<SecurityTokenParameters> signedEncrypted, Collection<SecurityTokenParameters> optionalSigned, Collection<SecurityTokenParameters> optionalSignedEncrypted) 933XmlElement result; 944XmlElement policy = CreateWspPolicyWrapper(exporter); 982protected XmlElement CreateWsspEndorsingSupportingTokensAssertion(MetadataExporter exporter, Collection<SecurityTokenParameters> endorsing, Collection<SecurityTokenParameters> optionalEndorsing, AddressingVersion addressingVersion) 987protected XmlElement CreateWsspSignedEndorsingSupportingTokensAssertion(MetadataExporter exporter, Collection<SecurityTokenParameters> signedEndorsing, Collection<SecurityTokenParameters> optionalSignedEndorsing, AddressingVersion addressingVersion) 992protected XmlElement CreateWsspiSupportingTokensAssertion(MetadataExporter exporter, Collection<SecurityTokenParameters> endorsing, Collection<SecurityTokenParameters> optionalEndorsing, AddressingVersion addressingVersion, string assertionName) 994XmlElement result; 1004XmlElement policy = CreateWspPolicyWrapper(exporter); 1044public virtual bool TryImportWsspSupportingTokensAssertion(MetadataImporter importer, PolicyConversionContext policyContext, ICollection<XmlElement> assertions, Collection<SecurityTokenParameters> signed, Collection<SecurityTokenParameters> signedEncrypted, Collection<SecurityTokenParameters> endorsing, Collection<SecurityTokenParameters> signedEndorsing, Collection<SecurityTokenParameters> optionalSigned, Collection<SecurityTokenParameters> optionalSignedEncrypted, Collection<SecurityTokenParameters> optionalEndorsing, Collection<SecurityTokenParameters> optionalSignedEndorsing) 1046XmlElement assertion; 1089protected bool TryImportWsspSignedSupportingTokensAssertion(MetadataImporter importer, PolicyConversionContext policyContext, ICollection<XmlElement> assertions, Collection<SecurityTokenParameters> signed, Collection<SecurityTokenParameters> signedEncrypted, Collection<SecurityTokenParameters> optionalSigned, Collection<SecurityTokenParameters> optionalSignedEncrypted, out XmlElement assertion) 1110Collection<Collection<XmlElement>> alternatives; 1115foreach (Collection<XmlElement> alternative in alternatives) 1169protected bool TryImportWsspEndorsingSupportingTokensAssertion(MetadataImporter importer, PolicyConversionContext policyContext, ICollection<XmlElement> assertions, Collection<SecurityTokenParameters> endorsing, Collection<SecurityTokenParameters> optionalEndorsing, out XmlElement assertion) 1182Collection<Collection<XmlElement>> alternatives; 1187foreach (Collection<XmlElement> alternative in alternatives) 1233protected bool TryImportWsspSignedEndorsingSupportingTokensAssertion(MetadataImporter importer, PolicyConversionContext policyContext, ICollection<XmlElement> assertions, Collection<SecurityTokenParameters> signedEndorsing, Collection<SecurityTokenParameters> optionalSignedEndorsing, out XmlElement assertion) 1246Collection<Collection<XmlElement>> alternatives; 1251foreach (Collection<XmlElement> alternative in alternatives) 1297public virtual XmlElement CreateWsspEncryptSignatureAssertion(PolicyConversionContext policyContext, SecurityBindingElement binding) 1403public virtual XmlElement CreateWsspEncryptBeforeSigningAssertion(MessageProtectionOrder protectionOrder) 1415public virtual XmlElement CreateWsspProtectTokensAssertion(SecurityBindingElement sbe) 1428public virtual bool TryImportMessageProtectionOrderAssertions(ICollection<XmlElement> assertions, out MessageProtectionOrder order) 1446public virtual XmlElement CreateWsspIncludeTimestampAssertion(bool includeTimestamp) 1458public virtual bool TryImportWsspIncludeTimestampAssertion(ICollection<XmlElement> assertions, SecurityBindingElement binding) 1464public virtual bool TryImportWsspProtectTokensAssertion(ICollection<XmlElement> assertions, out bool protectTokens) 1478public virtual XmlElement CreateWsspLayoutAssertion(MetadataExporter exporter, SecurityHeaderLayout layout) 1480XmlElement result = CreateWsspAssertion(LayoutName); 1490public virtual bool TryImportWsspLayoutAssertion(MetadataImporter importer, ICollection<XmlElement> assertions, SecurityBindingElement binding) 1493XmlElement assertion; 1498Collection<Collection<XmlElement>> alternatives; 1502foreach (Collection<XmlElement> alternative in alternatives) 1523public virtual XmlElement CreateLayoutAssertion(SecurityHeaderLayout layout) 1540public virtual bool TryImportLayoutAssertion(ICollection<XmlElement> assertions, out SecurityHeaderLayout layout) 1569public virtual XmlElement CreateWsspAlgorithmSuiteAssertion(MetadataExporter exporter, SecurityAlgorithmSuite suite) 1571XmlElement result = CreateWsspAssertion(AlgorithmSuiteName); 1581public virtual bool TryImportWsspAlgorithmSuiteAssertion(MetadataImporter importer, ICollection<XmlElement> assertions, SecurityBindingElement binding) 1584XmlElement assertion; 1585Collection<Collection<XmlElement>> alternatives; 1590foreach (Collection<XmlElement> alternative in alternatives) 1608public virtual XmlElement CreateAlgorithmSuiteAssertion(SecurityAlgorithmSuite suite) 1615XmlElement result; 1657public virtual bool TryImportAlgorithmSuiteAssertion(ICollection<XmlElement> assertions, out SecurityAlgorithmSuite suite) 1697public virtual XmlElement CreateWsspProtectionTokenAssertion(MetadataExporter exporter, SecurityTokenParameters parameters) 1699XmlElement result = CreateWsspAssertion(ProtectionTokenName); 1711public virtual bool TryImportWsspProtectionTokenAssertion(MetadataImporter importer, PolicyConversionContext policyContext, ICollection<XmlElement> assertions, SymmetricSecurityBindingElement binding) 1715XmlElement assertion; 1716Collection<Collection<XmlElement>> alternatives; 1720foreach (Collection<XmlElement> alternative in alternatives) 1737public virtual bool TryImportWsspInitiatorTokenAssertion(MetadataImporter importer, PolicyConversionContext policyContext, ICollection<XmlElement> assertions, AsymmetricSecurityBindingElement binding) 1741XmlElement assertion; 1742Collection<Collection<XmlElement>> alternatives; 1746foreach (Collection<XmlElement> alternative in alternatives) 1763public virtual bool TryImportWsspRecipientTokenAssertion(MetadataImporter importer, PolicyConversionContext policyContext, ICollection<XmlElement> assertions, AsymmetricSecurityBindingElement binding) 1767XmlElement assertion; 1768Collection<Collection<XmlElement>> alternatives; 1772foreach (Collection<XmlElement> alternative in alternatives) 1789public virtual XmlElement CreateWsspInitiatorTokenAssertion(MetadataExporter exporter, SecurityTokenParameters parameters) 1791XmlElement result = CreateWsspAssertion(InitiatorTokenName); 1802public virtual XmlElement CreateWsspRecipientTokenAssertion(MetadataExporter exporter, SecurityTokenParameters parameters) 1804XmlElement result = CreateWsspAssertion(RecipientTokenName); 1815public virtual XmlElement CreateWsspTransportTokenAssertion(MetadataExporter exporter, XmlElement transportTokenAssertion) 1822XmlElement result = CreateWsspAssertion(TransportTokenName); 1827(XmlElement)(doc.ImportNode(transportTokenAssertion, true)) 1833public virtual bool TryImportWsspTransportTokenAssertion(MetadataImporter importer, ICollection<XmlElement> assertions, out XmlElement transportBindingAssertion) 1837XmlElement assertion; 1838Collection<Collection<XmlElement>> alternatives; 1852public virtual XmlElement CreateTokenAssertion(MetadataExporter exporter, SecurityTokenParameters parameters) 1857public virtual XmlElement CreateTokenAssertion(MetadataExporter exporter, SecurityTokenParameters parameters, bool isOptional) 1864XmlElement result; 1911public virtual bool TryImportTokenAssertion(MetadataImporter importer, PolicyConversionContext policyContext, Collection<XmlElement> assertions, out SecurityTokenParameters parameters, out bool isOptional) 1918XmlElement tokenAssertion = assertions[0]; 1957public virtual void SetIncludeTokenValue(XmlElement tokenAssertion, SecurityTokenInclusionMode inclusionMode) 1978public virtual bool TryGetIncludeTokenValue(XmlElement assertion, out SecurityTokenInclusionMode mode) 2009public virtual XmlElement CreateWsspRequireDerivedKeysAssertion(bool requireDerivedKeys) 2021public virtual bool TryImportWsspRequireDerivedKeysAssertion(ICollection<XmlElement> assertions, SecurityTokenParameters parameters) 2027public virtual XmlElement CreateWsspKerberosTokenAssertion(MetadataExporter exporter, KerberosSecurityTokenParameters parameters) 2029XmlElement result = CreateWsspAssertion(KerberosTokenName); 2040public virtual bool TryImportWsspKerberosTokenAssertion(MetadataImporter importer, XmlElement assertion, out SecurityTokenParameters parameters) 2045Collection<Collection<XmlElement>> alternatives; 2052foreach (Collection<XmlElement> alternative in alternatives) 2079public virtual XmlElement CreateX509ReferenceStyleAssertion(X509KeyIdentifierClauseType referenceStyle) 2102public virtual bool TryImportX509ReferenceStyleAssertion(ICollection<XmlElement> assertions, X509SecurityTokenParameters parameters) 2120public virtual XmlElement CreateWsspX509TokenAssertion(MetadataExporter exporter, X509SecurityTokenParameters parameters) 2122XmlElement result = CreateWsspAssertion(X509TokenName); 2134public virtual bool TryImportWsspX509TokenAssertion(MetadataImporter importer, XmlElement assertion, out SecurityTokenParameters parameters) 2139Collection<Collection<XmlElement>> alternatives; 2146foreach (Collection<XmlElement> alternative in alternatives) 2175public virtual XmlElement CreateWsspUsernameTokenAssertion(MetadataExporter exporter, UserNameSecurityTokenParameters parameters) 2177XmlElement result = CreateWsspAssertion(UsernameTokenName); 2187public virtual bool TryImportWsspUsernameTokenAssertion(MetadataImporter importer, XmlElement assertion, out SecurityTokenParameters parameters) 2192Collection<Collection<XmlElement>> alternatives; 2199foreach (Collection<XmlElement> alternative in alternatives) 2220public virtual XmlElement CreateWsspRsaTokenAssertion(RsaSecurityTokenParameters parameters) 2222XmlElement result = CreateMsspAssertion(RsaTokenName); 2227public virtual bool TryImportWsspRsaTokenAssertion(MetadataImporter importer, XmlElement assertion, out SecurityTokenParameters parameters) 2232Collection<Collection<XmlElement>> alternatives; 2245public virtual XmlElement CreateReferenceStyleAssertion(SecurityTokenReferenceStyle referenceStyle) 2258public virtual bool TryImportReferenceStyleAssertion(ICollection<XmlElement> assertions, IssuedSecurityTokenParameters parameters) 2272public virtual XmlElement CreateWsspIssuerElement(EndpointAddress issuerAddress, EndpointAddress issuerMetadataAddress) 2274XmlElement result; 2313result = (XmlElement)doc.ReadNode(new XmlTextReader(stream) { DtdProcessing = DtdProcessing.Prohibit }); 2318public virtual bool TryGetIssuer(XmlElement assertion, out EndpointAddress issuer, out EndpointAddress issuerMetadata) 2326if (node is XmlElement && IsWsspAssertion((XmlElement)node, IssuerName)) 2372public virtual XmlElement CreateWsspIssuedTokenAssertion(MetadataExporter exporter, IssuedSecurityTokenParameters parameters) 2374XmlElement result = CreateWsspAssertion(IssuedTokenName); 2376XmlElement issuerAssertion = CreateWsspIssuerElement(parameters.IssuerAddress, parameters.IssuerMetadataAddress); 2381XmlElement tokenTemplate = CreateWsspAssertion(RequestSecurityTokenTemplateName); 2383foreach (XmlElement p in parameters.CreateRequestParameters(driver)) 2397public virtual bool TryGetRequestSecurityTokenTemplate(XmlElement assertion, out Collection<XmlElement> requestParameters) 2403if (node is XmlElement && IsWsspAssertion((XmlElement)node, RequestSecurityTokenTemplateName)) 2405requestParameters = new Collection<XmlElement>(); 2408if (p is XmlElement) 2410requestParameters.Add((XmlElement)p); 2419public virtual bool TryImportWsspIssuedTokenAssertion(MetadataImporter importer, PolicyConversionContext policyContext, XmlElement assertion, out SecurityTokenParameters parameters) 2424Collection<Collection<XmlElement>> alternatives; 2427Collection<XmlElement> requestSecurityTokenTemplate; 2436foreach (Collection<XmlElement> alternative in alternatives) 2475public virtual XmlElement CreateWsspMustNotSendCancelAssertion(bool requireCancel) 2479XmlElement result = CreateWsspAssertion(MustNotSendCancelName); 2488public virtual bool TryImportWsspMustNotSendCancelAssertion(ICollection<XmlElement> assertions, out bool requireCancellation) 2494public virtual XmlElement CreateWsspSpnegoContextTokenAssertion(MetadataExporter exporter, SspiSecurityTokenParameters parameters) 2496XmlElement result = CreateWsspAssertion(SpnegoContextTokenName); 2507public virtual bool TryImportWsspSpnegoContextTokenAssertion(MetadataImporter importer, XmlElement assertion, out SecurityTokenParameters parameters) 2512Collection<Collection<XmlElement>> alternatives; 2519foreach (Collection<XmlElement> alternative in alternatives) 2549public abstract XmlElement CreateWsspHttpsTokenAssertion(MetadataExporter exporter, HttpsTransportBindingElement httpsBinding); 2551public abstract bool TryImportWsspHttpsTokenAssertion(MetadataImporter importer, ICollection<XmlElement> assertions, HttpsTransportBindingElement httpsBinding); 2553public virtual bool ContainsWsspHttpsTokenAssertion(ICollection<XmlElement> assertions) 2558public virtual XmlElement CreateMsspRequireClientCertificateAssertion(bool requireClientCertificate) 2570public virtual bool TryImportMsspRequireClientCertificateAssertion(ICollection<XmlElement> assertions, SslSecurityTokenParameters parameters) 2576public virtual XmlElement CreateMsspSslContextTokenAssertion(MetadataExporter exporter, SslSecurityTokenParameters parameters) 2578XmlElement result = CreateMsspAssertion(SslContextTokenName); 2590public virtual bool TryImportMsspSslContextTokenAssertion(MetadataImporter importer, XmlElement assertion, out SecurityTokenParameters parameters) 2595Collection<Collection<XmlElement>> alternatives; 2602foreach (Collection<XmlElement> alternative in alternatives) 2633public virtual XmlElement CreateWsspBootstrapPolicyAssertion(MetadataExporter exporter, SecurityBindingElement bootstrapSecurity) 2689XmlElement nestedPolicy = CreateWspPolicyWrapper( 2693foreach (XmlElement e in sp.FilterWsspPolicyAssertions(policyContext.GetBindingAssertions())) 2697XmlElement result = CreateWsspAssertion(BootstrapPolicyName); 2703public virtual ICollection<XmlElement> FilterWsspPolicyAssertions(ICollection<XmlElement> policyAssertions) 2705Collection<XmlElement> result = new Collection<XmlElement>(); 2707foreach (XmlElement assertion in policyAssertions) 2714public virtual bool TryImportWsspBootstrapPolicyAssertion(MetadataImporter importer, ICollection<XmlElement> assertions, SecureConversationSecurityTokenParameters parameters) 2718XmlElement assertion; 2719Collection<Collection<XmlElement>> alternatives; 2771public virtual XmlElement CreateWsspSecureConversationTokenAssertion(MetadataExporter exporter, SecureConversationSecurityTokenParameters parameters) 2773XmlElement result = CreateWsspAssertion(SecureConversationTokenName); 2785public virtual bool TryImportWsspSecureConversationTokenAssertion(MetadataImporter importer, XmlElement assertion, out SecurityTokenParameters parameters) 2790Collection<Collection<XmlElement>> alternatives; 2797foreach (Collection<XmlElement> alternative in alternatives) 3068public static bool TryGetSecurityPolicyDriver(ICollection<XmlElement> assertions, out WSSecurityPolicy securityPolicy) 3096public bool TryGetSecurityPolicyDriver(ICollection<XmlElement> assertions, out WSSecurityPolicy securityPolicy)
System\ServiceModel\Security\WSSecurityPolicy11.cs (10)
44public override XmlElement CreateWsspMustNotSendCancelAssertion(bool requireCancel) 48XmlElement result = CreateMsspAssertion(MustNotSendCancelName); 58public override bool TryImportWsspMustNotSendCancelAssertion(ICollection<XmlElement> assertions, out bool requireCancellation) 64public override XmlElement CreateWsspHttpsTokenAssertion(MetadataExporter exporter, HttpsTransportBindingElement httpsBinding) 66XmlElement result = CreateWsspAssertion(HttpsTokenName); 71public override bool TryImportWsspHttpsTokenAssertion(MetadataImporter importer, ICollection<XmlElement> assertions, HttpsTransportBindingElement httpsBinding) 79XmlElement assertion; 108public override XmlElement CreateWsspTrustAssertion(MetadataExporter exporter, SecurityKeyEntropyMode keyEntropyMode) 113public override bool TryImportWsspTrustAssertion(MetadataImporter importer, ICollection<XmlElement> assertions, SecurityBindingElement binding, out XmlElement assertion)
System\ServiceModel\Security\WSSecurityPolicy12.cs (59)
51public override XmlElement CreateWsspHttpsTokenAssertion(MetadataExporter exporter, HttpsTransportBindingElement httpsBinding) 56XmlElement result = CreateWsspAssertion(WSSecurityPolicy.HttpsTokenName); 61XmlElement policy = CreateWspPolicyWrapper(exporter); 79public override bool TryImportWsspHttpsTokenAssertion(MetadataImporter importer, ICollection<XmlElement> assertions, HttpsTransportBindingElement httpsBinding) 87XmlElement assertion; 91XmlElement policyElement = null; 94if (node is XmlElement && node.LocalName == WSSecurityPolicy.PolicyName && (node.NamespaceURI == WSSecurityPolicy.WspNamespace || node.NamespaceURI == WSSecurityPolicy.Wsp15Namespace)) 96policyElement = (XmlElement)node; 105if (node is XmlElement && node.NamespaceURI == this.WsspNamespaceUri) 131public override Collection<XmlElement> CreateWsspSupportingTokensAssertion(MetadataExporter exporter, Collection<SecurityTokenParameters> signed, Collection<SecurityTokenParameters> signedEncrypted, Collection<SecurityTokenParameters> endorsing, Collection<SecurityTokenParameters> signedEndorsing, Collection<SecurityTokenParameters> optionalSigned, Collection<SecurityTokenParameters> optionalSignedEncrypted, Collection<SecurityTokenParameters> optionalEndorsing, Collection<SecurityTokenParameters> optionalSignedEndorsing, AddressingVersion addressingVersion) 133Collection<XmlElement> supportingTokenAssertions = new Collection<XmlElement>(); 136XmlElement supportingTokenAssertion = CreateWsspSignedSupportingTokensAssertion(exporter, signed, optionalSigned); 158public override XmlElement CreateWsspSpnegoContextTokenAssertion(MetadataExporter exporter, SspiSecurityTokenParameters parameters) 160XmlElement result = CreateWsspAssertion(SpnegoContextTokenName); 174public override XmlElement CreateMsspSslContextTokenAssertion(MetadataExporter exporter, SslSecurityTokenParameters parameters) 176XmlElement result = CreateMsspAssertion(SslContextTokenName); 191public override XmlElement CreateWsspSecureConversationTokenAssertion(MetadataExporter exporter, SecureConversationSecurityTokenParameters parameters) 193XmlElement result = CreateWsspAssertion(SecureConversationTokenName); 207XmlElement CreateWsspMustNotSendAmendAssertion() 209XmlElement result = CreateWsspAssertion(MustNotSendAmendName); 213XmlElement CreateWsspMustNotSendRenewAssertion() 215XmlElement result = CreateWsspAssertion(MustNotSendRenewName); 219public override bool TryImportWsspSpnegoContextTokenAssertion(MetadataImporter importer, XmlElement assertion, out SecurityTokenParameters parameters) 224Collection<Collection<XmlElement>> alternatives; 231foreach (Collection<XmlElement> alternative in alternatives) 268public override bool TryImportMsspSslContextTokenAssertion(MetadataImporter importer, XmlElement assertion, out SecurityTokenParameters parameters) 273Collection<Collection<XmlElement>> alternatives; 280foreach (Collection<XmlElement> alternative in alternatives) 318public override bool TryImportWsspSecureConversationTokenAssertion(MetadataImporter importer, XmlElement assertion, out SecurityTokenParameters parameters) 323Collection<Collection<XmlElement>> alternatives; 330foreach (Collection<XmlElement> alternative in alternatives) 365public virtual bool TryImportWsspMustNotSendAmendAssertion(ICollection<XmlElement> assertions) 371public virtual bool TryImportWsspMustNotSendRenewAssertion(ICollection<XmlElement> assertions, out bool canRenewSession) 377XmlElement CreateWsspSignedSupportingTokensAssertion(MetadataExporter exporter, Collection<SecurityTokenParameters> signed, Collection<SecurityTokenParameters> optionalSigned) 379XmlElement result; 388XmlElement policy = CreateWspPolicyWrapper(exporter); 412XmlElement CreateWsspSignedEncryptedSupportingTokensAssertion(MetadataExporter exporter, Collection<SecurityTokenParameters> signedEncrypted, Collection<SecurityTokenParameters> optionalSignedEncrypted) 414XmlElement result; 423XmlElement policy = CreateWspPolicyWrapper(exporter); 447public override bool TryImportWsspSupportingTokensAssertion(MetadataImporter importer, PolicyConversionContext policyContext, ICollection<XmlElement> assertions, Collection<SecurityTokenParameters> signed, Collection<SecurityTokenParameters> signedEncrypted, Collection<SecurityTokenParameters> endorsing, Collection<SecurityTokenParameters> signedEndorsing, Collection<SecurityTokenParameters> optionalSigned, Collection<SecurityTokenParameters> optionalSignedEncrypted, Collection<SecurityTokenParameters> optionalEndorsing, Collection<SecurityTokenParameters> optionalSignedEndorsing) 449XmlElement assertion; 502bool TryImportWsspSignedSupportingTokensAssertion(MetadataImporter importer, PolicyConversionContext policyContext, ICollection<XmlElement> assertions, Collection<SecurityTokenParameters> signed, Collection<SecurityTokenParameters> optionalSigned, out XmlElement assertion) 515Collection<Collection<XmlElement>> alternatives; 520foreach (Collection<XmlElement> alternative in alternatives) 550bool TryImportWsspSignedEncryptedSupportingTokensAssertion(MetadataImporter importer, PolicyConversionContext policyContext, ICollection<XmlElement> assertions, Collection<SecurityTokenParameters> signedEncrypted, Collection<SecurityTokenParameters> optionalSignedEncrypted, out XmlElement assertion) 563Collection<Collection<XmlElement>> alternatives; 568foreach (Collection<XmlElement> alternative in alternatives) 598public override bool TryImportWsspRequireDerivedKeysAssertion(ICollection<XmlElement> assertions, SecurityTokenParameters parameters) 609XmlElement assertion = null; 617public override XmlElement CreateWsspTrustAssertion(MetadataExporter exporter, SecurityKeyEntropyMode keyEntropyMode) 622public override bool TryImportWsspTrustAssertion(MetadataImporter importer, ICollection<XmlElement> assertions, SecurityBindingElement binding, out XmlElement assertion) 627public override XmlElement CreateWsspRsaTokenAssertion(RsaSecurityTokenParameters parameters) 629XmlElement result = CreateWsspAssertion(KeyValueTokenName); 634public override bool TryImportWsspRsaTokenAssertion(MetadataImporter importer, XmlElement assertion, out SecurityTokenParameters parameters) 639Collection<Collection<XmlElement>> alternatives;
System\ServiceModel\Security\WSSecurityTokenSerializer.cs (5)
426public virtual bool TryCreateKeyIdentifierClauseFromTokenXml(XmlElement element, SecurityTokenReferenceStyle tokenReferenceStyle, out SecurityKeyIdentifierClause securityKeyIdentifierClause) 449public virtual SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXml(XmlElement element, SecurityTokenReferenceStyle tokenReferenceStyle) 521protected static SecurityKeyIdentifierClause CreateDirectReference(XmlElement issuedTokenXml, string idAttributeLocalName, string idAttributeNamespace, Type tokenType) 531public virtual bool CanReadTokenCore(XmlElement element) 554public abstract SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXmlCore(XmlElement issuedTokenXml, SecurityTokenReferenceStyle tokenReferenceStyle);
System\ServiceModel\Security\WSTrust.cs (91)
94public override bool CanReadTokenCore(XmlElement element) 113public override SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXmlCore(XmlElement issuedTokenXml, 249XmlElement rstXml = (doc.ReadNode(reader) as XmlElement); 262XmlElement child = (rstXml.ChildNodes[i] as XmlElement); 331XmlElement rstrXml; 334rstrXml = (doc.ReadNode(reader2) as XmlElement); 358XmlElement child = (rstrXml.ChildNodes[i] as XmlElement); 367XmlElement proofXml = XmlHelper.GetChildElement(child); 380XmlElement createdXml = XmlHelper.GetChildElement(child, UtilityStrings.CreatedElement, UtilityStrings.Namespace); 386XmlElement expiresXml = XmlHelper.GetChildElement(child, UtilityStrings.ExpiresElement, UtilityStrings.Namespace); 420XmlElement GetAppliesToElement(XmlElement rootElement) 428XmlElement elem = (rootElement.ChildNodes[i] as XmlElement); 440T GetAppliesTo<T>(XmlElement rootXml, XmlObjectSerializer serializer) 442XmlElement appliesToElement = GetAppliesToElement(rootXml); 481void GetAppliesToQName(XmlElement rootElement, out string localName, out string namespaceUri) 484XmlElement appliesToElement = GetAppliesToElement(rootElement); 519XmlElement element = rstr.RequestSecurityTokenResponseXml.ChildNodes[i] as XmlElement; 524XmlElement combinedHashElement = XmlHelper.GetChildElement(element); 553BinaryNegotiation GetBinaryNegotiation(XmlElement rootElement) 561XmlElement elem = rootElement.ChildNodes[i] as XmlElement; 589SecurityToken GetEntropy(XmlElement rootElement, SecurityTokenResolver resolver) 597XmlElement element = rootElement.ChildNodes[i] as XmlElement; 602XmlElement tokenXml = XmlHelper.GetChildElement(element); 613void GetIssuedAndProofXml(RequestSecurityTokenResponse rstr, out XmlElement issuedTokenXml, out XmlElement proofTokenXml) 621XmlElement elem = rstr.RequestSecurityTokenResponseXml.ChildNodes[i] as XmlElement; 685XmlElement proofXml; 686XmlElement issuedTokenXml; 794XmlElement proofXml; 795XmlElement issuedTokenXml; 839public static BinaryNegotiation ReadBinaryNegotiation(XmlElement elem) 890protected virtual void ReadReferences(XmlElement rstrXml, out SecurityKeyIdentifierClause requestedAttachedReference, 893XmlElement issuedTokenXml = null; 898XmlElement child = rstrXml.ChildNodes[i] as XmlElement; 961internal SecurityKeyIdentifierClause CreateGenericXmlSecurityKeyIdentifierClause(XmlNodeReader reader, XmlElement keyIdentifierReferenceXmlElement) 974internal SecurityKeyIdentifierClause GetKeyIdentifierXmlReferenceClause(XmlElement keyIdentifierReferenceXmlElement) 986protected virtual bool ReadRequestedTokenClosed(XmlElement rstrXml) 991protected virtual void ReadTargets(XmlElement rstXml, out SecurityKeyIdentifierClause renewTarget, out SecurityKeyIdentifierClause closeTarget) 1089foreach (XmlElement property in rst.RequestProperties) 1273public override bool TryParseKeySizeElement(XmlElement element, out int keySize) 1289public override XmlElement CreateKeySizeElement(int keySize) 1296XmlElement result = doc.CreateElement(this.DriverDictionary.Prefix.Value, this.DriverDictionary.KeySize.Value, 1302public override XmlElement CreateKeyTypeElement(SecurityKeyType keyType) 1312public override bool TryParseKeyTypeElement(XmlElement element, out SecurityKeyType keyType) 1333public bool TryParseSymmetricKeyElement(XmlElement element) 1343XmlElement CreateSymmetricKeyTypeElement() 1346XmlElement result = doc.CreateElement(this.DriverDictionary.Prefix.Value, this.DriverDictionary.KeyType.Value, 1352bool TryParsePublicKeyElement(XmlElement element) 1362XmlElement CreatePublicKeyTypeElement() 1365XmlElement result = doc.CreateElement(this.DriverDictionary.Prefix.Value, this.DriverDictionary.KeyType.Value, 1371public override bool TryParseTokenTypeElement(XmlElement element, out string tokenType) 1387public override XmlElement CreateTokenTypeElement(string tokenTypeUri) 1394XmlElement result = doc.CreateElement(this.DriverDictionary.Prefix.Value, this.DriverDictionary.TokenType.Value, 1400public override XmlElement CreateUseKeyElement(SecurityKeyIdentifier keyIdentifier, SecurityStandardsManager standardsManager) 1411XmlElement result = doc.CreateElement(this.DriverDictionary.UseKey.Value, this.DriverDictionary.Namespace.Value); 1430public override XmlElement CreateSignWithElement(string signatureAlgorithm) 1437XmlElement result = doc.CreateElement(this.DriverDictionary.Prefix.Value, this.DriverDictionary.SignWith.Value, 1443internal override bool IsSignWithElement(XmlElement element, out string signatureAlgorithm) 1448public override XmlElement CreateEncryptWithElement(string encryptionAlgorithm) 1455XmlElement result = doc.CreateElement(this.DriverDictionary.Prefix.Value, this.DriverDictionary.EncryptWith.Value, 1461public override XmlElement CreateEncryptionAlgorithmElement(string encryptionAlgorithm) 1468XmlElement result = doc.CreateElement(this.DriverDictionary.Prefix.Value, this.DriverDictionary.EncryptionAlgorithm.Value, 1474internal override bool IsEncryptWithElement(XmlElement element, out string encryptWithAlgorithm) 1479internal override bool IsEncryptionAlgorithmElement(XmlElement element, out string encryptionAlgorithm) 1484public override XmlElement CreateComputedKeyAlgorithmElement(string algorithm) 1491XmlElement result = doc.CreateElement(this.DriverDictionary.Prefix.Value, this.DriverDictionary.ComputedKeyAlgorithm.Value, 1497public override XmlElement CreateCanonicalizationAlgorithmElement(string algorithm) 1504XmlElement result = doc.CreateElement(this.DriverDictionary.Prefix.Value, this.DriverDictionary.CanonicalizationAlgorithm.Value, 1510internal override bool IsCanonicalizationAlgorithmElement(XmlElement element, out string canonicalizationAlgorithm) 1515public override bool TryParseRequiredClaimsElement(XmlElement element, out System.Collections.ObjectModel.Collection<XmlElement> requiredClaims) 1523requiredClaims = new System.Collections.ObjectModel.Collection<XmlElement>(); 1525if (node is XmlElement) 1529requiredClaims.Add((XmlElement)node); 1538public override XmlElement CreateRequiredClaimsElement(IEnumerable<XmlElement> claimsList) 1545XmlElement result = doc.CreateElement(this.DriverDictionary.Prefix.Value, this.DriverDictionary.Claims.Value, 1547foreach (XmlElement claimElement in claimsList) 1549XmlElement element = (XmlElement)doc.ImportNode(claimElement, true); 1651protected static bool CheckElement(XmlElement element, string name, string ns, out string value)
System\ServiceModel\Security\WSTrustDec2005.cs (16)
70public override XmlElement CreateKeyTypeElement(SecurityKeyType keyType) 75XmlElement result = doc.CreateElement(this.DriverDictionary.Prefix.Value, this.DriverDictionary.KeyType.Value, 84public override bool TryParseKeyTypeElement(XmlElement element, out SecurityKeyType keyType) 100public override XmlElement CreateRequiredClaimsElement(IEnumerable<XmlElement> claimsList) 102XmlElement result = base.CreateRequiredClaimsElement(claimsList); 130public override Collection<XmlElement> ProcessUnknownRequestParameters(Collection<XmlElement> unknownRequestParameters, Collection<XmlElement> originalRequestParameters) 139XmlElement secondaryParamElement = originalRequestParameters[0].OwnerDocument.CreateElement(DXD.TrustDec2005Dictionary.Prefix.Value, DXD.TrustDec2005Dictionary.SecondaryParameters.Value, DXD.TrustDec2005Dictionary.Namespace.Value); 145Collection<XmlElement> tempCollection = new Collection<XmlElement>(); 153internal virtual bool IsSecondaryParametersElement(XmlElement element) 159public virtual XmlElement CreateKeyWrapAlgorithmElement(string keyWrapAlgorithm) 166XmlElement result = doc.CreateElement(DXD.TrustDec2005Dictionary.Prefix.Value, DXD.TrustDec2005Dictionary.KeyWrapAlgorithm.Value, 172internal override bool IsKeyWrapAlgorithmElement(XmlElement element, out string keyWrapAlgorithm)
System\ServiceModel\Security\WSTrustFeb2005.cs (13)
118public override Collection<XmlElement> ProcessUnknownRequestParameters(Collection<XmlElement> unknownRequestParameters, Collection<XmlElement> originalRequestParameters) 123protected override void ReadReferences(XmlElement rstrXml, out SecurityKeyIdentifierClause requestedAttachedReference, 126XmlElement issuedTokenXml = null; 131XmlElement child = rstrXml.ChildNodes[i] as XmlElement; 170protected override bool ReadRequestedTokenClosed(XmlElement rstrXml) 174XmlElement child = (rstrXml.ChildNodes[i] as XmlElement); 186protected override void ReadTargets(XmlElement rstXml, out SecurityKeyIdentifierClause renewTarget, out SecurityKeyIdentifierClause closeTarget) 193XmlElement child = (rstXml.ChildNodes[i] as XmlElement);
System\ServiceModel\Security\XmlHelper.cs (12)
49internal static XmlElement GetChildElement(XmlElement parent) 56XmlElement result = null; 66result = ((XmlElement) child); 82internal static XmlElement GetChildElement(XmlElement parent, string childLocalName, string childNamespace) 101return ((XmlElement) child); 175internal static void OnChildNodeTypeMissing(XmlElement parent, XmlNodeType expectedNodeType) 185internal static void OnEmptyElementError(XmlElement e) 215internal static void OnUnexpectedChildNodeError(XmlElement parent, XmlNode n) 267internal static string ReadTextElementAsTrimmedString(XmlElement element) 469static public UniqueId ReadTextElementAsUniqueId(XmlElement element)
System.ServiceModel.Channels (5)
System\ServiceModel\Channels\UdpTransportBindingElement.cs (3)
287ICollection<XmlElement> bindingAssertions = policyContext.GetBindingAssertions(); 289XmlElement retransmitAssertion = null; 290foreach (XmlElement assertion in bindingAssertions)
System\ServiceModel\Channels\UdpTransportBindingElementPolicy.cs (1)
41XmlElement assertion = Document.CreateElement(UdpConstants.WsdlSoapUdpTransportPrefix, UdpConstants.RetransmissionEnabled, UdpConstants.WsdlSoapUdpTransportNamespace);
System\ServiceModel\Channels\UdpTransportImporter.cs (1)
18public void BeforeImport(WsdlNS.ServiceDescriptionCollection wsdlDocuments, Xml.Schema.XmlSchemaSet xmlSchemas, ICollection<Xml.XmlElement> policy)
System.ServiceModel.Web (1)
System\ServiceModel\Dispatcher\HelpPage.cs (1)
348else if (typeof(XElement).IsAssignableFrom(type) || typeof(XmlElement).IsAssignableFrom(type))
System.Web.Extensions (15)
Compilation\WCFModel\AsmxEndpointPickerExtension.cs (1)
50void System.ServiceModel.Description.IWsdlImportExtension.BeforeImport(System.Web.Services.Description.ServiceDescriptionCollection wsdlDocuments, System.Xml.Schema.XmlSchemaSet xmlSchemas, System.Collections.Generic.ICollection<System.Xml.XmlElement> policy)
Compilation\WCFModel\HttpBindingExtension.cs (1)
56void IWsdlImportExtension.BeforeImport(WsdlNS.ServiceDescriptionCollection wsdlDocuments, XmlSchemaSet xmlSchemas, ICollection<XmlElement> policy)
Compilation\WCFModel\SchemaMerger.cs (8)
54typeof(XmlElement[]), 364if (originalValue is XmlElement) 366return CompareXmlElements((XmlElement)originalValue, (XmlElement)newValue, out differentLocation); 482private static bool CompareXmlElements(XmlElement element1, XmlElement element2, out string differentLocation) 668if (value is XmlElement) 670return ((XmlElement)value).LocalName;
Script\Services\WebServiceTypeData.cs (5)
184private static string GetInnerText(XmlQualifiedName typeName, XmlElement xmlElement) { 255XmlElement actualTypeElement = ImportAnnotation(annotation, ActualTypeAnnotationName); 274static XmlElement ImportAnnotation(XmlSchemaAnnotation annotation, XmlQualifiedName annotationQualifiedName) { 280XmlElement annotationElement = markup[i] as XmlElement;
System.Web.Mobile (6)
UI\MobileControls\Design\Util\WebConfigManager.cs (6)
162private XmlElement FindXmlNode(XmlNode node, string name) { 168child is XmlElement) { 169return (XmlElement)child; 177internal XmlElement FindFilterSection(XmlDocument document, bool createIfNotExists) { 187XmlElement webSection = FindXmlNode(configSection, "system.web"); 197XmlElement filters = FindXmlNode(webSection, "deviceFilters");
System.Web.Services (98)
System\Web\Services\Description\MimeXmlImporter.cs (1)
39importedReturn.TypeName = typeof(XmlElement).FullName;
System\Web\Services\Description\ProtocolImporter.cs (3)
474if (item is XmlElement) { 475XmlElement element = (XmlElement)item;
System\Web\Services\Description\ServiceDescription.cs (25)
462internal static WsiProfiles GetConformanceClaims(XmlElement documentation) { 471if (child is XmlElement) { 472XmlElement element = (XmlElement)child; 484internal static void AddConformanceClaims(XmlElement documentation, WsiProfiles claims) { 498XmlElement claim = d.CreateElement(Soap.ClaimPrefix, Soap.Element.Claim, Soap.ConformanceClaim); 567XmlElement documentationElement; 605public XmlElement DocumentationElement { 652internal XmlElement GetDocumentationElement() { 1496public XmlElement Find(string name, string ns) { 1498XmlElement element = List[i] as XmlElement; 1511public XmlElement[] FindAll(string name, string ns) { 1514XmlElement element = List[i] as XmlElement; 1520return (XmlElement[])list.ToArray(typeof(XmlElement)); 1523void SetHandled(XmlElement element) { 1535if (item is XmlElement) 1536return IsHandled((XmlElement)item); 1546if (item is XmlElement) 1547return IsRequired((XmlElement)item); 1552bool IsHandled(XmlElement element) { 1557bool IsRequired(XmlElement element) { 1579if (!(value is XmlElement || value is ServiceDescriptionFormatExtension))
System\Web\Services\Description\ServiceDescriptionSerializer.cs (62)
206else if (ai is System.Xml.XmlElement) { 207System.Xml.XmlElement elem = (System.Xml.XmlElement)ai; 340else if (ai is System.Xml.XmlElement) { 341System.Xml.XmlElement elem = (System.Xml.XmlElement)ai; 415else if (ai is System.Xml.XmlElement) { 416System.Xml.XmlElement elem = (System.Xml.XmlElement)ai; 489else if (ai is System.Xml.XmlElement) { 490System.Xml.XmlElement elem = (System.Xml.XmlElement)ai; 649else if (ai is System.Xml.XmlElement) { 650System.Xml.XmlElement elem = (System.Xml.XmlElement)ai; 738else if (ai is System.Xml.XmlElement) { 739System.Xml.XmlElement elem = (System.Xml.XmlElement)ai; 1131else if (ai is System.Xml.XmlElement) { 1132System.Xml.XmlElement elem = (System.Xml.XmlElement)ai; 1977if (ai is System.Xml.XmlElement) { 1978System.Xml.XmlElement elem = (System.Xml.XmlElement)ai; 2024if (ai is System.Xml.XmlElement) { 2025System.Xml.XmlElement elem = (System.Xml.XmlElement)ai; 4186o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 4209a_4.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 4270o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 4277a_4.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 4341o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 4354a_4.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 4569o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 4585a_4.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 4646o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 4670a_4.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 4730o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 4740a_4.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 4940o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 4968a_4.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 5613a_1.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 5776o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 5810a_4.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 6299o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 6306a_4.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 6372o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 6385a_4.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 6449o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 6453a_5.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 6517o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 6521a_5.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 6585o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 6589a_5.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 6650o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 6657a_4.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 6725o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 6729a_4.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 6786o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 6793a_3.Add((global::System.Xml.XmlElement)ReadXmlNode(false)); 10616o.@DocumentationElement = (global::System.Xml.XmlElement)ReadXmlNode(false); 10620a_3.Add((global::System.Xml.XmlElement)ReadXmlNode(false));
System\Web\Services\Protocols\RuntimeUtils.cs (1)
44internal static string ElementString(XmlElement element) {
System\Web\Services\Protocols\SoapServerProtocol.cs (3)
834XmlElement upgradeElement = doc.CreateElement(Soap12.Prefix, Soap12.Element.Upgrade, Soap12.Namespace); 845private static XmlElement CreateUpgradeEnvelope(XmlDocument doc, string prefix, string envelopeNs) { 846XmlElement envelopeElement = doc.CreateElement(Soap12.Prefix, Soap12.Element.UpgradeEnvelope, Soap12.Namespace);
System\Web\Services\Protocols\SoapUnknownHeader.cs (3)
22XmlElement element; 29public XmlElement Element { 162private string GetElementAttribute(string name, string ns, XmlElement element) {
System.Windows.Forms (140)
parent\parent\parent\public\Internal\NDP\Inc\mansign.cs (63)
260internal ManifestSignedXml (XmlElement elem) : base(elem) {} 267private static XmlElement FindIdElement (XmlElement context, string idValue) { 271XmlElement idReference = context.SelectSingleNode("//*[@Id=\"" + idValue + "\"]") as XmlElement; 274idReference = context.SelectSingleNode("//*[@id=\"" + idValue + "\"]") as XmlElement; 277return context.SelectSingleNode("//*[@ID=\"" + idValue + "\"]") as XmlElement; 280public override XmlElement GetIdElement (XmlDocument document, string idValue) { 349XmlElement signatureNode = m_manifestDom.SelectSingleNode("//ds:Signature", nsm) as XmlElement; 377XmlElement reference = referenceNode as XmlElement; 400XmlElement transform = transforms[i] as XmlElement; 439XmlElement transform = transforms[i] as XmlElement; 509XmlElement licenseNode = m_manifestDom.SelectSingleNode("asm:assembly/ds:Signature/ds:KeyInfo/msrel:RelData/r:license", nsm) as XmlElement; 554private XmlElement ExtractPrincipalFromManifest () { 560return assemblyIdentityNode as XmlElement; 564XmlElement assemblyIdentity = m_manifestDom.SelectSingleNode("asm:assembly/asm:assemblyIdentity", nsm) as XmlElement; 565XmlElement principal = m_manifestDom.SelectSingleNode("asm:assembly/ds:Signature/ds:KeyInfo/msrel:RelData/r:license/r:grant/as:ManifestInformation/as:assemblyIdentity", nsm) as XmlElement; 597XmlElement publisherIdentity = m_manifestDom.SelectSingleNode("asm:assembly/asm2:publisherIdentity", nsm) as XmlElement; 634XmlElement manifestInformation = manifestDom.SelectSingleNode("asm:assembly/ds:Signature/ds:KeyInfo/msrel:RelData/r:license/r:grant/as:ManifestInformation", nsm) as XmlElement; 652XmlElement dsElement = manifestDom.SelectSingleNode("asm:assembly/ds:Signature", nsm) as XmlElement; 711XmlElement snModulus = m_manifestDom.SelectSingleNode("asm:assembly/ds:Signature/ds:KeyInfo/ds:KeyValue/ds:RSAKeyValue/ds:Modulus", nsm) as XmlElement; 712XmlElement snExponent = m_manifestDom.SelectSingleNode("asm:assembly/ds:Signature/ds:KeyInfo/ds:KeyValue/ds:RSAKeyValue/ds:Exponent", nsm) as XmlElement; 773XmlElement assembly = manifestDom.SelectSingleNode("asm:assembly", nsm) as XmlElement; 774XmlElement assemblyIdentity = manifestDom.SelectSingleNode("asm:assembly/asm:assemblyIdentity", nsm) as XmlElement; 780XmlElement publisherIdentity = manifestDom.SelectSingleNode("asm:assembly/asm2:publisherIdentity", nsm) as XmlElement; 800XmlElement signature = manifestDom.SelectSingleNode("asm:assembly/ds:Signature", nsm) as XmlElement; 824XmlElement assemblyIdentity = manifestDom.SelectSingleNode("asm:assembly/asm:assemblyIdentity", nsm) as XmlElement; 865XmlElement assemblyIdentity = manifestDom.SelectSingleNode("asm:assembly/asm:assemblyIdentity", nsm) as XmlElement; 941private static XmlDocument CreateLicenseDom (CmiManifestSigner signer, XmlElement principal, byte[] hash) { 948XmlElement assemblyIdentityNode = licenseDom.SelectSingleNode("r:license/r:grant/as:ManifestInformation/as:assemblyIdentity", nsm) as XmlElement; 954XmlElement manifestInformationNode = licenseDom.SelectSingleNode("r:license/r:grant/as:ManifestInformation", nsm) as XmlElement; 960XmlElement authenticodePublisherNode = licenseDom.SelectSingleNode("r:license/r:grant/as:AuthenticodePublisher/as:X509SubjectName", nsm) as XmlElement; 1000XmlElement xmlDigitalSignature = signedXml.GetXml(); 1006XmlElement issuerNode = licenseDom.SelectSingleNode("r:license/r:issuer", nsm) as XmlElement; 1048XmlElement asTimestamp = licenseDom.CreateElement("as", "Timestamp", AuthenticodeNamespaceUri); 1051XmlElement dsObject = licenseDom.CreateElement("Object", SignedXml.XmlDsigNamespaceUrl); 1054XmlElement signatureNode = licenseDom.SelectSingleNode("r:license/r:issuer/ds:Signature", nsm) as XmlElement; 1071XmlElement signatureParent = manifestDom.SelectSingleNode("asm:assembly", nsm) as XmlElement; 1108XmlElement xmlDigitalSignature = signedXml.GetXml();
parent\parent\parent\public\Internal\NDP\Inc\mansign2.cs (77)
46internal ManifestSignedXml2(XmlElement elem) 73public override XmlElement GetIdElement(XmlDocument document, string idValue) 160XmlElement signatureNode = GetSingleNode(m_manifestDom, "//ds:Signature[@Id=\"StrongNameSignature\"]", nsm) as XmlElement; 237XmlElement licenseNode = GetSingleNode(m_manifestDom, "asm:assembly/ds:Signature/ds:KeyInfo/msrel:RelData/r:license", nsm) as XmlElement; 255VerifySignatureTimestampNew(nodes[0] as XmlElement, nsm, out verificationTime); 315XmlElement licenseNode = GetSingleNode(m_manifestDom, "asm:assembly/ds:Signature/ds:KeyInfo/msrel:RelData/r:license", nsm) as XmlElement; 328XmlElement signatureNode = GetSingleNode(licenseNode, "//r:issuer/ds:Signature", nsm) as XmlElement; 341signatureNode = GetSingleNode(licenseDom, "//r:issuer/ds:Signature", nsm) as XmlElement; 477XmlElement subjectNode = GetSingleNode(licenseNode, "r:grant/as:AuthenticodePublisher/as:X509SubjectName", nsm) as XmlElement; 586private bool VerifySignatureForm(XmlElement signatureNode, string signatureKind, XmlNamespaceManager nsm) 615XmlElement reference = referenceNode as XmlElement; 644XmlElement transform = transforms[i] as XmlElement; 692XmlElement transform = transforms[i] as XmlElement; 718private bool GetManifestInformation(XmlElement licenseNode, XmlNamespaceManager nsm, out string hash, out string description, out string url) 724XmlElement manifestInformation = GetSingleNode(licenseNode, "r:grant/as:ManifestInformation", nsm) as XmlElement; 761private bool VerifySignatureTimestamp(XmlElement signatureNode, XmlNamespaceManager nsm, out DateTime verificationTime) 765XmlElement node = GetSingleNode(signatureNode, "ds:Object/as:Timestamp", nsm) as XmlElement; 817private bool VerifySignatureTimestampNew(XmlElement signatureNode, XmlNamespaceManager nsm, out DateTime verificationTime) 1053XmlElement publisherIdentity = GetSingleNode(m_manifestDom, "asm:assembly/asm2:publisherIdentity", nsm) as XmlElement; 1154private XmlElement ExtractPrincipalFromManifest() 1161return assemblyIdentityNode as XmlElement; 1166XmlElement assemblyIdentity = GetSingleNode(m_manifestDom, "asm:assembly/asm:assemblyIdentity", nsm) as XmlElement; 1167XmlElement principal = GetSingleNode(m_manifestDom, "asm:assembly/ds:Signature/ds:KeyInfo/msrel:RelData/r:license/r:grant/as:ManifestInformation/as:assemblyIdentity", nsm) as XmlElement; 1205XmlElement publisherIdentity = GetSingleNode(m_manifestDom, "asm:assembly/asm2:publisherIdentity", nsm) as XmlElement; 1246XmlElement manifestInformation = GetSingleNode(manifestDom, "asm:assembly/ds:Signature/ds:KeyInfo/msrel:RelData/r:license/r:grant/as:ManifestInformation", nsm) as XmlElement; 1267XmlElement dsElement = GetSingleNode(manifestDom, "asm:assembly/ds:Signature", nsm) as XmlElement; 1336XmlElement snModulus = GetSingleNode(m_manifestDom, "asm:assembly/ds:Signature/ds:KeyInfo/ds:KeyValue/ds:RSAKeyValue/ds:Modulus", nsm) as XmlElement; 1337XmlElement snExponent = GetSingleNode(m_manifestDom, "asm:assembly/ds:Signature/ds:KeyInfo/ds:KeyValue/ds:RSAKeyValue/ds:Exponent", nsm) as XmlElement; 1407XmlElement assembly = GetSingleNode(manifestDom, "asm:assembly", nsm) as XmlElement; 1408XmlElement assemblyIdentity = GetSingleNode(manifestDom, "asm:assembly/asm:assemblyIdentity", nsm) as XmlElement; 1415XmlElement publisherIdentity = GetSingleNode(manifestDom, "asm:assembly/asm2:publisherIdentity", nsm) as XmlElement; 1435XmlElement signature = GetSingleNode(manifestDom, "asm:assembly/ds:Signature", nsm) as XmlElement; 1496XmlElement assemblyIdentity = GetSingleNode(manifestDom, "asm:assembly/asm:assemblyIdentity", nsm) as XmlElement; 1556XmlElement assemblyIdentity = GetSingleNode(manifestDom, "asm:assembly/asm:assemblyIdentity", nsm) as XmlElement; 1675private static XmlDocument CreateLicenseDom(CmiManifestSigner2 signer, XmlElement principal, byte[] hash) 1683XmlElement assemblyIdentityNode = GetSingleNode(licenseDom, "r:license/r:grant/as:ManifestInformation/as:assemblyIdentity", nsm) as XmlElement; 1690XmlElement manifestInformationNode = GetSingleNode(licenseDom, "r:license/r:grant/as:ManifestInformation", nsm) as XmlElement; 1696XmlElement authenticodePublisherNode = GetSingleNode(licenseDom, "r:license/r:grant/as:AuthenticodePublisher/as:X509SubjectName", nsm) as XmlElement; 1743XmlElement xmlDigitalSignature = signedXml.GetXml(); 1749XmlElement issuerNode = GetSingleNode(licenseDom, "r:license/r:issuer", nsm) as XmlElement; 1847XmlElement signatureValueNode = GetSingleNode(licenseDom, "r:license/r:issuer/ds:Signature/ds:SignatureValue", nsm) as XmlElement; 1881XmlElement asTimestamp = licenseDom.CreateElement("as", "Timestamp", AuthenticodeNamespaceUri); 1884XmlElement dsObject = licenseDom.CreateElement("Object", SignedXml.XmlDsigNamespaceUrl); 1887XmlElement signatureNode = GetSingleNode(licenseDom, "r:license/r:issuer/ds:Signature", nsm) as XmlElement; 1906XmlElement signatureParent = GetSingleNode(manifestDom, "asm:assembly", nsm) as XmlElement; 1961XmlElement xmlDigitalSignature = signedXml.GetXml();
System.Xml (163)
System\Xml\Dom\DocumentSchemaValidator.cs (14)
124partialValidationType = FindSchemaInfo(nodeToValidate as XmlElement); 167XmlElement elem = (XmlElement)node; 246XmlElement docElem = ((XmlDocument)node).DocumentElement; 301XmlElement elementNode = currentNode as XmlElement; 353private void ValidateAttributes(XmlElement elementNode) { 439private XmlSchemaObject FindSchemaInfo(XmlElement elementToValidate) { 502XmlElement parentElement = attributeToValidate.OwnerElement; 521private XmlSchemaObject GetTypeFromAncestors(XmlElement elementToValidate, XmlSchemaObject ancestorType, int ancestorsCount) { 533XmlElement currentElement = node as XmlElement; 602private void ValidateSingleElement(XmlElement elementNode, bool skipToEnd, XmlSchemaInfo newSchemaInfo) { 654ValidateSingleElement(child as XmlElement, true, null);
System\Xml\Dom\DocumentXmlWriter.cs (6)
165XmlElement elem = write as XmlElement; 358XmlElement elem = start as XmlElement; 420XmlElement elem = parent as XmlElement;
System\Xml\Dom\DocumentXPathNavigator.cs (37)
21private XmlElement namespaceParent; // parent for namespace 163XmlElement element = document.DocumentElement; 200XmlElement element = source as XmlElement; 224XmlElement element = source as XmlElement; 244XmlElement element = source as XmlElement; 267XmlElement element = source as XmlElement; 318XmlElement element = node as XmlElement; 336element = element.ParentNode as XmlElement; 354XmlElement element = source as XmlElement; 369namespaceParent = (XmlElement)source; 373element = element.ParentNode as XmlElement; 378namespaceParent = (XmlElement)source; 387XmlElement element = source as XmlElement; 459XmlElement element = attributes.parent.ParentNode as XmlElement; 467element = element.ParentNode as XmlElement; 554XmlElement element = attributes.parent.ParentNode as XmlElement; 562element = element.ParentNode as XmlElement; 567private bool PathHasDuplicateNamespace(XmlElement top, XmlElement bottom, string localName) { 575bottom = bottom.ParentNode as XmlElement; 743XmlElement element = document.GetElementById(id); 1085XmlElement element = ((XmlAttribute)node1).OwnerElement; 1509List<XmlElement> elements = new List<XmlElement>(); 1512XmlElement element = node as XmlElement; 1539XmlElement element = attribute.OwnerElement; 1563XmlElement element = attribute.OwnerElement;
System\Xml\Dom\XmlAttribute.cs (4)
122XmlElement ownerElement = OwnerElement; 131XmlElement ownerElement = OwnerElement; 270public virtual XmlElement OwnerElement { 272return parentNode as XmlElement;
System\Xml\Dom\XmlAttributeCollection.cs (9)
277XmlAttribute defattr = parent.OwnerDocument.GetDefaultAttribute( (XmlElement)parent, retNode.Prefix, retNode.LocalName, retNode.NamespaceURI ); 290XmlElement parentElem = parent as XmlElement; 305XmlElement parentElem = parent as XmlElement; 331XmlElement parentElem = parent as XmlElement; 345XmlElement parentElem = parent as XmlElement;
System\Xml\Dom\XmlDocument.cs (17)
200private WeakReference GetElement(ArrayList elementList, XmlElement elem) { 207if ((XmlElement)(elemRef.Target) == elem) 217internal void AddElementWithId( string id, XmlElement elem ) { 233internal void RemoveElementWithId( string id, XmlElement elem ) { 296public XmlElement DocumentElement { 297get { return(XmlElement)FindChild(XmlNodeType.Element); } 530public XmlElement CreateElement( String name ) { 538internal void AddDefaultAttributes( XmlElement elem ) { 564private SchemaElementDecl GetSchemaElementDecl( XmlElement elem ) { 752public XmlElement CreateElement( String qualifiedName, String namespaceURI ) { 766public virtual XmlElement GetElementById( string elementId ) { 771XmlElement elem = (XmlElement)elemRef.Target; 889public virtual XmlElement CreateElement( string prefix, string localName, string namespaceURI) { 890XmlElement elem = new XmlElement( AddXmlName( prefix, localName, namespaceURI, null ), true, this ); 1397internal XmlAttribute GetDefaultAttribute( XmlElement elem, string attrPrefix, string attrLocalname, string attrNamespaceURI ) { 1459XmlElement documentElement = DocumentElement;
System\Xml\Dom\XmlElement.cs (5)
52XmlElement element = doc.CreateElement( Prefix, LocalName, NamespaceURI ); 364if (GetType() == typeof(XmlElement)) { 383private static void WriteElementTo(XmlWriter writer, XmlElement e) { 387e = n as XmlElement; 389if (e != null && e.GetType() == typeof(XmlElement)) {
System\Xml\Dom\XmlLoader.cs (11)
91XmlElement element; 135element = parent as XmlElement; 411XmlElement element = new XmlElement( reader.Prefix, reader.LocalName, reader.NamespaceURI, this.doc ); 613if ( node is XmlElement && ((XmlElement)node).HasAttributes ) { 615foreach( XmlAttribute attr in ((XmlElement)node).Attributes ) { 688internal void LoadInnerXmlElement(XmlElement node, string innerxmltext ) { 693RemoveDuplicateNamespace( (XmlElement) node, mgr, false ); 701private void RemoveDuplicateNamespace( XmlElement elem, XmlNamespaceManager mgr, bool fCheckElemAttrs ) { 742XmlElement childElem = child as XmlElement;
System\Xml\Dom\XmlNode.cs (12)
925XmlElement elem = (XmlElement)node; 990XmlElement elem = (XmlElement)node; 1036public virtual XmlElement this[string name] 1041return(XmlElement) n; 1049public virtual XmlElement this[string localname, string ns] 1054return(XmlElement) n; 1119XmlElement elem = null; 1121elem = node as XmlElement; 1143XmlElement elem = null; 1145elem = node as XmlElement;
System\Xml\Dom\XmlNodeReader.cs (21)
264return((XmlElement)curNode).IsEmpty; 295return ((XmlElement)curNode).Attributes.Count; 418private String GetAttributeFromElement( XmlElement elem, String name ) { 430return GetAttributeFromElement((XmlElement)curNode, name); 432return GetAttributeFromElement((XmlElement)elemNode, name); 441private String GetAttributeFromElement( XmlElement elem, String name, String ns ) { 452return GetAttributeFromElement((XmlElement)curNode, name, ns); 454return GetAttributeFromElement((XmlElement)elemNode, name, ns); 469return ((XmlElement)curNode).Attributes[attributeIndex].Value; 472return ((XmlElement)elemNode).Attributes[attributeIndex].Value; 557private bool MoveToAttributeFromElement( XmlElement elem, String name, String ns ) { 580return MoveToAttributeFromElement((XmlElement)curNode, name, namespaceURI ); 582return MoveToAttributeFromElement((XmlElement)elemNode, name, namespaceURI ); 604attr = ((XmlElement)curNode).Attributes[attributeIndex]; 613attr = ((XmlElement)elemNode).Attributes[attributeIndex]; 756XmlElement elem = (XmlElement)node; 808XmlElement elem = (XmlElement)node; 847XmlElement elem = (XmlElement)node;
System\Xml\Schema\Parser.cs (2)
294private XmlElement LoadElementNode(bool root) { 300XmlElement element = dummyDocument.CreateElement( r.Prefix, r.LocalName, r.NamespaceURI );
System\Xml\Serialization\_Events.cs (3)
95XmlElement elem; 100internal XmlElementEventArgs(XmlElement elem, int lineNumber, int linePosition, object o, string qnames) { 114public XmlElement Element {
System\Xml\Serialization\Types.cs (1)
782else if (typeof(XmlElement).IsAssignableFrom(type))
System\Xml\Serialization\XmlReflectionImporter.cs (3)
1458Type targetType = typeof(IXmlSerializable).IsAssignableFrom(arrayElementType) ? arrayElementType : typeof(XmlNode).IsAssignableFrom(arrayElementType) ? arrayElementType : typeof(XmlElement); 1670Type targetType = typeof(IXmlSerializable).IsAssignableFrom(accessorType) ? accessorType : typeof(XmlNode).IsAssignableFrom(accessorType) ? accessorType : typeof(XmlElement); 1819if (choiceTypes.Contains(typeof(XmlElement)) && a.XmlAnyElements.Count > 0) {
System\Xml\Serialization\XmlSchemaExporter.cs (1)
1048XmlElement e = d.CreateElement("keepNamespaceDeclarations");
System\Xml\Serialization\XmlSchemaImporter.cs (6)
1126mapping.TypeDesc = Scope.GetTypeDesc(makeElement ? typeof(XmlElement) : typeof(XmlNode)); 1297mapping.TypeDesc = Scope.GetTypeDesc(typeof(XmlElement)); 1304mapping.TypeDesc = Scope.GetTypeDesc(mixed ? typeof(XmlNode) : typeof(XmlElement)); 1420if (node is XmlElement) { 1421XmlElement e = (XmlElement)node;
System\Xml\Serialization\XmlSerializationReader.cs (5)
1151protected void UnknownElement(object o, XmlElement elem) { 1156protected void UnknownElement(object o, XmlElement elem, string qnames) { 1206UnknownElement(o, (XmlElement)unknownNode, qnames); 1789XmlElement unknownElement = unknownNode as XmlElement;
System\Xml\Serialization\XmlSerializationWriter.cs (2)
691if (node is XmlElement && name != null && name.Length > 0) { 2591string fullTypeName = typeof(XmlElement).FullName;
System\Xml\Serialization\XmlSerializationWriterILGen.cs (4)
1605string fullTypeName = typeof(XmlElement).FullName; 1608ilg.IsInst(typeof(XmlElement)); 1613LocalBuilder elemLoc = ilg.DeclareLocal(typeof(XmlElement), "elem"); 1614source.Load(typeof(XmlElement));
WindowsBase (28)
Base\MS\Internal\IO\Packaging\CustomSignedXml.cs (11)
40public override XmlElement GetIdElement(XmlDocument document, string idValue) 43XmlElement elem = base.GetIdElement(document, idValue); 82private static XmlElement SelectNodeByIdFromObjects(Signature signature, string idValue) 84XmlElement node = null; 118private static XmlElement SelectSubObjectNodeForXAdES(Signature signature, string idValue) 120XmlElement node = null; 156private static XmlElement SelectSubObjectNodeForXAdESInDataObjects(Signature signature, string idValue) 158XmlElement node = null; 167XmlElement element = dataObject.GetXml(); 183XmlNode local = nodeList[0] as XmlElement; 196node = local as XmlElement;
Base\MS\Internal\IO\Packaging\XmlDigitalSignatureProcessor.cs (1)
708_signedXml.LoadXml((XmlElement)node);
Base\MS\Internal\IO\Packaging\XmlSignatureManifest.cs (10)
576XmlElement xmlE = (XmlElement)manifest; 652XmlElement reference = xDoc.CreateElement(XTable.Get(XTable.ID.ReferenceTagName), SignedXml.XmlDsigNamespaceUrl); 669XmlElement transforms = xDoc.CreateElement(XTable.Get(XTable.ID.TransformsTagName), SignedXml.XmlDsigNamespaceUrl); 675XmlElement transform = xDoc.CreateElement(XTable.Get(XTable.ID.TransformTagName), SignedXml.XmlDsigNamespaceUrl); 756XmlElement reference = xDoc.CreateElement(XTable.Get(XTable.ID.ReferenceTagName), SignedXml.XmlDsigNamespaceUrl); 770XmlElement transforms = xDoc.CreateElement(XTable.Get(XTable.ID.TransformsTagName), SignedXml.XmlDsigNamespaceUrl); 773XmlElement transform = xDoc.CreateElement(XTable.Get(XTable.ID.TransformTagName), SignedXml.XmlDsigNamespaceUrl); 799XmlElement digestMethod = xDoc.CreateElement(XTable.Get(XTable.ID.DigestMethodTagName), SignedXml.XmlDsigNamespaceUrl); 809XmlElement digestValue = xDoc.CreateElement(XTable.Get(XTable.ID.DigestValueTagName), SignedXml.XmlDsigNamespaceUrl);
Base\MS\Internal\IO\Packaging\XmlSignatureProperties.cs (6)
97internal static XmlElement AssembleSignatureProperties( 115XmlElement signatureProperties = xDoc.CreateElement(XTable.Get(XTable.ID.SignaturePropertiesTagName), 119XmlElement signatureProperty = xDoc.CreateElement(XTable.Get(XTable.ID.SignaturePropertyTagName), 130XmlElement signatureTime = xDoc.CreateElement(XTable.Get(XTable.ID.SignatureTimeTagName), 132XmlElement signatureTimeFormat = xDoc.CreateElement(XTable.Get(XTable.ID.SignatureTimeFormatTagName), 134XmlElement signatureTimeValue = xDoc.CreateElement(XTable.Get(XTable.ID.SignatureTimeValueTagName),