I'm wanting to move all sub nodes up to it's parent node and at the same time change the node name to include a prefix
i.e. report/contact/phone should become /report/contact_phone

I tried
    Application.StatusBar = "add contact info into root"
    For Each Level2 In Level1.ChildNodes
        Set Level3 = Level2.SelectNodes("//public_contact")
        For Each aNode In Level3
            'aNode.nodeName = "contact_" & aNode.nodeName
            Level2.appendChild (aNode)
but the commented line fails with "can't set read only attribute. Any suggestions