myコード(xmlFileName[0]、xmlFileName[1]のitem要素以下を、ルートのAuctionCategoryLeaf以下に追加している。) DocumentBuilder DB = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Document d1 = DB.parse(xmlFileName[0]); Document d2 = DB.parse(xmlFileName[1]); NodeList nodeList=d2.getElementsByTagName("item"); Node CategoryNode=d1.getElementsByTagName("AuctionCategoryLeaf").item(0); for (int i=0;i<nodeList.getLength();i++) { Node addNode = d1.importNode(nodeList.item(i),true); CategoryNode.appendChild(addNode); }