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
documentXmlDocumentXml document.
nodeActionFunc<XmlNode, object, bool>Action to call.
userDataobjectUser data passed to the node action.