• Hi

    Can any one give me the proper approach for this... in case any attribute missing in the xml node means, how the xquery will handle read the xml node.

    <root>

    <child id="1" name="name1" cat="Bus" ItemId="001"/>

    <child id="2" name="name2" cat="Car" ItemId="002"/>

    <child id="3" name="name3" cat="Train" />

    <child id="4" name="name4" cat="Air" ItemId="005"/>

    <child id="5" name="name5" cat="Bike" ItemId="022"/>

    </root>

    I want to read xml node by node based on ItemId, in this case itemId is missing in the 3rd node.

    When I used xquery to read this xml, it's working upto 2nd child node, after that its reading the 4th node'd itemId, then giving problem....

    Please any one help me to solve this problem...