well it was more easy then I thought

Code:
Get DocumentElement of hoXML to hoRoot
            If not hoRoot Begin
                Get CreateDocumentElementNS of hoXML (snamespace1 * snamespace2 * snamespace3) "r:Invoice"  to hoRoot
           
               Send AddAttributeNS of hoRoot snamespace1  "version" "1.0"
......

regards
Franco Spinella