Victor Charles
asked on
Help with consolidating all xml files in a Folder using vb.net
Hi,
Ho do I consolidate multiple xml files in a folder to one xml file. For example if I have a "Forms" folder in my application's folder containing the following files:
M11File.xml
<Root>
<Table>
<ID>1</ID>
<ItemA>DataA<ItemA>
<ItemB>DataA<ItemB>
<ItemC>DataA<ItemC>
</Table>
</Root>
M33File.xml
<Root>
<Table>
<ID>1</ID>
<ItemA>DataA1<ItemA>
<ItemB>DataA1<ItemB>
<ItemC>DataA1<ItemC>
</Table>
</Root>
How do I obtain the file below?
MergeFile:
<Root>
<Table>
<ID>1</ID>
<ItemA>DataA<ItemA>
<ItemB>DataA<ItemB>
<ItemC>DataA<ItemC>
<Table>
<ID>1</ID>
<ItemA>DataA1<ItemA>
<ItemB>DataA1<ItemB>
<ItemC>DataA1<ItemC>
</Table>
</Root>
Thanks,
Victor
Ho do I consolidate multiple xml files in a folder to one xml file. For example if I have a "Forms" folder in my application's folder containing the following files:
M11File.xml
<Root>
<Table>
<ID>1</ID>
<ItemA>DataA<ItemA>
<ItemB>DataA<ItemB>
<ItemC>DataA<ItemC>
</Table>
</Root>
M33File.xml
<Root>
<Table>
<ID>1</ID>
<ItemA>DataA1<ItemA>
<ItemB>DataA1<ItemB>
<ItemC>DataA1<ItemC>
</Table>
</Root>
How do I obtain the file below?
MergeFile:
<Root>
<Table>
<ID>1</ID>
<ItemA>DataA<ItemA>
<ItemB>DataA<ItemB>
<ItemC>DataA<ItemC>
<Table>
<ID>1</ID>
<ItemA>DataA1<ItemA>
<ItemB>DataA1<ItemB>
<ItemC>DataA1<ItemC>
</Table>
</Root>
Thanks,
Victor
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank You
btw, it should imho be
Open in new window
Otherwise it's:
Open in new window