Method ForEachChild
ForEachChild(XmlDocument, Func<XmlNode, object?, bool>?, object?)
Calls specified action for the each child node of the xml document. Root node is ignored.
public static bool ForEachChild(XmlDocument document, Func<XmlNode, object?, bool>? nodeAction, object? userData = null)
Parameters
document
XmlDocumentXml document.
nodeAction
Func<XmlNode, object, bool>Action to call.
userData
objectUser data passed to the node action.