Added hack fix for namespaced attributes. Fixed close tags with namespaces.