Gets a list of config nodes matching an xpath.
Requested configuration nodes. If no nodes are found, null is returned.
The xpath must be relative to the sitecore node. It must never start with /
Get the list of item event handlers:
XmlNodeList nodes = ConfigReader.GetConfigNodes("eventHandlers/items");
foreach(XmlNode node in nodes) {
MainUtil.Out("Type: " + XmlUtil.GetAttribute("type", node));
}
Outputs: Type: Sitecore.Logging Type: Sitecore.WebEdit.ItemEventHandler Type: Sitecore.Preview.ItemEventHandler
ConfigReader Class | Sitecore.Configuration Namespace