added convenience classes for writing XML