ComponentUtilitiesXmlStreamAxis(String, IEnumerableString) Method
This provides a fast and efficient way of querying large XML files for specific element types which
themselves may contain instances of the given elements.
Namespace: Sandcastle.CoreAssembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2024.9.12.0
public static IEnumerable<XElement> XmlStreamAxis(
string xmlFile,
IEnumerable<string> elementNames
)
Public Shared Function XmlStreamAxis (
xmlFile As String,
elementNames As IEnumerable(Of String)
) As IEnumerable(Of XElement)
public:
static IEnumerable<XElement^>^ XmlStreamAxis(
String^ xmlFile,
IEnumerable<String^>^ elementNames
)
static member XmlStreamAxis :
xmlFile : string *
elementNames : IEnumerable<string> -> IEnumerable<XElement>
- xmlFile String
- The XML file to search
- elementNames IEnumerableString
- An enumerable list of element names for which to search
IEnumerableXElementAn enumerable list of
XElement instances for each of the found nodes including
any nested instances of elements with those names.
If the element contains nested instances of the elements, the parent is returned first
followed by the nested elements (one level deep only).