trivial perl API for reading/writing XML
