Work done on the plane, ready to release libxml2-2.0.0, Daniel
diff --git a/include/libxml/debugXML.h b/include/libxml/debugXML.h
index 5d4d2ae..3138469 100644
--- a/include/libxml/debugXML.h
+++ b/include/libxml/debugXML.h
@@ -8,8 +8,11 @@
 #ifndef __DEBUG_XML__
 #define __DEBUG_XML__
 #include <stdio.h>
-#include "tree.h"
-#include "xpath.h"
+#include <libxml/tree.h>
+
+#ifdef LIBXML_DEBUG_ENABLED
+
+#include <libxml/xpath.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -103,4 +106,6 @@
 #ifdef __cplusplus
 }
 #endif
+
+#endif /* LIBXML_DEBUG_ENABLED */
 #endif /* __DEBUG_XML__ */