<Description>116423<ul><li>Creation Story</li></ul></Description>
<Description>116423<ul><li>Promise</li></ul></Description>
<Description>116423<ul><li>My House Is the Red Earth</li></ul></Description> <Description>116423<ul><li>Letter From the End of the Twentieth Century</li></ul></Description>
<Description>116423<ul><li>Fear Poem </li></ul></Description>
<Description>116423<ul><li>The Real Revolution is Love</li></ul></Description><Description>116423<ul><li>For Anna Mae Pictou Aquash</li></ul></Description><Description>116423<ul><li>She Had Some Horses </li></ul></Description><Description>116423<ul><li>The Myth of Blackbirds</li></ul></Description>
<Description>116423<ul><li>A Postcolonial Tale </li></ul></Description>
这是我的 XML,您可以看到描述节点包含与其他节点相同的 ID,但 li 标记包含所有不同的值。现在我想将所有 li 节点合并到一个描述和 ul 节点中,如下所示:
<description>
<ul>
<li>Creation Story</li>
<li>Promise</li>
<li>My House Is the Red Earth</li>
<li>Letter From the End of the Twentieth Century</li>
<li>Fear Poem</li>
<li>The Real Revolution is Love </li>
<li>For Anna Mae Pictou Aquash </li>
<li>She Had Some Horses </li>
<li>The Myth of Blackbirds </li>
<li>A Postcolonial Tale </li>
</ul>
</description>