Jump to content

srikanthmm

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by srikanthmm

  1. Hello, I have the following xml

        <XMLDataPersistence>       <Duration>30</Duration>       <HistoryFields>            <Id>                <Mandatory>True</Mandatory>                <Modifiable>True</Modifiable>                <Type>Text</Type>            </Id>        </HistoryFields></XMLDataPersistence>

    I am able to query upon duration as selectNodes("//XMLDataPersistence[Duration=30]") which gives coresponding XMLDataPersistence node. But similarly if I try to query selectNodes("//XMLDataPersistence/HistoryFields/Id[Mandatory=True]") does not return anything. But selectNodes("//XMLDataPersistence/HistoryFields/Id") or selectNodes("//XMLDataPersistence/HistoryFields/Id/Mandatory") returns respective nodes. I can then compare each mandatory node's text but ideally I would like the search do it for me.I even tried to get the HistoryFields nodes and do selectNodes("//Id[Mandatory=True]"); - no luck - returns nothing.Any help will be much appreciated.

×
×
  • Create New...