Code to efficiently read/write XML data with Elisp