Need to extract XML message from log

I need help to extract a following SOAP-ENV:Header XML message from the log.

XML message need to be extracted:
***************************

<SOAP-ENV:Header>
<ServiceGatewayHeader>
<SourceApplicationId>OXL</SourceApplicationId>
<Version>1.0</Version>
<UserId>TEST</UserId>
<DatetimeStamp>20-09-06 12:00:00</DatetimeStamp>
<Severity>NONE</Severity>
</ServiceGatewayHeader>
</SOAP-ENV:Header>

Log:

INFO 2008-07-04 10:39:35 @main [46] com.sigma.jea.call.CallFactory> search node ./condition under /#document/jea/taskTypes/taskType/function_body/assign
INFO 2008-07-04 10:39:35 @main [46] com.sigma.jea.call.CallFactory> add stmt:complete_envelope = join('<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelop
e/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:m0="java:
com.sprint.webservice.voiceoverip.helpers" xmlns:m1="java:com.sprint.webservice.voiceoverip.common" xmlns:m2="Bing">
DEBUG 2008-07-04 10:39:35 @main [36] com.sigma.jea.call.CallFunc> type of header in sprint_voip_query_csr=string

<SOAP-ENV:Header>
<ServiceGatewayHeader>
<SourceApplicationId>OXL</SourceApplicationId>
<Version>1.0</Version>
<UserId>TEST</UserId>
<DatetimeStamp>20-09-06 12:00:00</DatetimeStamp>
<Severity>NONE</Severity>
</ServiceGatewayHeader>
</SOAP-ENV:Header>

INFO 2008-07-04 10:39:35 @main [46] com.sigma.jea.call.CallFactory> search node ./condition under /#document/jea/taskTypes/taskType/function_body/assign
DEBUG 2008-07-04 10:39:35 @main [36] com.sigma.jea.call.CallFunc> type of header in sprint_voip_query_csr=string
INFO 2008-07-04 10:39:35 @main [46] com.sigma.jea.call.CallFactory> add stmt:complete_envelope = join('<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelop
e/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:m0="java:
com.sprint.webservice.voiceoverip.helpers" xmlns:m1="java:com.sprint.webservice.voiceoverip.common" xmlns:m2="Bing">

You need to provide more information if you want help from this forum

i found a way to extract from log by using sed command as below:

cat abc.log | sed -n '/<SOAP-ENV:Header/,/<\/SOAP-ENV:Header/p'

don't use cat when you are using sed,awk or grep they can take file as an input!!!

What vidyadhar85 means is that you can eliminate the use of "cat" by doing the following:

sed -n '/<SOAP-ENV:Header/,/<\/SOAP-ENV:Header/p'  abc.log