3 types derived from XmlElement
System.Configuration.ConfigurationManager (1)
System.Data.Common (1)
System.Security.Cryptography.Xml (1)
2 instantiations of XmlElement
System.Private.Xml (2)
809 references to XmlElement
CSharpSyntaxGenerator (2)
dotnet-svcutil-lib (1)
ILLink.Tasks (5)
IOperationGenerator (2)
Microsoft.AspNetCore.AzureAppServices.SiteExtension.Tests (2)
Microsoft.AspNetCore.DataProtection (4)
Microsoft.AspNetCore.DataProtection.Tests (2)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Microsoft.DotNet.SignCheckLibrary (2)
Microsoft.Maui.Resizetizer (5)
Microsoft.Web.Xdt.Extensions.Tests (4)
netstandard (1)
PresentationBuildTasks (7)
PresentationFramework (40)
ReachFramework (57)
PrintConfig\PrtTicket_Base.cs (36)
58XmlElement parentElement = null;
257XmlElement parentElement = null;
380private PTFeatureNode(PrintTicketFeature ownerFeature, XmlElement featureElement)
396XmlElement parentElement)
402XmlElement featureElement = PrintTicketEditor.GetSchemaElementWithNameAttr(pt,
419XmlElement parentElement)
442XmlElement optionNode = GetFirstOption();
481XmlElement optionNode = GetFirstOption();
510XmlElement optionNode = GetFirstOption();
551XmlElement option = GetFirstOption();
570XmlElement property = PrintTicketEditor.AddSchemaElementWithNameAttr(pt,
575XmlElement valueNode = PrintTicketEditor.AddSchemaElementWithNameAttr(pt,
598XmlElement optionNode = GetFirstOption();
630XmlElement option = GetFirstOption();
649XmlElement property = PrintTicketEditor.AddSchemaElementWithNameAttr(pt,
654XmlElement valueNode = PrintTicketEditor.AddSchemaElementWithNameAttr(pt,
677XmlElement optionNode = GetFirstOption();
683XmlElement propertyNode = PrintTicketEditor.GetSchemaElementWithNameAttr(pt,
692XmlElement refNode = PrintTicketEditor.GetSchemaElementWithNameAttr(pt,
728XmlElement option = GetFirstOption();
747XmlElement property = PrintTicketEditor.AddSchemaElementWithNameAttr(pt,
761public XmlElement GetFirstOption()
783public XmlElement FeatureElement
798private string GetOptionPropertyValueText(XmlElement parentOption, string propertyName)
803XmlElement propertyNode = PrintTicketEditor.GetSchemaElementWithNameAttr(pt,
812XmlElement valueNode = PrintTicketEditor.GetSchemaElementWithNameAttr(pt,
840private XmlElement _featureElement;
1182private PrintTicketParameterNode(PrintTicketParameter ownerParameter, XmlElement parameterElement)
1203XmlElement parameterElement = PrintTicketEditor.GetSchemaElementWithNameAttr(pt,
1277XmlElement valueNode = PrintTicketEditor.GetSchemaElementWithNameAttr(pt,
1302public XmlElement SetIntValue(int value)
1304XmlElement valueNode = SetStringValue(value.ToString(CultureInfo.InvariantCulture),
1313public XmlElement SetStringValue(string value, string xsiType)
1324XmlElement valueNode = PrintTicketEditor.AddSchemaElementWithNameAttr(pt,
1349public XmlElement ParameterElement
1362private XmlElement _parameterElement;
PrintConfig\PrtTicket_Editor.cs (19)
38XmlElement root = pt.XmlDoc.DocumentElement;
110string childName = ((XmlElement)rootChild).GetAttribute(PrintSchemaTags.Framework.NameAttr,
145XmlElement root = pt.XmlDoc.DocumentElement;
200public static string AddStdNamespaceDeclaration(XmlElement root, string prefix_header, string nsURI)
232public static XmlElement GetSchemaElementWithNameAttr(InternalPrintTicket pt,
233XmlElement parent,
237XmlElement elementMatched = null;
265string childName = ((XmlElement)child).GetAttribute(
280elementMatched = (XmlElement)child;
296XmlElement parent,
300XmlElement childMatched;
324childMatched = (XmlElement)child;
329string childName = ((XmlElement)child).GetAttribute(
338childMatched = (XmlElement)child;
351public static XmlElement AddSchemaElementWithNameAttr(InternalPrintTicket pt,
352XmlElement parent,
358XmlElement newNode = pt.XmlDoc.CreateElement(prefix, schemaTag, PrintSchemaNamespaces.Framework);
367return (XmlElement)parent.AppendChild(newNode);
371XmlElement valueElement,
System.Configuration.ConfigurationManager (5)
System.Data.Common (161)
System\Data\XDRSchema.cs (26)
17internal XmlElement? _schemaRoot;
29internal void LoadSchema(XmlElement schemaRoot, DataSet ds)
52if (!(n is XmlElement))
55XmlElement child = (XmlElement)n;
68internal static XmlElement? FindTypeNode(XmlElement node)
102if (vn is XmlElement && ((XmlElement)vn).GetAttribute(Keywords.NAME) == strType)
103return (XmlElement)vn;
131internal static bool IsTextOnlyContent(XmlElement node)
154internal static bool IsXDRField(XmlElement node, XmlElement typeNode)
180internal DataTable? HandleTable(XmlElement node)
182XmlElement? typeNode;
319internal static string GetInstanceName(XmlElement node)
343internal void HandleColumn(XmlElement node, DataTable table)
391XmlElement? typeNode = FindTypeNode(node);
494internal static void GetMinMax(XmlElement elNode, ref int minOccurs, ref int maxOccurs)
521internal void HandleTypeNode(XmlElement typeNode, DataTable table, ArrayList tableChildren)
527if (!(n is XmlElement))
532tableChild = HandleTable((XmlElement)n);
543HandleColumn((XmlElement)n, table);
550internal DataTable InstantiateTable(DataSet dataSet, XmlElement node, XmlElement typeNode)
643internal DataTable InstantiateSimpleTable(DataSet dataSet, XmlElement node)
System\Data\xmlsaver.cs (68)
41private XmlElement? _sRoot;
47private XmlElement? _dsElement;
48private XmlElement? _constraintSeparator;
61internal static void AddExtendedProperties(PropertyCollection? props, XmlElement node)
66internal static void AddExtendedProperties(PropertyCollection? props, XmlElement node, Type? type)
110internal void AddXdoProperties(object? instance, XmlElement root)
132internal void AddXdoProperty(PropertyDescriptor pd, object instance, XmlElement root)
377internal void WriteSchemaRoot(XmlElement rootSchema, string targetNamespace)
586XmlElement rootSchema = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SCHEMA, Keywords.XSDNS);
684XmlElement dsCompositor = FillDataSetElement(xd, ds, dt);
698XmlElement el = HandleTable(top[i], xd, rootSchema);
738XmlElement node = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS);
752XmlElement node = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS);
780XmlElement? nodeAnn = null;
781XmlElement? nodeApp = null;
818XmlElement _import = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_IMPORT, Keywords.XSDNS);
872XmlElement tNode = (XmlElement)_namespaces[ns]!;
887XmlElement _import2 = _dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_IMPORT, Keywords.XSDNS);
943internal XmlElement SchemaTree(XmlDocument xd, DataTable dt)
958XmlElement rootSchema = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SCHEMA, Keywords.XSDNS);
1007XmlElement el = HandleTable(dt, xd, rootSchema, false);
1016internal XmlElement FillDataSetElement(XmlDocument xd, DataSet? ds, DataTable? dt)
1067XmlElement type = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_COMPLEXTYPE, Keywords.XSDNS);
1069XmlElement compositor = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_CHOICE, Keywords.XSDNS);
1117XmlElement rootSchema = SchemaTree(doc, dt);
1154internal XmlElement HandleRelation(DataRelation rel, XmlDocument dc)
1156XmlElement root = dc.CreateElement(Keywords.MSD, Keywords.MSD_RELATION, Keywords.MSDNS);
1210private static XmlElement? FindSimpleType(XmlElement schema, string name)
1214if (n is XmlElement e && e.GetAttribute(Keywords.NAME) == name)
1222internal XmlElement GetSchema(string NamespaceURI)
1224XmlElement? schemaEl = (XmlElement?)_namespaces![NamespaceURI];
1241internal void HandleColumnType(DataColumn col, XmlDocument dc, XmlElement root, XmlElement schema)
1267XmlElement schNode = GetSchema(nSpace);
1291XmlElement? elmSimpeType = FindSimpleType(schNode, name);
1343internal void AddColumnProperties(DataColumn col, XmlElement root)
1423internal XmlElement HandleColumn(DataColumn col, XmlDocument dc, XmlElement schema, bool fWriteOrdinal)
1428XmlElement root;
1513XmlElement schNode = GetSchema(col.Namespace);
1567internal void AppendChildWithoutRef(string Namespace, XmlElement el)
1569XmlElement schNode = GetSchema(Namespace);
1574internal static XmlElement? FindTypeNode(XmlElement node, string strType)
1581if (!(n is XmlElement))
1584XmlElement child = (XmlElement)n;
1600internal XmlElement HandleTable(DataTable table, XmlDocument dc, XmlElement schema)
1727internal XmlElement HandleTable(DataTable table, XmlDocument dc, XmlElement schema, bool genNested)
1733XmlElement root = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS);
1835XmlElement type = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_COMPLEXTYPE, Keywords.XSDNS);
1839XmlElement typeSchema = GetSchema(table.TypeName.Namespace);
1864XmlElement? compositor;
1870XmlElement sc = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SIMPLECONTENT, Keywords.XSDNS);
1890XmlElement ext = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_EXTENSION, Keywords.XSDNS);
1913XmlElement el = HandleColumn(col, dc, schema, fWriteOrdinals);
1915XmlElement node = isAttribute ? type : compositor;
1927XmlElement NestedTable;
1970XmlElement nodeAnn = _dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ANNOTATION, Keywords.XSDNS);
1973XmlElement nodeApp = _dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_APPINFO, Keywords.XSDNS);
1988XmlElement selector, field;
1998XmlElement? constraint;
2231private void SetMSDataAttribute(XmlElement root, Type type)
System.Private.DataContractSerialization (45)
System\Runtime\Serialization\SchemaExporter.cs (22)
124XmlElement? genericInfoElement = null;
135XmlElement? actualTypeElement = null;
155XmlElement? isValueTypeElement = null;
217private XmlElement? ExportEmitDefaultValue(DataMember dataMember)
221XmlElement defaultValueElement = XmlDoc.CreateElement(DefaultValueAnnotation.Name, DefaultValueAnnotation.Namespace);
228private XmlElement ExportActualType(XmlQualifiedName typeName)
233private static XmlElement ExportActualType(XmlQualifiedName typeName, XmlDocument xmlDoc)
235XmlElement actualTypeElement = xmlDoc.CreateElement(ActualTypeAnnotationName.Name, ActualTypeAnnotationName.Namespace);
250private XmlElement ExportGenericInfo(Type clrType, string elementName, string elementNs)
294XmlElement typeElement = XmlDoc.CreateElement(elementName, elementNs);
314XmlElement argumentElement = ExportGenericInfo(genericArguments[argIndex], Globals.GenericParameterLocalName, Globals.SerializationNamespace);
338private XmlElement? ExportSurrogateData(object key)
356return (XmlElement?)XmlDoc.ReadNode(xmlReader);
366XmlElement? genericInfoElement = null, isDictionaryElement = null;
414private XmlElement ExportIsDictionary()
416XmlElement isDictionaryElement = XmlDoc.CreateElement(IsDictionaryAnnotationName.Name, IsDictionaryAnnotationName.Namespace);
427XmlElement? actualTypeElement = (enumDataContract.BaseContractName == DefaultEnumBaseTypeName) ? null : ExportActualType(enumDataContract.BaseContractName);
469XmlElement? genericInfoElement = null;
473XmlElement? isValueTypeElement = null;
807XmlElement annotationElement = GetAnnotationMarkup(annotationQualifiedName, innerText, schema);
834private XmlElement GetAnnotationMarkup(XmlQualifiedName annotationQualifiedName, string innerText, XmlSchema schema)
836XmlElement annotationElement = XmlDoc.CreateElement(annotationQualifiedName.Name, annotationQualifiedName.Namespace);
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (4)
525obj = (XmlElement?)xmlDoc.ReadNode(xmlSerializableReader);
1042XmlElement wrapperElement = CreateWrapperXmlElement(Document, xmlAttributes, xmlChildNodes, null, null, null);
1049internal static XmlElement CreateWrapperXmlElement(XmlDocument document, IList<XmlAttribute>? xmlAttributes, IList<XmlNode>? xmlChildNodes, string? prefix, string? localName, string? ns)
1053XmlElement wrapperElement = document.CreateElement(prefix, localName, ns);
System.Private.Xml (162)
System\Xml\Dom\XmlDocument.cs (23)
286private static WeakReference<XmlElement>? GetElement(ArrayList elementList, XmlElement elem)
289foreach (WeakReference<XmlElement> elemRef in elementList)
291if (!elemRef.TryGetTarget(out XmlElement? target))
304foreach (WeakReference<XmlElement> elemRef in gcElemRefs)
310internal void AddElementWithId(string id, XmlElement elem)
316elementList.Add(new WeakReference<XmlElement>(elem));
324elementList.Add(new WeakReference<XmlElement>(elem));
328internal void RemoveElementWithId(string id, XmlElement elem)
333WeakReference<XmlElement>? elemRef = GetElement(elementList, elem);
404public XmlElement? DocumentElement
406get { return (XmlElement?)FindChild(XmlNodeType.Element); }
651public XmlElement CreateElement(string name)
660internal void AddDefaultAttributes(XmlElement elem)
692private SchemaElementDecl? GetSchemaElementDecl(XmlElement elem)
918public XmlElement CreateElement(string qualifiedName, string? namespaceURI)
934public virtual XmlElement? GetElementById(string elementId)
941foreach (WeakReference<XmlElement> elemRef in elementList)
943if (elemRef.TryGetTarget(out XmlElement? elem) && elem.IsConnected())
1070public virtual XmlElement CreateElement(string? prefix, string localName, string? namespaceURI)
1072XmlElement elem = new XmlElement(AddXmlName(prefix, localName, namespaceURI, null), true, this);
1666internal XmlAttribute? GetDefaultAttribute(XmlElement elem, string attrPrefix, string attrLocalname, string attrNamespaceURI)
1744XmlElement? documentElement = DocumentElement;
System\Xml\Dom\XmlNodeReader.cs (21)
295return ((XmlElement)_curNode).IsEmpty;
334return ((XmlElement)_curNode).Attributes.Count;
479private static string? GetAttributeFromElement(XmlElement elem, string name)
494XmlNodeType.Element => GetAttributeFromElement((XmlElement)_curNode!, name),
495XmlNodeType.Attribute => GetAttributeFromElement((XmlElement)_elemNode!, name),
502private static string? GetAttributeFromElement(XmlElement elem, string name, string? ns)
516XmlNodeType.Element => GetAttributeFromElement((XmlElement)_curNode, name, ns),
517XmlNodeType.Attribute => GetAttributeFromElement((XmlElement)_elemNode!, name, ns),
532return ((XmlElement)_curNode).Attributes[attributeIndex].Value;
535return ((XmlElement)_elemNode!).Attributes[attributeIndex].Value;
637private bool MoveToAttributeFromElement(XmlElement elem, string name, string ns)
664return MoveToAttributeFromElement((XmlElement)_curNode, name, namespaceURI);
666return MoveToAttributeFromElement((XmlElement)_elemNode!, name, namespaceURI);
695attr = ((XmlElement)_curNode).Attributes[attributeIndex];
705attr = ((XmlElement)_elemNode!).Attributes[attributeIndex];
877XmlElement elem = (XmlElement)node;
945XmlElement elem = (XmlElement)node;
997XmlElement elem = (XmlElement)node;
System.Runtime.Serialization.Schema (5)
System.Security.Cryptography.Xml (278)
System\Security\Cryptography\Xml\Utils.cs (16)
26private static bool HasNamespace(XmlElement element, string prefix, string value)
34internal static bool IsCommittedNamespace(XmlElement element, string prefix, string value)
43internal static bool IsRedundantNamespace(XmlElement element, string prefix, string value)
50XmlElement? ancestorElement = ancestorNode as XmlElement;
59internal static string? GetAttribute(XmlElement element, string localName, string namespaceURI)
67internal static bool HasAttribute(XmlElement element, string localName, string namespaceURI)
72internal static bool VerifyAttributes(XmlElement element, string? expectedAttrName)
77internal static bool VerifyAttributes(XmlElement element, string[]? expectedAttrNames)
212internal static XmlDocument PreProcessElementInput(XmlElement elem, XmlResolver xmlResolver, string? baseUri)
349internal static void RemoveAllChildren(XmlElement inputElement)
458internal static void AddNamespaces(XmlElement elem, CanonicalXmlNodeList? namespaces)
474internal static void AddNamespaces(XmlElement elem, Hashtable namespaces)
489internal static CanonicalXmlNodeList? GetPropagatedAttributes(XmlElement? elem)
500XmlElement? ancestorElement = ancestorNode as XmlElement;
System.ServiceModel.Federation (7)
System.ServiceModel.Federation.Tests (2)
System.ServiceModel.Primitives (6)
System.Xml (1)
System.Xml.ReaderWriter (1)
System.Xml.XmlDocument (1)