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
Code:
    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)
        Next
    Next
but the commented line fails with "can't set read only attribute. Any suggestions