Added support for xml representations

closes #21