Made constant name an attribute in XML writer
Added an XML elements-only output syntax
Removed unnecessary attribute from Writer class, replaced with try/except