How to combine two XML files into one XML file using MATLAB?

1 回表示 (過去 30 日間)
Swaroop Ainapurapu
Swaroop Ainapurapu 2020 年 3 月 25 日
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 件)

カテゴリ

Help Center および File ExchangeDatabase Toolbox についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by