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

Add data from various nodes and files

Subject: Add data from various nodes and files
From: Alvin Ng <ngkwangming@xxxxxxxxx>
Date: Mon, 18 Jul 2005 18:46:25 +0800
add data to xml file
Hi All,

I was trying to add data from various nodes from various files, but
failed. So i was wondering whether anyone has any idea/method to do
this. Below is an example of what i am doing

In this example, my input files are File1 and File2 and my output
result is File3
- add 1 from File1/AAA to 2 from File2/AAA to output File3
- add 2 from File1/AAA to 3 from File2/AAA to output File3
- add 2 from File1/BBB to 0 from File2/BBB to output File3
- add 3 from File1/BBB to 0 from File2/BBB to output File3

Each file in File1 and File2 have few hundreds nodes of <moid></moid>
Any help is greatly appreciated. Thanks

File 1:
<xml>
<moid> AAA </moid>
    <mt> 1 </mt>
    <mt> 2 </mt>
<moid> BBB </moid>
    <mt> 2 </mt>
    <mt> 3 </mt>
</xml>

File 2:
<xml>
<moid> AAA </moid>
    <mt> 2 </mt>
    <mt> 3 </mt>
<moid> BBB </moid>
    <mt> 0 </mt>
    <mt> 0 </mt>
</xml>

File 3:
<xml>
<moid> AAA </moid>
    <mt> 3 </mt>
    <mt> 5 </mt>
<moid> BBB </moid>
    <mt> 2 </mt>
    <mt> 3 </mt>
</xml>

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.