Table of Contents

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

nodeList XmlNodeList

Node list to search in

node XmlNode

Node 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

nodeList XmlNodeList

Node list to search in

name string

Name 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

nodeList XmlNodeList

Node list to search in

name string

Name of the nodes to find

Returns

List<XmlNode>

List of matching nodes