That's how you do it. I don't see any code where you test the number of children in the source node, so perhaps you are mistaken about the number of children it has.
Yup, but the documentNew.getChildNodes().item(0) returns null. I will double check it anyways. BTW user data(Node value) are not imported to new document ? because the main requirement i go with this approach is to get the Node value.Thanks Paul.