The scala.xml library has some very annoying issues.  Time for a clean-room replacement!