다른 file2.xml에 file1.xml 요소를 삽입해야합니다. file2.xml에는 여러 개의 노드가 있고 각 노드에는 node_id가 있습니다. 그것을 할 수있는 방법이 있습니까?XML : xml 문서를 다른 문서의 노드에 추가하기
하자가 가정 :
는file1.xml :
는 < root>
<node_1>......</node_1>
</root>
file2.xml :
< root>
< node>
< node_id>1'<'/node_id>
< /node>
< /root>
내가 원하는? file2.xml :
< root>
< node>
<node_1>......</node_1> [here i want to append the file1.xml]
</node>
</root>
오, 위대한 :) 나는 너에게 너무 감사한다. 이것은 내가 정확히 무엇을 찾고 있었는지입니다. – Bibhaw
그러나 문서 importDocument 메서드가없는 것 같습니다 ... – tObi