How to combine two XML files into one XML file using MATLAB?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Database Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!