xsl-list
[Top] [All Lists]

[xsl] Add namespaces to a soap xml output

2006-09-22 03:33:13
Hi to all
I'm new, and i have  a problem:
I need to add one namespaces to all node and remove all tag that not contains any data from a soap envolpe request :
this is my input xml:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <soapenv:Body>
<RICHIESTA_INFORMAZIONI_ASSISTITO DataOra="200603072355" idCup="150103" idOperatore="df" xmlns="some.url">
        <ASSISTITO>
           <Citta/>
           <CodFiscale>CRDLCN73L04F839J</CodFiscale>
           <CodPostale/>
           <CodSanitario/>
           <Cognome/>
           <DataNascita/>
           <Domicilio/>
           <Email/>
           <Indirizzo/>
           <Nome/>
           <Provincia/>
           <Sesso></Sesso>
           <Stato/>
           <Telefono/>
           <e-mail/>
           <idImpegnativa/>
           <Urgenza/>
        </ASSISTITO>
     </RICHIESTA_INFORMAZIONI_ASSISTITO>
  </soapenv:Body>
</soapenv:Envelope>

and this is the output that i want:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <soapenv:Body>
<cup:RICHIESTA_INFORMAZIONI_ASSISTITO DataOra="10102005" idCUP="1" idOperatore="DAVIDE" xmlns="some.url" xmlns:cup="some.url">
        <cup:ASSISTITO>
           <cup:CodFiscale>TRNCMN78S24F839Y</cup:CodFiscale>
</cup:ASSISTITO>
     </cup:RICHIESTA_INFORMAZIONI_ASSISTITO>
  </soapenv:Body>
</soapenv:Envelope>

How for do this?
Many Thanks.


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>