Gnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C library for Gnome

Search engine

Main Menu
API Indexes
Related links
Search the X documentation on XMLSoft.org"; } ?>

The search service indexes only the XML API at the moment. To use it simply provide a set of keywords:

$rb) ? -1 : 1; } if (($query) && (strlen($query) <= 50)) { $link = mysql_connect ("localhost", "nobody"); if (!$link) { echo "

Could not connect to the database: ", mysql_error(); } else { mysql_select_db("xmlsoft", $link); $list = explode (" ", $query); $results = array(); $number = 0; for ($number = 0;$number < count($list);$number++) { $word = $list[$number]; list($result, $j) = queryWord($word); if ($j > 0) { for ($i = 0; $i < $j; $i++) { $relevance = mysql_result($result, $i, 0); $name = mysql_result($result, $i, 1); $type = mysql_result($result, $i, 2); $module = mysql_result($result, $i, 3); $desc = mysql_result($result, $i, 4); if (array_key_exists($name, $results)) { list($r,$t,$m,$n, $d) = $results[$name]; $results[$name] = array($r + $relevance + 40, $t,$m,$n,$d); } else { $results[$name] = array($relevance,$type, $module, $name, $desc); } } mysql_free_result($result); } else { echo "

No symbol found for $word\n"; } } mysql_close($link); $nb = count($results); echo "

Found $nb results for query $query

\n"; usort($results, "resSort"); if ($nb > 0) { printf("\n"); printf("\n"); while (list ($name, $val) = each ($results)) { list($r,$t,$m,$n,$d) = $val; $upper = strtoupper($n); $module = strtolower($m); $url = "html/libxml-$module.html#$upper"; echo ""; } printf("
QualitySymbolTypemoduleDescription
$r$n$t$m$d
\n"); } } } ?>