[Home] [By Thread] [By Date] [Recent Entries]
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.
|

Cart



