pull xml's from logs

Hi Frnds

I Want to pull xml's from logs based on the below condition.In each log having so many xml's it's taking so much of time to search all logs manually...can u please provide solution

USER:ECMINT CONV:GETARPLNICHUBTST
<CardNbr>376703134104004</CardNbr>
</Envelope>

Response XML:
</Envelope>

Description:
In each log having so many request and response xml's
each XML should be start with
USER:ECMINT CONV:GETARPLNICHUBTST
and some xml's having below tag <CardNbr>376703134104004</CardNbr>
and XML end with tag in request xml
</Envelope>

After request xml ...response xml will start some tags and should be end with again
</Envelope>

I hv already posted 1 script ..chk whether it is helpful or not
plz chk the add given below:
http://www.unix.com/shell-programming-scripting/78181-finding-xml-element-moving-file-post302227903.html\#post302227903

Could you please provide solution ....

Please read the rules. Complete words and sentences are required on this site.