xsl-list
[Top] [All Lists]

[xsl] Merge 2 xmls : Loop through one xml and get elements from second xml

2020-09-01 06:14:10
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.
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--
<Prev in Thread] Current Thread [Next in Thread>