Added active support to enable .to_xml output.