Added an EDEF writer and support for XML namespaces