Class XmlNodeListExtensions
- Namespace
- SunamoExtensions
- Assembly
- SunamoExtensions.dll
Extension methods for XmlNodeList type
public static class XmlNodeListExtensions
- Inheritance
-
XmlNodeListExtensions
- Inherited Members
Methods
Contains(XmlNodeList, XmlNode)
Determines whether the node list contains the specified node
public static bool Contains(this XmlNodeList nodeList, XmlNode node)
Parameters
nodeListXmlNodeListNode list to search in
nodeXmlNodeNode to search for
Returns
- bool
True if the node is found
First(XmlNodeList, string)
Returns the first node with the specified name
public static XmlNode? First(this XmlNodeList nodeList, string name)
Parameters
nodeListXmlNodeListNode list to search in
namestringName of the node to find
Returns
- XmlNode
First matching node, or null if not found
WithName(XmlNodeList, string)
Returns all nodes with the specified name
public static List<XmlNode> WithName(this XmlNodeList nodeList, string name)
Parameters
nodeListXmlNodeListNode list to search in
namestringName of the nodes to find