mxml/www/index.php
2007-09-09 07:02:33 +00:00

83 lines
2.0 KiB
PHP

<?php
//
// "$Id$"
//
// Mini-XML home page...
//
include_once "phplib/html.php";
include_once "phplib/common.php";
include_once "phplib/poll.php";
html_header();
?>
<h1 align='center'>Mini-XML: Lightweight XML Support Library</h1>
<h2><img src='images/logo-large.gif'
style='margin-left: 20px; float: right;' width='300' height='300'
alt='Mini-XML logo'>Recent News</h2>
<?
$result = db_query("SELECT * FROM article WHERE is_published = 1 "
."ORDER BY modify_date DESC LIMIT 3");
$count = db_count($result);
while ($row = db_next($result))
{
$id = $row['id'];
$title = htmlspecialchars($row['title']);
$abstract = htmlspecialchars($row['abstract']);
$date = date("H:i M d, Y", $row['modify_date']);
$count = count_comments("articles.php_L$id");
if ($count == 1)
$count .= " comment";
else
$count .= " comments";
print("<p><span class='dateinfo'>$date, $count</span><br>\n"
."<a href='articles.php?L$id'>$title</a> - $abstract</p>\n");
}
db_free($result);
?>
<h2>About Mini-XML</h2>
<p>Mini-XML is a small XML parsing library that you can use to read
XML and XML-like data files in your application without requiring
large non-standard libraries. Mini-XML only requires an ANSI C
compatible compiler (GCC works, as do most vendors' ANSI C
compilers) and a 'make' program.</p>
<p>Mini-XML provides the following functionality:</p>
<ul>
<li>Reading of UTF-8 and UTF-16 and writing of UTF-8 encoded
XML files and strings.</li>
<li>Data is stored in a linked-list tree structure,
preserving the XML data hierarchy.</li>
<li>Supports arbitrary element names, attributes, and
attribute values with no preset limits, just available
memory.</li>
<li>Supports integer, real, opaque ("cdata"), and text data
types in "leaf" nodes.</li>
<li>Functions for creating, indexing, and managing trees of
data.</li>
<li>"Find" and "walk" functions for easily locating and
navigating trees of data.</li>
</ul>
<? html_footer(); ?>