Reading this, and remember the discussion about an xml protocol resolver Joe was talking about a while back, it struck me that this was actually the kind of thing I could see being well-suited to erlang.