6 types derived from XmlNode
System.Private.Xml (6)
1344 references to XmlNode
aspire (9)
Aspire.Cli.Tests (10)
dotnet.Tests (1)
ILLink.Tasks (2)
Interop.FunctionalTests (1)
Microsoft.AspNetCore.AzureAppServices.SiteExtension.Tests (6)
Microsoft.AspNetCore.Mvc.Test (1)
Microsoft.Build (21)
Microsoft.Build.BuildCheck.UnitTests (5)
Microsoft.Build.Engine.UnitTests (2)
Microsoft.Build.Tasks.Core (107)
BootstrapperUtil\BootstrapperBuilder.cs (78)
43private readonly Dictionary<string, XmlNode> _cultures = new Dictionary<string, XmlNode>(StringComparer.OrdinalIgnoreCase);
556XmlNode rootNode = resourceDoc.SelectSingleNode("Resources");
560XmlNode stringsNode = rootNode.SelectSingleNode("Strings");
561XmlNode stringNode = stringsNode?.SelectSingleNode(string.Format(CultureInfo.InvariantCulture, "String[@Name='{0}']", cultureAttribute.Value));
566XmlNode resourcesNode = rootNode.OwnerDocument.ImportNode(rootNode, true);
623foreach (XmlNode productNode in productsFound)
664foreach (XmlNode eitherProductNode in SelectEitherProducts(p))
669foreach (XmlNode relatedProductNode in eitherProductNode.SelectNodes(String.Format(CultureInfo.InvariantCulture, "{0}:DependsOnProduct", BOOTSTRAPPER_PREFIX), _xmlNamespaceManager))
715foreach (XmlNode relatedProduct in relatedProducts)
894XmlNode baseNode = productDoc.SelectSingleNode(BOOTSTRAPPER_PREFIX + ":Product", _xmlNamespaceManager);
902XmlNode productNode = rootElement.SelectSingleNode(BOOTSTRAPPER_PREFIX + ":Product[@ProductCode='" + productCodeAttribute.Value + "']", _xmlNamespaceManager);
915XmlNode packageFilesNode = baseNode.SelectSingleNode(BOOTSTRAPPER_PREFIX + ":PackageFiles", _xmlNamespaceManager);
916XmlNode checksNode = baseNode.SelectSingleNode(BOOTSTRAPPER_PREFIX + ":InstallChecks", _xmlNamespaceManager);
917XmlNode commandsNode = baseNode.SelectSingleNode(BOOTSTRAPPER_PREFIX + ":Commands", _xmlNamespaceManager);
950XmlNode langNode = langDoc.SelectSingleNode(BOOTSTRAPPER_PREFIX + ":Package", _xmlNamespaceManager);
958XmlNode packageFilesNodePackage = langElement.SelectSingleNode(BOOTSTRAPPER_PREFIX + ":PackageFiles", _xmlNamespaceManager);
1064private Product CreateProduct(XmlNode node)
1073XmlNode packageFilesNode = node.SelectSingleNode(BOOTSTRAPPER_PREFIX + ":Package/" + BOOTSTRAPPER_PREFIX + ":PackageFiles", _xmlNamespaceManager);
1084foreach (XmlNode packageNode in packageNodeList)
1103private static Package CreatePackage(XmlNode node, Product product)
1120private void ReplaceAttributes(XmlNode targetNode, string attributeName, string oldValue, string newValue)
1127foreach (XmlNode node in nodeList)
1141private static void ReplaceAttribute(XmlNode targetNode, string attributeName, string attributeValue)
1148private static void MergeAttribute(XmlNode targetNode, XmlAttribute attribute)
1158private void UpdatePackageFileNodes(XmlNode packageFilesNode, string strSourcePath, string strTargetPath)
1162foreach (XmlNode packageFileNode in packageFileNodeList)
1194XmlNode node = element.SelectSingleNode(BOOTSTRAPPER_PREFIX + ":" + nodeName, _xmlNamespaceManager);
1203XmlNode langNode = langElement.SelectSingleNode(BOOTSTRAPPER_PREFIX + ":" + strNodeName, _xmlNamespaceManager);
1204XmlNode baseNode = baseElement.SelectSingleNode(BOOTSTRAPPER_PREFIX + ":" + strNodeName, _xmlNamespaceManager);
1231XmlNode mergeSubNode = _document.CreateElement(strNodeName, BOOTSTRAPPER_NAMESPACE);
1232XmlNode nextNode = baseNode.FirstChild;
1243XmlNode queryResultNode = QueryForSubNode(langNode, strSubNodeKey, keyAttribute.Value);
1291private XmlNode QueryForSubNode(XmlNode subNode, string strSubNodeKey, string strTargetValue)
1297private void CorrectPackageFiles(XmlNode node)
1299XmlNode packageFilesNode = node.SelectSingleNode(BOOTSTRAPPER_PREFIX + ":PackageFiles", _xmlNamespaceManager);
1305foreach (XmlNode currentNode in packageFileNodeList)
1309XmlNode packageFileNode = packageFilesNode.SelectSingleNode(strQuery, _xmlNamespaceManager);
1319private void ReplaceStrings(XmlNode node)
1321XmlNode stringsNode = node.SelectSingleNode(BOOTSTRAPPER_PREFIX + ":Strings", _xmlNamespaceManager);
1332XmlNode packageFilesNode = node.SelectSingleNode(BOOTSTRAPPER_PREFIX + ":PackageFiles", _xmlNamespaceManager);
1336foreach (XmlNode packageFileNode in packageFileNodeList)
1345foreach (XmlNode currentNode in stringKeyNodeList)
1348XmlNode stringNode = stringsNode.SelectSingleNode(string.Format(CultureInfo.InvariantCulture, stringNodeLookupTemplate, attribute.Value), _xmlNamespaceManager);
1405XmlNode node = package.Node;
1409XmlNode installChecksNode = node.SelectSingleNode(BOOTSTRAPPER_PREFIX + ":InstallChecks", _xmlNamespaceManager);
1410foreach (XmlNode packageFileNode in packageFileNodes)
1419XmlNode packageFilesNode = node.SelectSingleNode(BOOTSTRAPPER_PREFIX + ":PackageFiles", _xmlNamespaceManager);
1444XmlNode subNode = null;
1557private XmlNode CreateProductNode(XmlNode node)
1560XmlNode productNode = _document.CreateElement("Product", BOOTSTRAPPER_NAMESPACE);
1573private static string ReadAttribute(XmlNode node, string strAttributeName)
1642private void ReplaceAttributeString(XmlNode node, string attributeName, XmlNode stringsNode)
1648XmlNode stringNode = stringsNode.SelectSingleNode(string.Format(CultureInfo.InvariantCulture, stringNodeLookupTemplate, attribute.Value), _xmlNamespaceManager);
1761XmlNode resourcesNode = GetResourcesNodeForSettings(settings, _results, ref codePage);
1762XmlNode stringsNode = resourcesNode.SelectSingleNode("Strings");
1763XmlNode fontsNode = resourcesNode.SelectSingleNode("Fonts");
1773foreach (XmlNode stringNode in stringNodes)
1785foreach (XmlNode fontNode in fontsNode.SelectNodes("Font"))
1801private XmlNode GetResourcesNodeForSettings(BuildSettings settings, BuildResults results, ref int codepage)
1805XmlNode cultureNode;
1864KeyValuePair<string, XmlNode> altCulturePair = _cultures.FirstOrDefault();
1873private XmlNode GetResourcesNodeForSettings_Helper(CultureInfo culture, CultureInfo altCulture, BuildResults results, ref int codepage, bool fShowWarning)
1875if (altCulture != null && _cultures.TryGetValue(altCulture.Name, out XmlNode cultureNode))
1902private void ReplacePackageFileAttributes(XmlNode targetNodes, string targetAttribute, XmlNode sourceNodes, string sourceSubNodeName, string sourceOldName, string sourceNewName)
1906foreach (XmlNode sourceNode in sourceNodeList)
1944private static void AddAttribute(XmlNode node, string attributeName, string attributeValue)
1954public static string XmlToConfigurationFile(XmlNode input)
1994private static void DumpXmlToFile(XmlNode node, string fileName)
2070private static bool VerifyHomeSiteInformation(XmlNode packageFileNode, ProductBuilder builder, BuildSettings settings, BuildResults results)
2088private bool AddVerificationInformation(XmlNode packageFileNode, string fileSource, string fileName, ProductBuilder builder, BuildSettings settings, BuildResults results)
2179private static void ConvertChildsNodeToAttributes(XmlNode node)
2181XmlNode childNode = node.FirstChild;
2186XmlNode currentNode = childNode;
 
