Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

Search XML Document with multiple matches

$
0
0

Hi

I have to search an XMLDoucment,

<?xml version="1.0" encoding="UTF-8"?>

    <cricketers>

        <cricketer type="lefty">

            <name>Shikhar Dhawan</name>

            <role>Batsman</role>

            <position>Point</position>

        </cricketer>

        <cricketer type="righty">

            <name>Virat Kohli</name>

            <role>Batsman</role>

            <position>cover</position>

        </cricketer>

        <cricketer type="righty">

            <name>Shami</name>

            <role>Bowler</role>

            <position>SquareLeg</position>

        </cricketer>

        <cricketer type="lefty">

            <name>Zaheer Khan</name>

            <role>Bowler</role>

            <position>FineLeg</position>

        </cricketer>

    </cricketers>

I would like to select all the cricketer nodes, where the name contains 'an' or 'mi'

Can you help me on this?

Thanks

Tutu


Viewing all articles
Browse latest Browse all 935

Trending Articles