Added a function to register names spaces in the simeple XML objects.