converting the tree module too created a simpler internal error reporting

* tree.c: converting the tree module too
* error.c include/libxml/xmlerror.h: created a simpler internal
  error reporting function.
Daniel
4 files changed