[]
        
(Showing Draft Content)

C1.LiveLinq.LiveViews.Xml.XmlExtensions.Elements

Elements Method

Elements<T>(View<T>)

Returns a view representing the collection of child elements of every element and document in the source view..

Declaration
public static View<XElement> Elements<T>(this View<T> view) where T : XContainer
Parameters
Type Name Description
View<T> view

The source view.

Returns
Type Description
View<XElement>

A view containing the child elements of every element and document in the source view.

Type Parameters
Name Description
T

The type of the objects in the source view, constrained to XContainer.

Elements<T>(View<T>, XName)

Returns a view representing filtered collection of child elements of every element and document in the source view. Only elements that have a matching XName are included.

Declaration
public static View<XElement> Elements<T>(this View<T> view, XName name) where T : XContainer
Parameters
Type Name Description
View<T> view

The source view.

XName name

The XName to match.

Returns
Type Description
View<XElement>

A view that contains a filtered collection of child elements of every element and document in the source view. Only elements that have a matching XName are included.

Type Parameters
Name Description
T

The type of the objects in the source view, constrained to XContainer.