added delete_namespace_attributes flag to remove namespace attributes such as xmlsn:* or xsi:*