rewriting to xmerl
rewriting to xmerl
made first test passing
refactoring
now actually passing the first test