solutions to well-formed XML exercises