How to combine two XML files into one XML file using MATLAB?
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Testing Frameworks finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!