title: XSLT issue PART 2
body: <p>I got a solution for a previous issue, now the new question is:
  If I Have following set of requests:</p>
  
  <pre><code>&lt;notification&gt;
      &lt;transaction id="B0GQ95PH07QR"/&gt;
      &lt;info origin="INT.02" type="NPM Event" hostname="prmrte02" time="2015-02-28T02:26:42+02:00"/&gt;
      &lt;data&gt;
          &lt;admin originator="" event_time="2015-02-28T02:26:42+02:00"&gt;
              &lt;input&gt;
                  &lt;request_set tx_id="Y2xfMDFfMDE6LWFjODQ2MTQ6Y2E3Mjo1NGVmYjA3NjoxNTE3ODA=#YWM4NDYxNDpjYTcyOjU0ZWZiMDc2OjE1MTc5Ng==" tx_timeout="2015-02-28T00:36:51.824Z" tx_command="start"&gt;
                      &lt;transaction id="B0GQ95PH07QR"/&gt;
                      &lt;request report=""&gt;
                          &lt;update&gt;
                              &lt;account_data id="2005637" parent="3615732" Status="5" instance="1"&gt;
                                  &lt;info&gt;
                                      &lt;additional languageid="ARA" nwop="WMP" expdat="2015-08-17T00:00:00+02:00" exptyp="Deactivate" status="5" as="PAS/SUSP" dyn="ch=US,gn=,ct=1,enc=true,tp=TP_STUDENTS"/&gt;
                                  &lt;/info&gt;
                                  &lt;event_map&gt;
                                      &lt;item id="101" value="ARA"/&gt;
                                      &lt;item id="102" value="WMP"/&gt;
                                      &lt;item id="110" value="2015-08-17T00:00:00.000+02:00"/&gt;
                                      &lt;item id="111" value="Deactivate"/&gt;
                                  &lt;/event_map&gt;
                                  &lt;map&gt;
                                      &lt;item id="3" name="TOKEN" value="1234567" vfrom="2014-10-28T21:51:36+02:00"/&gt;
                                      &lt;item id="2" name="MSISDN" value="1234567" vfrom="2014-10-28T21:51:36+02:00"/&gt;
                                      &lt;item id="1" name="IMSI" value="425062260312424" vfrom="2014-10-28T21:51:36+02:00"/&gt;
                                  &lt;/map&gt;
                                  &lt;balances&gt;
                                      &lt;item id="40" name="BLC_Points_Limit" value="0.0" rollover_cnt="0"/&gt;
                                      &lt;item id="50" name="BLP_Bonus_GeoPoll" value="0.0" rollover_cnt="0"/&gt;
                                      &lt;item id="3" name="BLP_Bonus" value="0.0" rollover_cnt="0"/&gt;
                                      &lt;item id="38" name="BLC_Transfered_Points" value="0.0" rollover_cnt="0"/&gt;
                                      &lt;item id="39" name="BLC_TP" value="0.0" rollover_cnt="0"/&gt;
                                      &lt;item id="22" name="BLC_Points" value="0.0" rollover_cnt="0"/&gt;
                                      &lt;item id="62" name="BLB_PSR_Flag" value="0.0" rollover_cnt="0"/&gt;
                                      &lt;item id="43" name="BLP_Bonus_Points" value="0.0" rollover_cnt="0"/&gt;
                                      &lt;item id="1" name="BLP_Main" value="0.0" rollover_cnt="0"/&gt;
                                      &lt;item id="32" name="BLC_SEC_OFFNET_MTC" value="0.0" rollover_cnt="0"/&gt;
                                      &lt;item id="34" name="BLC_CT_USAGE" value="0.0" rollover_cnt="0"/&gt;
                                      &lt;item id="2" name="BLP_Debt" value="0.0" rollover_cnt="0"/&gt;
                                      &lt;item id="53" name="BLP_Act_Gift" value="0.0" rollover_cnt="0"/&gt;
                                  &lt;/balances&gt;
                                  &lt;recurring&gt;
                                      &lt;item id="38" index="1" spc_id="30957767" bundle_id="61" start_date="2015-02-19T20:45:34+02:00"/&gt;
                                  &lt;/recurring&gt;
                                  &lt;service_options&gt;
                                      &lt;item id="1" bundle_id="1" state="1" spc_id="25284120"/&gt;
                                      &lt;item id="1209" usdate="2014-10-28T21:51:36+02:00" bundle_id="1" state="0" spc_id="25284259"/&gt;
                                      &lt;item id="1192" usdate="2014-10-28T21:51:36+02:00" bundle_id="1" state="0" spc_id="25284225"/&gt;
                                      &lt;item id="1296" usdate="2014-10-28T21:51:36+02:00" bundle_id="65" state="0" spc_id="25284378"/&gt;
                                      &lt;item id="1198" usdate="2014-10-28T21:51:36+02:00" bundle_id="1" state="0" spc_id="25284136"/&gt;
                                      &lt;item id="1020" usdate="2014-10-28T21:51:36+02:00" bundle_id="56" state="0" spc_id="25284301"/&gt;
                                      &lt;item id="1201" usdate="2014-10-28T21:51:36+02:00" bundle_id="1" state="0" spc_id="25284233"/&gt;
                                      &lt;item id="1179" usdate="2014-10-28T21:51:36+02:00" bundle_id="60" state="0" spc_id="25284088"/&gt;
                                      &lt;item id="1174" usdate="2014-10-28T21:51:36+02:00" bundle_id="60" state="0" spc_id="25284099"/&gt;
                                      &lt;item id="1193" usdate="2014-10-28T21:51:36+02:00" bundle_id="1" state="0" spc_id="25284167"/&gt;
                                      &lt;item id="1202" usdate="2014-10-28T21:51:36+02:00" bundle_id="1" state="0" spc_id="25284271"/&gt;
                                      &lt;item id="1328" usdate="2015-02-27T21:49:35+02:00" bundle_id="74" state="0" spc_id="31047013"/&gt;
                                      &lt;item id="1295" usdate="2015-02-17T11:13:04+02:00" bundle_id="60" state="0" spc_id="30914089"/&gt;
                                      &lt;item id="1190" usdate="2014-10-28T21:51:36+02:00" bundle_id="1" state="0" spc_id="25284195"/&gt;
                                      &lt;item id="1194" usdate="2014-10-28T21:51:36+02:00" bundle_id="1" state="0" spc_id="25284155"/&gt;
                                      &lt;item id="1292" usdate="2014-10-28T21:51:36+02:00" bundle_id="65" state="0" spc_id="25284363"/&gt;
                                      &lt;item id="1207" usdate="2014-10-28T21:51:36+02:00" bundle_id="65" state="0" spc_id="25284336"/&gt;
                                      &lt;item id="1210" usdate="2014-10-28T21:51:36+02:00" bundle_id="65" state="0" spc_id="25284350"/&gt;
                                      &lt;item id="1200" usdate="2014-10-28T21:51:36+02:00" bundle_id="1" state="0" spc_id="25284248"/&gt;
                                      &lt;item id="1197" usdate="2014-10-28T21:51:36+02:00" bundle_id="1" state="0" spc_id="25284181"/&gt;
                                      &lt;item id="1307" usdate="2014-10-28T21:51:36+02:00" bundle_id="60" state="0" spc_id="25284076"/&gt;
                                      &lt;item id="1195" usdate="2014-10-28T21:51:36+02:00" bundle_id="1" state="0" spc_id="25284208"/&gt;
                                      &lt;item id="1284" usdate="2015-02-19T20:45:34+02:00" bundle_id="61" state="0"/&gt;
                                  &lt;/service_options&gt;
                                  &lt;ps_options&gt;
                                      &lt;item id="6" name="PO_FF_ONNET_10IN1"&gt;
                                          &lt;match value="1" vfrom="2015-02-19T20:45:35+02:00"&gt;0769723924&lt;/match&gt;
                                      &lt;/item&gt;
                                  &lt;/ps_options&gt;
                                  &lt;thresholds accountId="2005637" seqno="13"&gt;
                                      &lt;item name="TH_BLC_Points_Allow_Redeem" id="502" class="BAS" new_level="HIGH,LOW" nlid="2,1"/&gt;
                                      &lt;item name="TH_LI_BLP_Main" id="501" class="EXTERNAL" new_level="HIGH,LOW" nlid="2,1"/&gt;
                                      &lt;item name="Threshold_PreCallAnnouncements" id="510" class="EXTERNAL" new_level="HIGH,LOW" nlid="3,2"/&gt;
                                      &lt;item name="THR_BLB_SMS_ONNET" id="509" class="EXTERNAL" new_level="HIGH" nlid="3"/&gt;
                                      &lt;item name="THR_BLB_MMS_ONNET" id="505" class="EXTERNAL" new_level="HIGH" nlid="3"/&gt;
                                      &lt;item name="THR_BLB_GPRS" id="503" class="EXTERNAL" new_level="HIGH,LOW,ZERO" nlid="3,2,1"/&gt;
                                  &lt;/thresholds&gt;
                              &lt;/account_data&gt;
                          &lt;/update&gt;
                      &lt;/request&gt;
                      &lt;request report=""&gt;
                          &lt;update&gt;
                              &lt;account_data id="3615734" parent="3615732" Status="5" instance="1"&gt;
                                  &lt;info&gt;
                                      &lt;additional languageid="ARA" nwop="WMP" status="5" as="PAS/SUSP" dyn="ch=US,gn=,ct=1,enc=true,tp=TP_SHABABE"/&gt;
                                  &lt;/info&gt;
                                  &lt;event_map&gt;
                                      &lt;item id="101" value="ARA"/&gt;
                                      &lt;item id="102" value="WMP"/&gt;
                                  &lt;/event_map&gt;
                                  &lt;map&gt;
                                      &lt;item id="1" name="IMSI" value="425062250251886" vfrom="2014-04-01T14:49:46+02:00"/&gt;
                                      &lt;item id="3" name="TOKEN" value="768681826" vfrom="2014-04-01T14:49:46+02:00"/&gt;
                                      &lt;item id="2" name="MSISDN" value="768681826" vfrom="2014-04-01T14:49:46+02:00"/&gt;
                                  &lt;/map&gt;
                                  &lt;balances&gt;
                                      &lt;item id="39" name="BLC_TP" value="0.0" rollover_cnt="0"/&gt;
                                      &lt;item id="1" name="BLP_Main" value="0.0" rollover_cnt="0"/&gt;
                                      &lt;item id="43" name="BLP_Bonus_Points" value="0.0" rollover_cnt="0"/&gt;
                                      &lt;item id="2" name="BLP_Debt" value="0.0" rollover_cnt="0"/&gt;
                                      &lt;item id="40" name="BLC_Points_Limit" value="0.0" rollover_cnt="0"/&gt;
                                      &lt;item id="3" name="BLP_Bonus" value="0.0" rollover_cnt="0"/&gt;
                                      &lt;item id="50" name="BLP_Bonus_GeoPoll" value="0.0" rollover_cnt="0"/&gt;
                                      &lt;item id="38" name="BLC_Transfered_Points" value="0.0" rollover_cnt="0"/&gt;
                                      &lt;item id="22" name="BLC_Points" value="0.0" rollover_cnt="0"/&gt;
                                      &lt;item id="62" name="BLB_PSR_Flag" value="0.0" rollover_cnt="0"/&gt;
                                      &lt;item id="32" name="BLC_SEC_OFFNET_MTC" value="0.0" rollover_cnt="0"/&gt;
                                      &lt;item id="83" name="BLC_FF_Shababe_CAP_Period" value="0.0" rollover_cnt="0"/&gt;
                                      &lt;item id="53" name="BLP_Act_Gift" value="0.0" rollover_cnt="0"/&gt;
                                  &lt;/balances&gt;
                                  &lt;service_options&gt;
                                      &lt;item id="1" bundle_id="1" state="0" spc_id="28054950"/&gt;
                                      &lt;item id="1292" usdate="2014-04-23T12:49:14+02:00" uedate="2015-02-02T05:33:05+02:00" bundle_id="65" state="0" spc_id="28055113"/&gt;
                                      &lt;item id="1194" usdate="2014-04-01T14:49:46+02:00" uedate="2015-02-02T05:33:05+02:00" bundle_id="1" state="0" spc_id="28055028"/&gt;
                                      &lt;item id="1193" usdate="2014-04-01T14:49:46+02:00" uedate="2015-02-02T05:33:05+02:00" bundle_id="1" state="0" spc_id="28055051"/&gt;
                                      &lt;item id="1179" usdate="2014-04-01T14:49:46+02:00" uedate="2015-02-02T05:33:05+02:00" bundle_id="60" state="0" spc_id="28054905"/&gt;
                                      &lt;item id="1202" usdate="2014-04-01T14:49:46+02:00" uedate="2015-02-02T05:33:05+02:00" bundle_id="1" state="0" spc_id="28055046"/&gt;
                                      &lt;item id="1209" usdate="2014-04-01T14:49:46+02:00" uedate="2015-02-02T05:33:05+02:00" bundle_id="1" state="0" spc_id="28055038"/&gt;
                                      &lt;item id="1200" usdate="2014-04-01T14:49:46+02:00" uedate="2015-02-02T05:33:05+02:00" bundle_id="1" state="0" spc_id="28055004"/&gt;
                                      &lt;item id="1210" usdate="2014-04-23T12:49:14+02:00" uedate="2015-02-02T05:33:05+02:00" bundle_id="65" state="0" spc_id="28055104"/&gt;
                                      &lt;item id="1208" usdate="2014-04-01T14:49:46+02:00" uedate="2015-02-02T05:33:05+02:00" bundle_id="66" state="0" spc_id="28054733"/&gt;
                                      &lt;item id="1190" usdate="2014-04-01T14:49:46+02:00" uedate="2015-02-02T05:33:05+02:00" bundle_id="1" state="0" spc_id="28055075"/&gt;
                                      &lt;item id="1195" usdate="2014-04-01T14:49:46+02:00" uedate="2015-02-02T05:33:05+02:00" bundle_id="1" state="0" spc_id="28055033"/&gt;
                                      &lt;item id="1174" usdate="2014-04-01T14:49:46+02:00" uedate="2015-02-02T05:33:05+02:00" bundle_id="60" state="0" spc_id="28054894"/&gt;
                                      &lt;item id="1197" usdate="2014-04-01T14:49:46+02:00" uedate="2015-02-02T05:33:05+02:00" bundle_id="1" state="0" spc_id="28055068"/&gt;
                                      &lt;item id="1201" usdate="2014-04-01T14:49:46+02:00" uedate="2015-02-02T05:33:05+02:00" bundle_id="1" state="0" spc_id="28055013"/&gt;
                                      &lt;item id="1207" usdate="2014-04-23T12:49:14+02:00" uedate="2015-02-02T05:33:05+02:00" bundle_id="65" state="0" spc_id="28055097"/&gt;
                                      &lt;item id="1168" usdate="2014-11-26T14:40:31+02:00" uedate="2015-02-02T05:33:05+02:00" bundle_id="59" state="0" spc_id="28054856"/&gt;
                                      &lt;item id="1296" usdate="2014-04-23T12:49:14+02:00" uedate="2015-02-02T05:33:05+02:00" bundle_id="65" state="0" spc_id="28055122"/&gt;
                                      &lt;item id="1307" usdate="2014-04-23T12:49:14+02:00" uedate="2015-02-02T05:33:05+02:00" bundle_id="60" state="0" spc_id="28054886"/&gt;
                                      &lt;item id="1198" usdate="2014-04-01T14:49:46+02:00" uedate="2015-02-02T05:33:05+02:00" bundle_id="1" state="0" spc_id="28054991"/&gt;
                                      &lt;item id="1169" usdate="2014-11-04T05:33:04+02:00" uedate="2015-02-02T05:33:05+02:00" bundle_id="59" state="0" spc_id="28054849"/&gt;
                                      &lt;item id="1192" usdate="2014-04-01T14:49:46+02:00" uedate="2015-02-02T05:33:05+02:00" bundle_id="1" state="0" spc_id="28055059"/&gt;
                                  &lt;/service_options&gt;
                                  &lt;ps_options&gt;
                                      &lt;item id="6" name="PO_FF_ONNET_10IN1"&gt;
                                          &lt;match value="1"&gt;0769723924&lt;/match&gt;
                                      &lt;/item&gt;
                                  &lt;/ps_options&gt;
                                  &lt;thresholds accountId="3615734" seqno="2"&gt;
                                      &lt;item name="TH_LI_BLP_Main" id="501" class="EXTERNAL" new_level="HIGH,LOW" nlid="2,1"/&gt;
                                      &lt;item name="Threshold_PreCallAnnouncements" id="510" class="EXTERNAL" new_level="HIGH,LOW" nlid="3,2"/&gt;
                                      &lt;item name="TH_BLC_Points_Allow_Redeem" id="502" class="BAS" new_level="HIGH,LOW" nlid="2,1"/&gt;
                                  &lt;/thresholds&gt;
                              &lt;/account_data&gt;
                          &lt;/update&gt;
                      &lt;/request&gt;
                  &lt;/request_set&gt;
              &lt;/input&gt;
              &lt;output&gt;
                  &lt;response_set code="0"&gt;
                      &lt;transaction id="B0GQ95PH07QR"/&gt;
                      &lt;text&gt;Ok&lt;/text&gt;
                      &lt;response code="0"&gt;
                          &lt;text&gt;Ok&lt;/text&gt;
                          &lt;update&gt;
                              &lt;account_data id="2005637" parent="3615732" Status="2"&gt;
                                  &lt;thresholds seqno="12"/&gt;
                                  &lt;map&gt;
                                      &lt;item id="1" value="425062260312424"/&gt;
                                      &lt;item id="2" value="769874479"/&gt;
                                  &lt;/map&gt;
                              &lt;/account_data&gt;
                          &lt;/update&gt;
                      &lt;/response&gt;
                      &lt;response code="0"&gt;
                          &lt;text&gt;Ok&lt;/text&gt;
                          &lt;update&gt;
                              &lt;account_data id="3615734" parent="3615732" Status="5"&gt;
                                  &lt;thresholds seqno="1"/&gt;
                                  &lt;map&gt;
                                      &lt;item id="1" value="425062250251886"/&gt;
                                      &lt;item id="2" value="768681826"/&gt;
                                  &lt;/map&gt;
                              &lt;/account_data&gt;
                          &lt;/update&gt;
                      &lt;/response&gt;
                  &lt;/response_set&gt;
              &lt;/output&gt;
          &lt;/admin&gt;
      &lt;/data&gt;
  &lt;/notification&gt;
  </code></pre>
  
  <p>The current XSLT applied to this input file will catch for following:</p>
  
  <pre><code>&lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"&gt;
          &lt;xsl:output method="xml" encoding="UTF-8" omit-xml-declaration="yes" indent="no"/&gt;
          &lt;xsl:template match="/"&gt;
                  &lt;xsl:variable name="UID"&gt;
                          &lt;xsl:value-of select="ND-OFM-04"/&gt;
                  &lt;/xsl:variable&gt;
  
                  &lt;xsl:variable name="LANG"&gt;
                          &lt;xsl:value-of select="/notification/data/admin/input/request_set/request/update/account_data/info/additional/@languageid"/&gt;
                  &lt;/xsl:variable&gt;
  
                  &lt;xsl:variable name="IMSI"&gt;
                          &lt;xsl:value-of select="/notification/data/admin/input/request_set/request/update/account_data/map/item[@id = 1 and not(@vto)]/@value"/&gt;
                  &lt;/xsl:variable&gt;
  
                  &lt;xsl:variable name="MSISDN"&gt;
                          &lt;xsl:value-of select="/notification/data/admin/input/request_set/request/update/account_data/map/item[@id = 2 and not(@vto)]/@value"/&gt;
                  &lt;/xsl:variable&gt;
  
                  &lt;xsl:variable name="NOTIFID"&gt;
                          &lt;xsl:value-of select="/notification/transaction/@id"/&gt;
                  &lt;/xsl:variable&gt;
  
                  &lt;xsl:variable name="ACID"&gt;
                          &lt;xsl:value-of select="/notification/data/admin/input/request_set/request/update/account_data[@Status='5']/@id"/&gt;
                  &lt;/xsl:variable&gt;
  
                  &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:gol="http://www.example.org/ws/GOldEventTransaction"&gt;
                          &lt;soapenv:Header/&gt;
                          &lt;soapenv:Body&gt;
                                  &lt;gol:GoldEventTransactionMessageInput&gt;
                                          &lt;gol:MessageHeader&gt;
                                                  &lt;gol:NotificationID&gt;GOLD&lt;xsl:value-of select="concat($NOTIFID, 'DEACT')"/&gt;
                                                  &lt;/gol:NotificationID&gt;
  
                                                  &lt;gol:GoldNodeType/&gt;
                                                  &lt;gol:NotificationType&gt;DEACTIVATION&lt;/gol:NotificationType&gt;
                                          &lt;/gol:MessageHeader&gt;
                                          &lt;gol:MessageBody&gt;
                                                  &lt;gol:SubscriberInformation&gt;
                                                          &lt;gol:SubscriberID&gt;
                                                                  &lt;xsl:value-of select="$ACID"/&gt;
                                                          &lt;/gol:SubscriberID&gt;
                                                          &lt;gol:SubscriberMSISDN&gt;
                                                                  &lt;xsl:value-of select="$MSISDN"/&gt;
                                                          &lt;/gol:SubscriberMSISDN&gt;
                                                          &lt;gol:SubscriberIMSI&gt;
                                                                  &lt;xsl:value-of select="$IMSI"/&gt;
                                                          &lt;/gol:SubscriberIMSI&gt;
                                                          &lt;gol:SubscriberLangID&gt;
                                                                  &lt;xsl:value-of select="$LANG"/&gt;
                                                          &lt;/gol:SubscriberLangID&gt;
                                                  &lt;/gol:SubscriberInformation&gt;
                                                  &lt;gol:StateInformation&gt;
                                                          &lt;gol:FState&gt;ACT/STD&lt;/gol:FState&gt;
                                                          &lt;gol:TState&gt;PAS/SUSP&lt;/gol:TState&gt;
                                                  &lt;/gol:StateInformation&gt;
                                          &lt;/gol:MessageBody&gt;
                                  &lt;/gol:GoldEventTransactionMessageInput&gt;
                          &lt;/soapenv:Body&gt;
                  &lt;/soapenv:Envelope&gt;
          &lt;/xsl:template&gt;
          &lt;xsl:template name="strip_comma"&gt;
                  &lt;xsl:param name="level"/&gt;
                  &lt;xsl:choose&gt;
                          &lt;xsl:when test="contains($level, ',')"&gt;
                                  &lt;xsl:call-template name="strip_comma"&gt;
                                          &lt;xsl:with-param name="level"&gt;
                                                  &lt;xsl:value-of select="substring-after($level,',')"/&gt;
                                          &lt;/xsl:with-param&gt;
                                  &lt;/xsl:call-template&gt;
                          &lt;/xsl:when&gt;
                          &lt;xsl:otherwise&gt;
                                  &lt;xsl:value-of select="$level"/&gt;
                          &lt;/xsl:otherwise&gt;
                  &lt;/xsl:choose&gt;
          &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>XSLT will filter will display only the first request output while the second will not be displayed. 
  Current Output is </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:gol="http://www.example.org/ws/GOldEventTransaction"&gt;&lt;soapenv:Header/&gt;&lt;soapenv:Body&gt;&lt;gol:GoldEventTransactionMessageInput&gt;&lt;gol:MessageHeader&gt;&lt;gol:NotificationID&gt;GOLDB0GQ95PH07QRDEACT&lt;/gol:NotificationID&gt;&lt;gol:GoldNodeType/&gt;&lt;gol:NotificationType&gt;DEACTIVATION&lt;/gol:NotificationType&gt;&lt;/gol:MessageHeader&gt;&lt;gol:MessageBody&gt;&lt;gol:SubscriberInformation&gt;&lt;gol:SubscriberID&gt;2005637&lt;/gol:SubscriberID&gt;&lt;gol:SubscriberMSISDN&gt;1234567&lt;/gol:SubscriberMSISDN&gt;&lt;gol:SubscriberIMSI&gt;425062260312424&lt;/gol:SubscriberIMSI&gt;&lt;gol:SubscriberLangID&gt;ARA&lt;/gol:SubscriberLangID&gt;&lt;/gol:SubscriberInformation&gt;&lt;gol:StateInformation&gt;&lt;gol:FState&gt;ACT/STD&lt;/gol:FState&gt;&lt;gol:TState&gt;PAS/SUSP&lt;/gol:TState&gt;&lt;/gol:StateInformation&gt;&lt;/gol:MessageBody&gt;&lt;/gol:GoldEventTransactionMessageInput&gt;&lt;/soapenv:Body&gt;&lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>while what I want to achieve is:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:gol="http://www.example.org/ws/GOldEventTransaction"&gt;&lt;soapenv:Header/&gt;&lt;soapenv:Body&gt;&lt;gol:GoldEventTransactionMessageInput&gt;&lt;gol:MessageHeader&gt;&lt;gol:NotificationID&gt;GOLDB0GQ95PH07QRDEACT&lt;/gol:NotificationID&gt;&lt;gol:GoldNodeType/&gt;&lt;gol:NotificationType&gt;DEACTIVATION&lt;/gol:NotificationType&gt;&lt;/gol:MessageHeader&gt;&lt;gol:MessageBody&gt;&lt;gol:SubscriberInformation&gt;&lt;gol:SubscriberID&gt;2005637&lt;/gol:SubscriberID&gt;&lt;gol:SubscriberMSISDN&gt;1234567&lt;/gol:SubscriberMSISDN&gt;&lt;gol:SubscriberIMSI&gt;425062260312424&lt;/gol:SubscriberIMSI&gt;&lt;gol:SubscriberLangID&gt;ARA&lt;/gol:SubscriberLangID&gt;&lt;/gol:SubscriberInformation&gt;&lt;gol:StateInformation&gt;&lt;gol:FState&gt;ACT/STD&lt;/gol:FState&gt;&lt;gol:TState&gt;PAS/SUSP&lt;/gol:TState&gt;&lt;/gol:StateInformation&gt;&lt;/gol:MessageBody&gt;&lt;/gol:GoldEventTransactionMessageInput&gt;&lt;/soapenv:Body&gt;&lt;/soapenv:Envelope&gt;
  
  
  
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:gol="http://www.example.org/ws/GOldEventTransaction"&gt;&lt;soapenv:Header/&gt;&lt;soapenv:Body&gt;&lt;gol:GoldEventTransactionMessageInput&gt;&lt;gol:MessageHeader&gt;&lt;gol:NotificationID&gt;GOLDB0GQ95PH07QRDEACT&lt;/gol:NotificationID&gt;&lt;gol:GoldNodeType/&gt;&lt;gol:NotificationType&gt;DEACTIVATION&lt;/gol:NotificationType&gt;&lt;/gol:MessageHeader&gt;&lt;gol:MessageBody&gt;&lt;gol:SubscriberInformation&gt;&lt;gol:SubscriberID&gt;3615734&lt;/gol:SubscriberID&gt;&lt;gol:SubscriberMSISDN&gt;768681826&lt;/gol:SubscriberMSISDN&gt;&lt;gol:SubscriberIMSI&gt;425062250251886&lt;/gol:SubscriberIMSI&gt;&lt;gol:SubscriberLangID&gt;ARA&lt;/gol:SubscriberLangID&gt;&lt;/gol:SubscriberInformation&gt;&lt;gol:StateInformation&gt;&lt;gol:FState&gt;ACT/STD&lt;/gol:FState&gt;&lt;gol:TState&gt;PAS/SUSP&lt;/gol:TState&gt;&lt;/gol:StateInformation&gt;&lt;/gol:MessageBody&gt;&lt;/gol:GoldEventTransactionMessageInput&gt;&lt;/soapenv:Body&gt;&lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>That is to cycle every single request and applying the same check is doing it now</p>
  
  <p>Please help !!!</p>