Click or drag to resize
XElementExtensionsGetElements Method
Gets the child elements from element source XML data given by elementName. Ignores case in element name and defined namespace.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
public static IEnumerable<XElement> GetElements(
	this XElement element,
	string elementName
)

Parameters

element
Type: System.Xml.LinqXElement
Source XML element
elementName
Type: SystemString
Element name

Return Value

Type: IEnumerableXElement

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type XElement. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also