How to combine two XML files into one XML file using MATLAB?
1 view (last 30 days)
Show older comments
XML 1:
<? xml version = "1.0" encoding = "utf-8" ?>
<AllNodes>
<NodeA>
<NodeB> test1 </NodeB>
<NodeB> test2 </NodeB>
</NodeA>
</AllNodes>
XML 2:
<? xml version = "1.0" encoding = "utf-8" ?>
<AllNodes>
<NodeA>
<NodeB> test6 </NodeB>
<NodeB> test7 </NodeB>
</NodeA>
<NodeA>
<NodeB> test99 </NodeB>
<NodeB> test23 </NodeB>
</NodeA>
</AllNodes>
Output expected:
<? xml version = "1.0" encoding = "utf-8" ?>
<AllNodes>
<NodeA>
<NodeB> test1 </NodeB>
<NodeB> test2 </NodeB>
</NodeA>
<NodeA>
<NodeB> test6 </NodeB>
<NodeB> test7 </NodeB>
</NodeA>
<NodeA>
<NodeB> test99 </NodeB>
<NodeB> test23 </NodeB>
</NodeA>
</AllNodes>
0 Comments
Answers (0)
See Also
Categories
Find more on Database Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!