[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Transform plane structure with composite tags into

Subject: Re: Transform plane structure with composite tags into nested structure with decomposed tags
From: "Sam Mesh" <Sam.Mesh@xxxxxxxxx>
Date: Mon, 29 Oct 2007 17:39:37 -0700
 Re: Transform plane structure with composite tags into
Hello ALL,

I need to transform XML from form_1 into form_2.
Hopefully, this is well known FAQ.

form_1.
Plane/flat (not nested) structure with composite/compound/structured tags
Like <struct1.param12.param123> below.

<soap:Envelope
  xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/ ">
  <soap:Header>
  </soap:Header>
  <soap:Body>
     <request>
       <struct1.param11>...</struct1.param11>
       <struct2.param21>...</struct2.param21>
       <struct1.param12.param123>...</struct1.param12.param123>
     </request>
   </soap:Body>
 </soap:Envelope>


form_2.
Nested/hierarchical structure with simple/decomposed tags
Like <struct1>...<param11>...<param12> below.

<soap:Envelope
  xmlns:soap=" http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Header>
   </soap:Header>
   <soap:Body>
     <request>
       <struct1>
         <param11>...</param11>
         <param12>
           <param123>...</param123>
         </param12>
       </struct1>
       <struct2>
         <param21>...</param21>
       </struct2>
     </request>
   </soap:Body>

--
Sincerely,
Sam Mesh

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.