Microsoft.Build.Utilities.Core (5)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Microsoft.Gen.MetadataExtractor (1)
Microsoft.Gen.Metrics (1)
Microsoft.Gen.MetricsReports (1)
Microsoft.Maui.Controls.SourceGen (12)
CodeBehindGenerator.cs (12)
155		var root = xmlDoc.SelectSingleNode("/*", nsmgr);
394		var root = parseResult.Root;
460	static IEnumerable<(string name, string type, string accessModifier)> GetNamedFields(XmlNode root, XmlNamespaceManager nsmgr, Compilation compilation, AssemblyCaches xmlnsCache, IDictionary<XmlType, string> typeCache, CancellationToken cancellationToken)
472		foreach (XmlNode node in names)
600	static string? GetAttributeValue(XmlNode node, string localName, params string[] namespaceURIs)
643	static void ApplyTransforms(XmlNode node, string? targetFramework, XmlNamespaceManager nsmgr)
648	static void SimplifyOnPlatform(XmlNode node, string? targetFramework, XmlNamespaceManager nsmgr)
685		foreach (XmlNode onPlatformNode in onPlatformNodes)
688			foreach (XmlNode onNode in onNodes)
690				var platforms = onNode.SelectSingleNode("@Platform");
737		public XamlProjectItem(ProjectItem projectItem, XmlNode root, XmlNamespaceManager nsmgr)
751		public XmlNode? Root { get; }
Microsoft.Maui.Resizetizer (3)
Microsoft.NET.Sdk.Publish.Tasks (7)
Microsoft.Web.Xdt.Extensions (1)
Microsoft.Web.Xdt.Extensions.Tests (8)
netstandard (1)
PresentationBuildTasks (13)
PresentationFramework (28)
PresentationFramework-SystemXml (16)
ReachFramework (3)
System.Configuration.ConfigurationManager (91)
System\Configuration\HandlerBase.cs (28)
11private static XmlNode GetAndRemoveAttribute(XmlNode node, string attrib, bool fRequired)
13XmlNode a = node.Attributes.RemoveNamedItem(attrib);
26private static XmlNode GetAndRemoveStringAttributeInternal(XmlNode node, string attrib, bool fRequired, ref string val)
28XmlNode a = GetAndRemoveAttribute(node, attrib, fRequired);
35internal static XmlNode GetAndRemoveStringAttribute(XmlNode node, string attrib, ref string val)
41private static XmlNode GetAndRemoveBooleanAttributeInternal(XmlNode node, string attrib, bool fRequired, ref bool val)
43XmlNode a = GetAndRemoveAttribute(node, attrib, fRequired);
61internal static XmlNode GetAndRemoveBooleanAttribute(XmlNode node, string attrib, ref bool val)
67private static XmlNode GetAndRemoveIntegerAttributeInternal(XmlNode node, string attrib, bool fRequired, ref int val)
69XmlNode a = GetAndRemoveAttribute(node, attrib, fRequired);
93internal static XmlNode GetAndRemoveIntegerAttribute(XmlNode node, string attrib, ref int val)
98internal static void CheckForUnrecognizedAttributes(XmlNode node)
109internal static string RemoveAttribute(XmlNode node, string name)
112XmlNode attribute = node.Attributes.RemoveNamedItem(name);
123internal static string RemoveRequiredAttribute(XmlNode node, string name)
128internal static string RemoveRequiredAttribute(XmlNode node, string name, bool allowEmpty)
130XmlNode attribute = node.Attributes.RemoveNamedItem(name);
149internal static void CheckForNonElement(XmlNode node)
157internal static bool IsIgnorableAlsoCheckForNonElement(XmlNode node)
169internal static void CheckForChildNodes(XmlNode node)
177internal static void ThrowUnrecognizedElement(XmlNode node)
 
