Add perl support for xml