ComponentUtilities.XmlStreamAxis(String, String) Method

This provides a fast and efficient way of querying large XML files for a specific element type

Definition

Namespace: Sandcastle.Core
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2024.12.21.0
public static IEnumerable<XElement> XmlStreamAxis(
	string xmlFile,
	string elementName
)

Parameters

xmlFile  String
The XML file to search
elementName  String
The element name for which to search

Return Value

IEnumerable<XElement>
An enumerable list of XElement instances for each of the found nodes

Remarks

This version only looks for a single element type which cannot contain nested instances of the given element.

See Also