shotsy247
09-03-2009, 07:20 AM
Hi All,
I have an XML document that looks like this:
<features>
<featureSet>
<description>Application Features</description>
<feature>
<description>Some Description</description>
<standard>true</standard>
<preferred>true</preferred>
<professional>true</professional>
<legal>true</legal>
</feature>
<feature>
<description>Some Description</description>
<standard>true</standard>
<preferred>true</preferred>
<professional>true</professional>
<legal>true</legal>
</feature>
</featureSet>
<featureSet>
<description>Extra Features</description>
<feature>
<description>Some Description</description>
<standard>true</standard>
<preferred>true</preferred>
<professional>true</professional>
<legal>true</legal>
</feature>
<feature>
<description>Some Description</description>
<standard>true</standard>
<preferred>true</preferred>
<professional>true</professional>
<legal>true</legal>
</feature>
</featureSet>
</features>
I am able to iterate through the various featureSet description texts and would like use those values to select all of the feature nodes of any given featureSet. What would the XPath look like to accomlish this?
Thanks in advance.
_t
I have an XML document that looks like this:
<features>
<featureSet>
<description>Application Features</description>
<feature>
<description>Some Description</description>
<standard>true</standard>
<preferred>true</preferred>
<professional>true</professional>
<legal>true</legal>
</feature>
<feature>
<description>Some Description</description>
<standard>true</standard>
<preferred>true</preferred>
<professional>true</professional>
<legal>true</legal>
</feature>
</featureSet>
<featureSet>
<description>Extra Features</description>
<feature>
<description>Some Description</description>
<standard>true</standard>
<preferred>true</preferred>
<professional>true</professional>
<legal>true</legal>
</feature>
<feature>
<description>Some Description</description>
<standard>true</standard>
<preferred>true</preferred>
<professional>true</professional>
<legal>true</legal>
</feature>
</featureSet>
</features>
I am able to iterate through the various featureSet description texts and would like use those values to select all of the feature nodes of any given featureSet. What would the XPath look like to accomlish this?
Thanks in advance.
_t