applied patch from Mark Vakoc except the API change, preserved it. updated

* debugXML.c: applied patch from Mark Vakoc except the API
  change, preserved it.
* doc/*: updated the docs to point to the search engine for
  information lookup or before bug/help reports.
Daniel
diff --git a/doc/bugs.html b/doc/bugs.html
index 4dd8db1..93ba2d1 100644
--- a/doc/bugs.html
+++ b/doc/bugs.html
@@ -106,7 +106,8 @@
 <p>Check the following <strong><span style="color: #FF0000">before
 posting</span></strong>:</p>
 <ul>
-<li>Read the <a href="FAQ.html">FAQ</a>.</li>
+<li>Read the <a href="FAQ.html">FAQ</a> and <a href="search.php">use the
+    search engine</a> to get informations related to your problem.</li>
   <li>Make sure you are <a href="ftp://xmlsoft.org/">using a recent
     version</a>, and that the problem still shows up in a recent version.</li>
   <li>Check the <a href="http://mail.gnome.org/archives/xml/">list
diff --git a/doc/docs.html b/doc/docs.html
index 86ad34b..18844d5 100644
--- a/doc/docs.html
+++ b/doc/docs.html
@@ -95,7 +95,9 @@
 <td valign="top" bgcolor="#8b7765"><table border="0" cellspacing="0" cellpadding="1" width="100%"><tr><td><table border="0" cellspacing="0" cellpadding="1" width="100%" bgcolor="#000000"><tr><td><table border="0" cellpadding="3" cellspacing="1" width="100%"><tr><td bgcolor="#fffacd">
 <p>There are several on-line resources related to using libxml:</p>
 <ol>
-<li>Check the <a href="FAQ.html">FAQ.</a>
+<li>Use the <a href="search.php">search engine</a> to lookup
+  informations.</li>
+  <li>Check the <a href="FAQ.html">FAQ.</a>
 </li>
   <li>Check the <a href="http://xmlsoft.org/html/libxml-lib.html">extensive
     documentation</a> automatically extracted from code comments (using <a href="http://cvs.gnome.org/bonsai/rview.cgi?cvsroot=/cvs/gnome&amp;dir=gtk-doc">gtk
diff --git a/doc/downloads.html b/doc/downloads.html
index c4def4a..45b9841 100644
--- a/doc/downloads.html
+++ b/doc/downloads.html
@@ -96,7 +96,7 @@
 <p>The latest versions of libxml can be found on <a href="ftp://xmlsoft.org/">xmlsoft.org</a> (<a href="ftp://speakeasy.rpmfind.net/pub/libxml/">Seattle</a>, <a href="ftp://fr.rpmfind.net/pub/libxml/">France</a>) or on the <a href="ftp://ftp.gnome.org/pub/GNOME/MIRRORS.html">Gnome FTP server</a> either
 as a <a href="ftp://ftp.gnome.org/pub/GNOME/sources/libxml2/2.4/">source
 archive</a>
-, Antonin Sprinzl also provide <a href="ftp://gd.tuwien.ac.at/pub/libxml/">a
+ , Antonin Sprinzl also provide <a href="ftp://gd.tuwien.ac.at/pub/libxml/">a
 mirror in Austria</a>. (NOTE that you need both the <a href="http://rpmfind.net/linux/RPM/libxml2.html">libxml(2)</a> and <a href="http://rpmfind.net/linux/RPM/libxml2-devel.html">libxml(2)-devel</a>
 packages installed to compile applications using libxml.) <a href="mailto:igor@stud.fh-frankfurt.de">Igor  Zlatkovic</a> is now the
 maintainer of the Windows port, <a href="http://www.fh-frankfurt.de/~igor/projects/libxml/index.html">he
diff --git a/doc/index.py b/doc/index.py
index 128d11a..600871b 100755
--- a/doc/index.py
+++ b/doc/index.py
@@ -152,6 +152,17 @@
         if not tables.has_key(table):
 	    print "table %s missing" % (table)
 	    createTable(db, table)
+	try:
+	    ret = c.execute("SELECT count(*) from %s" % table);
+	    row = c.fetchone()
+	    print "Table %s contains %d records" % (table, row[0])
+	except:
+	    print "Troubles with table %s : repairing" % (table)
+	    ret = c.execute("repair table %s" % table);
+	    print "repairing returned %d" % (ret)
+	    ret = c.execute("SELECT count(*) from %s" % table);
+	    row = c.fetchone()
+	    print "Table %s contains %d records" % (table, row[0])
     print "checkTables finished"
 
     # make sure apache can access the tables read-only
@@ -1118,7 +1129,7 @@
 
     print "Found %d associations in HTML pages" % (i)
 
-def analyzeHTML():
+def analyzeHTMLTop():
     global wordsDictHTML
 
     ret = analyzeHTMLPages()
@@ -1138,8 +1149,9 @@
 
     print "Found %d associations in HTML pages" % (i)
 
-def analyzeAPI():
+def analyzeAPITop():
     global wordsDict
+    global API
 
     try:
 	doc = loadAPI(API)
@@ -1205,9 +1217,9 @@
 		    print "Failed to index month archive:"
 		    print sys.exc_type, sys.exc_value
 	    elif args[i] == '--API':
-	        analyzeAPI()
+	        analyzeAPITop()
 	    elif args[i] == '--docs':
-	        analyzeHTML()
+	        analyzeHTMLTop()
 	    else:
 	        usage()
 	    i = i + 1
diff --git a/doc/news.html b/doc/news.html
index 0a72ca5..47bf937 100644
--- a/doc/news.html
+++ b/doc/news.html
@@ -113,7 +113,7 @@
   <li>Better handling of Windows file paths, improvement of Makefiles (Igor,
     Daniel Gehriger, Mark Vakoc)</li>
   <li>Improved the python I/O bindings, the tests, added resolver and regexp
-    APIs </li>
+    APIs</li>
   <li>New logos from Marc Liyanage</li>
   <li>Tutorial improvements: John Fleck, Christopher Harris</li>
   <li>Makefile: Fixes for AMD x86_64 (Mandrake), DESTDIR (Christophe
diff --git a/doc/xml.html b/doc/xml.html
index 97e6293..0e25a93 100644
--- a/doc/xml.html
+++ b/doc/xml.html
@@ -416,6 +416,8 @@
 
 <p>There are several on-line resources related to using libxml:</p>
 <ol>
+  <li>Use the <a href="search.php">search engine</a> to lookup
+  informations.</li>
   <li>Check the <a href="FAQ.html">FAQ.</a></li>
   <li>Check the <a href="http://xmlsoft.org/html/libxml-lib.html">extensive
     documentation</a> automatically extracted from code comments (using <a
@@ -462,7 +464,8 @@
 <p>Check the following <strong><span style="color: #FF0000">before
 posting</span></strong>:</p>
 <ul>
-  <li>Read the <a href="FAQ.html">FAQ</a>.</li>
+  <li>Read the <a href="FAQ.html">FAQ</a> and <a href="search.php">use the
+    search engine</a> to get informations related to your problem.</li>
   <li>Make sure you are <a href="ftp://xmlsoft.org/">using a recent
     version</a>, and that the problem still shows up in a recent version.</li>
   <li>Check the <a href="http://mail.gnome.org/archives/xml/">list
@@ -526,7 +529,7 @@
 archive</a><!-- commenting this out because they seem to have disappeared or <a
 href="ftp://ftp.gnome.org/pub/GNOME/stable/redhat/i386/libxml/">RPM
 packages</a> -->
-, Antonin Sprinzl also provide <a href="ftp://gd.tuwien.ac.at/pub/libxml/">a
+ , Antonin Sprinzl also provide <a href="ftp://gd.tuwien.ac.at/pub/libxml/">a
 mirror in Austria</a>. (NOTE that you need both the <a
 href="http://rpmfind.net/linux/RPM/libxml2.html">libxml(2)</a> and <a
 href="http://rpmfind.net/linux/RPM/libxml2-devel.html">libxml(2)-devel</a>
@@ -590,7 +593,7 @@
   <li>Better handling of Windows file paths, improvement of Makefiles (Igor,
     Daniel Gehriger, Mark Vakoc)</li>
   <li>Improved the python I/O bindings, the tests, added resolver and regexp
-    APIs </li>
+    APIs</li>
   <li>New logos from Marc Liyanage</li>
   <li>Tutorial improvements: John Fleck, Christopher Harris</li>
   <li>Makefile: Fixes for AMD x86_64 (Mandrake), DESTDIR (Christophe
@@ -2688,6 +2691,7 @@
 
 
 
+
 } </pre>
   </li>
   <li>And then use it to save the document:
diff --git a/doc/xmlio.html b/doc/xmlio.html
index fe4106e..c324799 100644
--- a/doc/xmlio.html
+++ b/doc/xmlio.html
@@ -247,6 +247,7 @@
 
 
 
+
 } </pre>
   </li>
   <li>And then use it to save the document: