Deal with etree not being able to parse the document better

Right now a nasty `SyntaxError` is raised. Instead make a custom exception and raise that guy instead.