- From: Amila Liyanaarachchi <amila.liyanaarachchi@ifs.lk>
- Date: Tue, 5 Aug 2008 17:09:00 +0530
- To: "www-xpath-comments@w3.org" <www-xpath-comments@w3.org>
- Message-ID: <88CCC2A657757A4EBDB4B19CAD978E5927582F2220@CMBEXMBX1.corpnet.ifsworld.com>
Hi, I need to perform the following transformation, any help will be appreciated, -------- 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> <ns1:driveTimeDisResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://routing.soap.geosolutions.be"> <driveTimeDisReturn href="#id0"/> </ns1:driveTimeDisResponse> <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:SoapReturnDriveTime" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://beans.soap.geosolutions.be"> <errorCode xsi:type="soapenc:string"/> <errorMessage xsi:type="soapenc:string"/> <routesInfo soapenc:arrayType="ns2:GenRouteInfo[1]" xsi:type="soapenc:Array"> <routesInfo href="#id1"/> </routesInfo> <token xsi:type="soapenc:string">XXX</token> </multiRef> <multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:GenRouteInfo" xmlns:ns3="http://beans.soap.geosolutions.be" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <distance href="#id2"/> <time href="#id3"/> </multiRef> <multiRef id="id2" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:long" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">73770</multiRef> <multiRef id="id3" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:long" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">2884</multiRef> </soapenv:Body> </soapenv:Envelope> ------------------------------------- --- expected output ---- <AAA> <distance>73770</distance> <time>2884</time> </AAA> --------------------------------- ------------------------------------------------------------------------------ CONFIDENTIALITY AND DISCLAIMER NOTICE This e-mail, including any attachments, is confidential and intended only for the addressee. If you are not the intended recipient, please notify us immediately and delete this e-mail from your system. Any use or disclosure of the information contained herein is strictly prohibited.
Received on Wednesday, 6 August 2008 09:46:50 UTC