Associates XML DOM nodes to their position in source, to enrich error messages.
This builds on top of the standard org.w3c.dom API. Should probably not be used
in performance critical code, but can hopefully cleanup reporting logic in places
where user-friendly messages are important.
