Excel VBA 質問スレ Part45 [無断転載禁止]©5ch.io
■ このスレッドは過去ログ倉庫に格納されています
0222デフォルトの名無しさん
2017/01/19(木) 00:09:17.23ID:wXKnExNuこゆう事かな?(同じパラメータは 最後のに置き換えられるよ)
下をそっくり入れ替えて
'同じ名前の子ノードを 最初の一つに集約
For Each Node1 In Node.ChildNodes
Do
Set NodeList = Node1.ParentNode.SelectNodes(Node1.nodeName)
If NodeList.Length = 1 Then Exit Do
For Each Node2 In NodeList(1).ChildNodes
NodeList(0).appendChild Node2
Next
'パラメータコピー
For Each NodeAttr In NodeList(1).Attributes
NodeList(0).Attributes.setNamedItem NodeAttr.CloneNode(True)
Next
Node1.ParentNode.RemoveChild NodeList(1)
Loop
Next
■ このスレッドは過去ログ倉庫に格納されています