0

2 つの XML ファイルをマージしようとしています。

最初の XML:

<data>
  <text>
    <description>this is my description</description>
    <title>this is my title</title>
  </text>
  <text>
    <description>this <other>is my other description</other></description>
    <title>this is my title</title>
  </text>
</data>

2 番目の XML:

<data>
  <text>
    <description>this is my <tag>description</tag></description>
  </text>
  <text>
    <description>this is <tag>my other description</tag></description>
  </text>
</data>

OUTPUTが欲しかった:

<data>
  <text>
    <description>this is my <tag>description</tag></description>
    <title>this is my title</title>
  </text>
  <text>
    <description>this <other>is <tag>my other description</tag></other></description>
    <title>this is my title</title>
  </text>
</data>

私はここで与えられた XSLT を使用し、適応させました: how to compare and merge two xml using xslt

しかし、OTHER と TAG を一緒に DESCRIPTION に追加することはできません。

前もって感謝します。

4

0 に答える 0