I have a block of XML similar to the following:
<factsheet>
<bilcontents >
<config name="1" />
</bilcontents>
<singlefactsheet includeInBook="true">
<config name="7" />
<fund id="630" />
</singlefactsheet>
<doubleFactsheet includeInBook="true">
<config name="8" />
<fund id="623" />
<fund id="624" />
</doubleFactsheet>
<tripplefactsheet includeInBook="true">
<config name="6" />
<fund id="36" />
<fund id="37" />
<fund id="38" />
</tripplefactsheet>
</factsheet>
Is it possible for me to get a list of XElements that contains each of these, as long as includeInBook="true"
, and with each element I can then deal with it based on the type of node.