Closes #1 added element/attribute writers, closes #2 ability to specify xml namespaces.