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

Merge 2 xmls : Loop through one xml and get elements f

Subject: Merge 2 xmls : Loop through one xml and get elements from second xml
From: "Prady Prady prady.chin@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 1 Sep 2020 11:14:05 -0000
 Merge 2 xmls : Loop through one xml and get elements f
Hello all,

I have this requirement...

=================
Merge 2 xmls : Loop through one xml and get elements from second xml

I have 2 xmls(Orders_Part1.xml,Orders_Part2.xml). I have to build the 3rd
xml ( Orders.xml) .

Orders_Part1.xml:
Contains order_number element and first part of order details

<orders>
<order>
<order_number>11</order_number>
* <product_id>prod1</product_id>*
<order>
<orders>

Orders_Part2.xml:
Contains order_number, amount and second part of order details:

<orders>
<order>
<order_number>11</order_number>
* <amount>100</amount>*
<order>
<orders>

I have to build the 3rd xml. I have to loop through Orders_Part1.xml to
build orders.xml and get the amount from Orders_Part2.xml.

Final Result should be: Orders.xml:
<orders>
<order>
<order_number>11</order_number>
*<product>prod1</product>  *
* <amt>100</amt>*
<order>
<orders>
  =================


Thank you very much for your help.

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.