how to combine two xml files?
Hi,
i want to append File2 to the File1, could someone please help me to combine these two files? File1: Code:
<dataset> File2: Code:
<dataset> |
Problem Restatement:
Let me first clarify what I have understood. You have files with structure as follows: <dataset> <metadata> .........somemetadata... </metadata> <data> <row> ..........some1.... </row> <row> ............some2...... </row> . . . </data> </dataset> Now you want to join these two data like <dataset> <metadata> .........common metadata ... </metadata> <data> <row> ..........some1 from file1.... </row> <row> ............some2 from file1...... </row> <row> ...........some1 from file2..... </row> <row> ...........some2 from file2.... </row> . . </data> </dataset> Now if I am correct, then put these commands as written in a file, Code:
cat > file << EOF in same directory as your file1, and file2, then run Code:
bash abc |
This is really very good. Thanks a lot friend :-)
|
All times are GMT -5. The time now is 06:06 AM. |