After some aborted attempts at writing a tile editor, a friend pointed me to a really obvious solution. Use Inkscape as an editor! It outputs to SVG, which is an XML-based format ripe for interoperability. So after being stymied for a while, I've suddenly got a good amount of a tile file converter written. Huh.