add xmlns attribute for xhtml output with test
cleanup html header and optimize

- remove http-equiv="Content-Type" meta tag
- add meta hint for IE to use latest rendering engine
- add charset meta element
- optimize xmldoc_from_string test helper method
change variable names used for void element slash