mxml/www/index.php

83 lines
2.0 KiB
PHP
Raw Normal View History

2004-05-17 02:14:54 +00:00
<?php
//
2005-02-26 05:27:25 +00:00
// "$Id$"
2004-05-17 02:14:54 +00:00
//
// Mini-XML home page...
//
include_once "phplib/html.php";
2004-05-19 01:39:04 +00:00
include_once "phplib/common.php";
2004-05-20 03:38:42 +00:00
include_once "phplib/poll.php";
2004-05-17 02:14:54 +00:00
html_header();
2007-09-09 07:02:33 +00:00
?>
<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>
<?
2004-05-19 01:39:04 +00:00
$result = db_query("SELECT * FROM article WHERE is_published = 1 "
2007-09-09 07:02:33 +00:00
."ORDER BY modify_date DESC LIMIT 3");
2004-05-19 01:39:04 +00:00
$count = db_count($result);
2007-09-09 07:02:33 +00:00
while ($row = db_next($result))
2004-05-17 02:14:54 +00:00
{
2007-09-09 07:02:33 +00:00
$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");
2004-05-17 02:14:54 +00:00
}
2004-05-19 01:39:04 +00:00
db_free($result);
2004-05-17 02:14:54 +00:00
2007-09-09 07:02:33 +00:00
?>
2004-05-17 02:14:54 +00:00
2007-09-09 07:02:33 +00:00
<h2>About Mini-XML</h2>
2004-05-17 02:14:54 +00:00
2007-09-09 07:02:33 +00:00
<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(); ?>