hi
I need some help.
I have XML file with the folowing structure, and I wanted to know if there is a way to
get some FLD nodes from a LIN Node in 1 XPATH command so I can get these values in 1 command.
I need just the first FLD and the third FLD. and I want to get the XPathNodeIterator to iterate 3 times.
since there are 3 lines.
what is the way to do?

<TAB DIM="200" ID="POH2_1" SIZE="3" >
        <LIN NUM="1" >
            <FLD NAME="ITMREF" TYPE="Char" >ABC</FLD>
            <FLD NAME="LINAMT" TYPE="Decimal" >200</FLD>
            <FLD NAME="QTYUOM" TYPE="Decimal" >10</FLD>
            <FLD NAME="PUU" TYPE="Char" >EA</FLD>         
        </LIN>
        <LIN NUM="2" >           
            <FLD NAME="ITMREF" TYPE="Char" >DEF</FLD>
            <FLD NAME="LINAMT" TYPE="Decimal" >300</FLD>
            <FLD NAME="QTYUOM" TYPE="Decimal" >30</FLD>
            <FLD NAME="PUU" TYPE="Char" >EA</FLD>
        </LIN>
        <LIN NUM="3" >
            <FLD NAME="ITMREF" TYPE="Char" >XYZ</FLD>
            <FLD NAME="LINAMT" TYPE="Decimal" >500</FLD>
            <FLD NAME="QTYUOM" TYPE="Decimal" >40</FLD>
            <FLD NAME="PUU" TYPE="Char" >EA</FLD>
        </LIN>
</TAB>

thanks
Barak

what program language should be used
example xslt java ruby

hi, thanks for answering
I use VB.net

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.