System.Data.Common (207)
System\Xml\XmlDataDocument.cs (62)
114internal void SyncRows(DataRow? parentRow, XmlNode node, bool fAddRowsToTable)
141for (XmlNode? child = node.FirstChild; child != null; child = child.NextSibling)
147internal void SyncTree(XmlNode node)
181for (XmlNode? child = node.FirstChild; child != null; child = child.NextSibling)
425XmlNode? node = rowElem.FirstChild;
428XmlNode? next = node.NextSibling;
664XmlNode? priorNode = null;
686XmlNode? newNode = null;
745private XmlNode? GetColumnInsertAfterLocation(DataColumn col, XmlBoundElement rowElement)
747XmlNode? prev = null;
748XmlNode? node;
846private XmlElement? GetRowInsertBeforeLocation(DataRow row, XmlNode parentElement)
884internal bool HasPointers(XmlNode node)
946internal XmlNode CloneTree(DataPointer other)
957XmlNode newNode;
984private XmlNode CloneTreeInternal(DataPointer other)
991XmlNode newNode = CloneNode(other);
1023public override XmlNode CloneNode(bool deep)
1038XmlNode cloneNode;
1055private XmlNode CloneNode(DataPointer dp) =>
1084internal static bool IsTextLikeNode(XmlNode n)
1287private void LoadRows(XmlBoundElement? rowElem, XmlNode node)
1312for (XmlNode? child = node.FirstChild; child != null; child = child.NextSibling)
1556XmlNode? elemBefore = GetColumnInsertAfterLocation(col, rowElement);
1682private void OnFoliated(XmlNode node)
1836XmlNode node = args.Node!;
1837XmlNode? oldParent = args.OldParent;
1838XmlNode? newParent = args.NewParent;
1889XmlNode node = args.Node!;
1890XmlNode? oldParent = args.OldParent;
1922private void OnNodeRemovedFromTree(XmlNode node, XmlNode? oldParent)
1946private void OnNodeRemovedFromFragment(XmlNode node, XmlNode? oldParent)
2228XmlNode? refRow;
2252private void PromoteChild(XmlNode child, XmlNode prevSibling)
2270private void PromoteInnerRegions(XmlNode parent)
2276XmlNode prevSibling = parent;
2292private void PromoteNonValueChildren(XmlNode parent)
2295XmlNode prevSibling = parent;
2296XmlNode? child = parent.FirstChild;
2298XmlNode? nextSibling;
2313private void RemoveInitialTextNodes(XmlNode? node)
2317XmlNode? sibling = node.NextSibling;
2323private void ReplaceInitialChildText(XmlNode parent, string value)
2325XmlNode? n = parent.FirstChild;
2345internal XmlNode? SafeFirstChild(XmlNode n)
2355internal XmlNode? SafeNextSibling(XmlNode n)
2365internal XmlNode? SafePreviousSibling(XmlNode n)
2631private bool IsConnected(XmlNode? node)
2666private void OnNodeInsertedInTree(XmlNode node)
2704private void OnNodeInsertedInFragment(XmlNode node)
2855private void OnNonRowElementInsertedInTree(XmlNode node, XmlBoundElement rowElement, ArrayList rowElemList)
2941protected override XPathNavigator? CreateNavigator(XmlNode node)
2950XmlNode? parent = node.ParentNode;
2963XmlNode? prevSib = node.PreviousSibling;
2975private void AssertLiveRows(XmlNode node)
2998private void AssertNonLiveRows(XmlNode node)
System\Xml\XPathNodePointer.cs (49)
17private XmlNode _node;
48private XPathNodeType DecideXPNodeTypeForTextNodes(XmlNode node)
53XmlNode? n = node;
74private XPathNodeType ConvertNodeType(XmlNode node)
95internal XPathNodePointer(DataDocumentXPathNavigator owner, XmlDataDocument doc, XmlNode node) :
105private XPathNodePointer(DataDocumentXPathNavigator owner, XmlDataDocument doc, XmlNode node, DataColumn? c, bool bOnValue, XmlBoundElement? parentOfNS)
314XmlNode? parent = _node.ParentNode;
317XmlNode? n = _doc.SafeNextSibling(_node);
393XmlNode curNode = _node;
476private void MoveTo(XmlNode node)
485private void MoveTo(XmlNode node, DataColumn? column, bool fOnValue)
494private static bool IsFoliated(XmlNode node)
609XmlNode? n = _node.Attributes.GetNamedItem(localName, namespaceURI);
683private static bool IsValidChild(XmlNode parent, XmlNode child)
710private static bool IsValidChild(XmlNode parent, DataColumn c)
747XmlNode? n = _doc.SafeFirstChild(_node);
756XmlNode? n = _node;
757XmlNode? parent = _node.ParentNode;
802XmlNode? n = _node;
803XmlNode? parent = _node.ParentNode;
844XmlNode? parent;
873XmlNode? n = _doc.SafeFirstChild(parent);
915XmlNode? n = _doc.SafeFirstChild(_node);
959XmlNode? n = _doc.SafeFirstChild(_node);
997XmlNode? n;
1012private XmlNode? GetParent(XmlNode node)
1027XmlNode node = _node;
1028XmlNode? parent = _node;
1070private static XmlNode GetRoot(XmlNode node, ref int depth)
1073XmlNode curNode = node;
1074XmlNode? parent = ((curNode.NodeType == XmlNodeType.Attribute) ? (((XmlAttribute)curNode).OwnerElement) : (curNode.ParentNode));
1092XmlNode? curNode1, curNode2;
1174XmlNode root1 = XPathNodePointer.GetRoot(curNode1, ref depth1);
1175XmlNode root2 = XPathNodePointer.GetRoot(curNode2, ref depth2);
1200XmlNode? parent1 = GetParent(curNode1!);
1201XmlNode? parent2 = GetParent(curNode2!);
1202XmlNode? nextNode;
1226internal XmlNode? Node
1252bool IXmlDataVirtualNode.IsOnNode(XmlNode nodeToCheck)
1264void IXmlDataVirtualNode.OnFoliated(XmlNode foliatedNode)
1285XmlNode? n;
1369XmlNode? node = _node;
1404XmlNode? node = _node;
1516XmlNode? node = _node;
1551XmlNode? node;
1573XmlNode? node = _node;
 
