parsing list of childmost nodes in XML

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sspost
    New Member
    • Sep 2007
    • 15

    parsing list of childmost nodes in XML

    have an XML:



    <Main>



    <CoreList>

    <Element>A</Element>

    <AllowValue>

    <Display>AF04 </Display>

    </AllowValue>

    </CoreList>


    <CoreList>

    <Element>B</Element>

    <AllowValue>

    <Display>BF01 </Display>

    </AllowValue>

    <AllowValue>

    <Display>BF04 </Display>

    </AllowValue>

    <AllowValue>

    <Display>BF07 </Display>

    </AllowValue>

    <AllowValue>

    <Display>BF09 </Display>

    </AllowValue>

    </CoreList>


    </Main>

    I want to parse all the "AllowValue/Display" in the CoreList node where corelist text = "B" ...how can I do that?
Working...