I want to use XQuery to display the value if FrequencyCdvalue="01" and city type="first" in the following XML.
Can you pls help me here
<Envelope>
<Arrangement>
<FrequencyCd value="01">first first</FrequencyCd>
<FrequencyCd value="02">first second</FrequencyCd>
<contactinfo> <Address>
<street>234 Rolling Lane</street>
<city type="first">Rockport</city>
</Address>
<email>[email protected]</email>
</contactinfo>
</Arrangement>
<Arrangement>
<FrequencyCd value="03">second first</FrequencyCd>
<FrequencyCd value="04">second second</FrequencyCd>
<contactinfo>
<Address>
<street>234 Straight Lane</street>
<city type="first">Crackport</city>
</Address>
<email>[email protected]</email>
</contactinfo>
</Arrangement>
</Envelope>
/Envelope/Arrangement[FrequencyCd/@value='01' and contactinfo/Address/city/@type='first']should get you started.