Updates the Parser so that it now supports the XML namespaces

Also ensures that the encoding of attributes is XML, rather than HTML