System.Private.DataContractSerialization (35)
System.Private.Xml (588)
System\Xml\Dom\DocumentXmlWriter.cs (26)
58private readonly XmlNode _start; // context node
62private XmlNode? _write; // current node
63private readonly List<XmlNode> _fragment; // top level node cache
66private XmlNode? _end; // context for replace
68public DocumentXmlWriter(DocumentXmlWriterType type, XmlNode start, XmlDocument document)
75_fragment = new List<XmlNode>();
108public XmlNode EndNode
121XmlNode node = _document.CreateXmlDeclaration("1.0", string.Empty, standalone == XmlStandalone.Yes ? "yes" : "no");
131XmlNode node = _document.CreateXmlDeclaration(version!, encoding, standalone);
153XmlNode node = _document.CreateDocumentType(name, pubid, sysid, subset);
160XmlNode node = _document.CreateElement(prefix, localName, ns);
223XmlNode node = _document.CreateTextNode(string.Empty);
273XmlNode node = _document.CreateTextNode(string.Empty);
284XmlNode node = _document.CreateCDataSection(text);
292XmlNode node = _document.CreateComment(text);
300XmlNode node = _document.CreateProcessingInstruction(name, text!);
307XmlNode node = _document.CreateEntityReference(name);
323XmlNode node = _document.CreateWhitespace(text);
332XmlNode node = _document.CreateTextNode(text);
372XmlNode? parent = _start.ParentNode;
456XmlNode? parent = _start.ParentNode;
476XmlNode fragment0 = _fragment[0];
506private void AddAttribute(XmlAttribute attr, XmlNode? parent)
524private void AddChild(XmlNode node, XmlNode? parent)
544XmlNode? parent = _start.ParentNode;
System\Xml\Dom\DocumentXPathNavigator.cs (123)
18private XmlNode _source; // navigator position
22public DocumentXPathNavigator(XmlDocument document, XmlNode node)
45XmlNode node = _source;
46XmlNode end;
205XmlNode? nextSibling = NextSibling(_source);
365XmlNode? node = _source;
707XmlNode? sibling = NextSibling(_source);
723XmlNode? parent = ParentNode(sibling);
739XmlNode? sibling = PreviousSibling(_source);
759XmlNode? parent = ParentNode(sibling);
782XmlNode? parent = ParentNode(_source);
787XmlNode? sibling = FirstChild(parent);
803XmlNode? child;
838XmlNode? parent = ParentNode(_source);
861XmlNode? parent = _source.ParentNode;
911XmlNode? child = FirstChild(_source);
937XmlNode? child = FirstChild(_source);
961XmlNode? pastFollowing = null;
981XmlNode? following = _source;
992XmlNode? firstChild = following.FirstChild;
1001XmlNode? nextSibling = following.NextSibling;
1009XmlNode? parent = following.ParentNode;
1036XmlNode? pastFollowing = null;
1061XmlNode? following = _source;
1080XmlNode? firstChild = following.FirstChild;
1089XmlNode? nextSibling = following.NextSibling;
1097XmlNode? parent = following.ParentNode;
1122XmlNode? sibling = NextSibling(_source);
1144XmlNode? sibling = NextSibling(_source);
1181XmlNode? child;
1277private static XmlNode? OwnerNode(XmlNode node)
1279XmlNode? parent = node.ParentNode;
1291private static int GetDepth(XmlNode node)
1294XmlNode? owner = OwnerNode(node);
1305private static XmlNodeOrder Compare(XmlNode node1, XmlNode node2)
1347XmlNode? nextNode = node1.NextSibling;
1380XmlNode? node1 = _source;
1381XmlNode? node2 = that._source;
1383XmlNode? parent1 = OwnerNode(node1);
1384XmlNode? parent2 = OwnerNode(node2);
1448XmlNode IHasXmlNode.GetNode() { return _source; }
1536XmlNode node = _source;
1606XmlNode node = _source;
1607XmlNode end = that._source;
1657XmlNode node = _source;
1658XmlNode end = that._source;
1670XmlNode? parent = OwnerNode(attribute);
1707XmlNode? parent = OwnerNode(node);
1718XmlNode node = _source;
1719XmlNode end = node;
1729XmlNode? parent = OwnerNode(attribute);
1776internal static void DeleteToFollowingSibling(XmlNode node, XmlNode end)
1778XmlNode? parent = node.ParentNode;
1792XmlNode temp = node;
1799private static XmlNamespaceManager GetNamespaceManager(XmlNode? node, XmlDocument document)
1831internal void ResetPosition(XmlNode node)
1889XmlNode? text = PreviousText(_source);
1897private XmlNode? ParentNode(XmlNode node)
1899XmlNode? parent = node.ParentNode;
1908private static XmlNode? ParentNodeTail(XmlNode? parent)
1918private XmlNode? FirstChild(XmlNode node)
1920XmlNode? child = node.FirstChild;
1929private static XmlNode? FirstChildTail(XmlNode? child)
1939private XmlNode? NextSibling(XmlNode node)
1941XmlNode? sibling = node.NextSibling;
1950private static XmlNode? NextSiblingTail(XmlNode node, XmlNode? sibling)
1952XmlNode? current = node;
1971private XmlNode? PreviousSibling(XmlNode node)
1973XmlNode? sibling = node.PreviousSibling;
1982private static XmlNode? PreviousSiblingTail(XmlNode node, XmlNode? sibling)
1984XmlNode? current = node;
2003private XmlNode? PreviousText(XmlNode node)
2005XmlNode? text = node.PreviousText;
2014private static XmlNode? PreviousTextTail(XmlNode node, XmlNode? text)
2024XmlNode? sibling = node.PreviousSibling;
2025XmlNode? current = node;
2055internal static bool IsFollowingSibling(XmlNode left, [NotNullWhen(true)] XmlNode? right)
2057XmlNode? currentLeft = left;
2073private static bool IsDescendant(XmlNode top, XmlNode bottom)
2077XmlNode? parent = bottom.ParentNode;
2099private static bool IsValidChild(XmlNode parent, XmlNode child)
2133private XmlNode TextStart(XmlNode node)
2135XmlNode start;
2136XmlNode? current = node;
2148private XmlNode TextEnd(XmlNode node)
2150XmlNode end;
2151XmlNode? current = node;
2198protected abstract bool Match(XmlNode node);
2242XmlNode node = (XmlNode)_nav.UnderlyingObject;
2257Debug.Assert(((XmlNode)nav.UnderlyingObject).NodeType != XmlNodeType.Attribute);
2268protected override bool Match(XmlNode node)
2294XmlNode node = (XmlNode)nav.UnderlyingObject;
2311Debug.Assert(((XmlNode)nav.UnderlyingObject).NodeType != XmlNodeType.Attribute);
2324protected override bool Match(XmlNode node)
2351XmlNode node = (XmlNode)nav.UnderlyingObject;
2369Debug.Assert(((XmlNode)nav.UnderlyingObject).NodeType != XmlNodeType.Attribute);
2389protected override bool Match(XmlNode node)
2418XmlNode node = (XmlNode)nav.UnderlyingObject;
System\Xml\Dom\XmlDocument.cs (42)
344public override XmlNode CloneNode(bool deep)
360public override XmlNode? ParentNode
489private static bool HasNodeTypeInPrevSiblings(XmlNodeType nt, XmlNode? refNode)
494XmlNode? node = null;
510private static bool HasNodeTypeInNextSiblings(XmlNodeType nt, XmlNode? refNode)
512XmlNode? node = refNode;
522internal override bool CanInsertBefore(XmlNode newChild, XmlNode? refChild)
564internal override bool CanInsertAfter(XmlNode newChild, XmlNode? refChild)
755protected internal virtual XPathNavigator? CreateNavigator(XmlNode node)
758XmlNode? parent;
840private static XmlNode? NormalizeText(XmlNode node)
842XmlNode? retnode = null;
843XmlNode? n = node;
852XmlNode intnode = retnode;
948public virtual XmlNode ImportNode(XmlNode node, bool deep)
953private XmlNode ImportNodeInternal(XmlNode node, bool deep)
961XmlNode newNode;
1026private void ImportAttributes(XmlNode fromElem, XmlNode toElem)
1036private void ImportChildren(XmlNode fromNode, XmlNode toNode, bool deep)
1039for (XmlNode? n = fromNode.FirstChild; n != null; n = n.NextSibling)
1107public virtual XmlNode CreateNode(XmlNodeType type, string? prefix, string name, string? namespaceURI)
1163public virtual XmlNode CreateNode(string nodeTypeString, string name, string? namespaceURI)
1170public virtual XmlNode CreateNode(XmlNodeType type, string name, string? namespaceURI)
1177public virtual XmlNode? ReadNode(XmlReader reader)
1179XmlNode? node = null;
1431XmlNode? n = this.FirstChild;
1472foreach (XmlNode n in this)
1483public void Validate(ValidationEventHandler? validationEventHandler, XmlNode nodeToValidate)
1578internal override XmlNodeChangedEventArgs? GetEventArgs(XmlNode node, XmlNode? oldParent, XmlNode? newParent, string? oldValue, string? newValue, XmlNodeChangedAction action)
1606internal XmlNodeChangedEventArgs? GetInsertEventArgsForLoad(XmlNode node, XmlNode newParent)
1766internal override XmlNode AppendChildForLoad(XmlNode newChild, XmlDocument doc)
System\Xml\Dom\XmlNode.cs (80)
21internal XmlNode? parentNode; //this pointer is reused to save the userdata information, need to prevent internal user access the pointer directly.
49public XmlNode? SelectSingleNode(string xpath)
65public XmlNode? SelectSingleNode(string xpath, XmlNamespaceManager nsmgr)
124public virtual XmlNode? ParentNode
164public virtual XmlNode? PreviousSibling
170public virtual XmlNode? NextSibling
195public virtual XmlNode? FirstChild
208public virtual XmlNode? LastChild
224internal bool AncestorNode(XmlNode node)
226XmlNode? n = this.ParentNode;
241XmlNode? parent = ParentNode;
248public virtual XmlNode? InsertBefore(XmlNode newChild, XmlNode? refChild)
278XmlNode? first = newChild.FirstChild;
279XmlNode? node = first;
362public virtual XmlNode? InsertAfter(XmlNode newChild, XmlNode? refChild)
392XmlNode last = refChild;
393XmlNode? first = newChild.FirstChild;
394XmlNode? node = first;
397XmlNode? next = node.NextSibling;
479public virtual XmlNode ReplaceChild(XmlNode newChild, XmlNode oldChild)
481XmlNode? nextNode = oldChild.NextSibling;
488public virtual XmlNode RemoveChild(XmlNode oldChild)
574public virtual XmlNode? PrependChild(XmlNode newChild)
580public virtual XmlNode? AppendChild(XmlNode newChild)
598XmlNode? first = newChild.FirstChild;
599XmlNode? node = first;
602XmlNode? next = node.NextSibling;
656internal virtual XmlNode AppendChildForLoad(XmlNode newChild, XmlDocument doc)
699internal virtual bool CanInsertBefore(XmlNode newChild, XmlNode? refChild)
704internal virtual bool CanInsertAfter(XmlNode newChild, XmlNode? refChild)
716public abstract XmlNode CloneNode(bool deep);
718internal virtual void CopyChildren(XmlDocument doc, XmlNode container, bool deep)
720for (XmlNode? child = container.FirstChild; child != null; child = child.NextSibling)
735XmlNode? firstChildTextLikeNode = null;
737for (XmlNode? crtChild = this.FirstChild; crtChild != null;)
739XmlNode? nextChild = crtChild.NextSibling;
747XmlNode? winner = NormalizeWinner(firstChildTextLikeNode, crtChild);
786private static XmlNode? NormalizeWinner(XmlNode? firstNode, XmlNode secondNode)
855internal static bool HasReadOnlyParent(XmlNode? n)
878public virtual XmlNode Clone()
902for (XmlNode? child = FirstChild; child != null; child = child.NextSibling)
923XmlNode? fc = FirstChild;
948XmlNode? firstChild = FirstChild;
1019XmlNode? curNode = this.ParentNode; //save one while loop since if going to here, the nodetype of this node can't be document, entity and entityref
1047XmlNode? child = FirstChild;
1048XmlNode? sibling;
1088XmlNode? node = this;
1173XmlNode? node = this;
1242for (XmlNode? n = FirstChild; n != null; n = n.NextSibling)
1258for (XmlNode? n = FirstChild; n != null; n = n.NextSibling)
1268internal virtual void SetParent(XmlNode? node)
1280internal virtual void SetParentForLoad(XmlNode node)
1300internal virtual XmlNode? FindChild(XmlNodeType type)
1302for (XmlNode? child = FirstChild; child != null; child = child.NextSibling)
1313internal virtual XmlNodeChangedEventArgs? GetEventArgs(XmlNode node, XmlNode? oldParent, XmlNode? newParent, string? oldValue, string? newValue, XmlNodeChangedAction action)
1346XmlNode? node = this;
1376XmlNode? node = this;
1423public virtual XmlNode? PreviousText
1431internal static void NestTextNodes(XmlNode prevNode, XmlNode nextNode)
1439internal static void UnnestTextNodes(XmlNode prevNode, XmlNode nextNode)
1452private readonly XmlNode _node;
1454public DebuggerDisplayXmlNodeProxy(XmlNode node)
System\Xml\Serialization\XmlSerializationWriter.cs (12)
280else if (type == typeof(XmlNode[]))
418else if (typeof(XmlNode[]).IsAssignableFrom(t))
425XmlNode[] xmlNodes = (XmlNode[])o;
807protected void WriteElementEncoded(XmlNode? node, string name, string? ns, bool isNullable, bool any)
817protected void WriteElementLiteral(XmlNode? node, string name, string? ns, bool isNullable, bool any)
827private void WriteElement(XmlNode node, string name, string? ns, bool isNullable, bool any)
968protected void WriteXmlAttribute(XmlNode node)
973protected void WriteXmlAttribute(XmlNode node, object? container)
1384if (Type.GetTypeCode(t) == TypeCode.Object && !(o is Guid) && (t != typeof(XmlQualifiedName)) && !(o is XmlNode[]) && (t != typeof(byte[])))
4195Writer.Write(typeof(XmlNode).FullName);
4202WriteElementCall("WriteElementLiteral", typeof(XmlNode), source, name, ns, element.IsNullable, element.Any);
 
System.Runtime.Serialization.Schema (4)
System.Security.Cryptography.Xml (135)
System\Security\Cryptography\Xml\CanonicalizationDispatcher.cs (6)
13public static void Write(XmlNode node, StringBuilder strBuilder, DocPosition docPos, AncestralNamespaceContextManager anc)
25public static void WriteGenericNode(XmlNode node, StringBuilder strBuilder, DocPosition docPos, AncestralNamespaceContextManager anc)
30foreach (XmlNode childNode in childNodes)
36public static void WriteHash(XmlNode node, HashAlgorithm hash, DocPosition docPos, AncestralNamespaceContextManager anc)
48public static void WriteHashGenericNode(XmlNode node, HashAlgorithm hash, DocPosition docPos, AncestralNamespaceContextManager anc)
53foreach (XmlNode childNode in childNodes)
 
System.ServiceModel.Primitives (7)
System.Windows.Controls.Ribbon (4)
System.Windows.Forms (4)
System.Xml (1)
System.Xml.ReaderWriter (1)
System.Xml.XmlDocument (1)