Saving the whole namespace and chacking bad charater for element name