Index: branches/dev/html/test/adachi/PLLager/PLLagger.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/PLLagger.php	(revision 14678)
+++ branches/dev/html/test/adachi/PLLager/PLLagger.php	(revision 14678)
@@ -0,0 +1,104 @@
+<?php
+require_once('PLLagger/Util.php');
+//require_once('PLLgger/Constant.php');
+
+class PLLagger {
+    private $config;
+    private $plugins;
+    private $feeds;
+    private $update_feeds;
+    private $corrent_phase;
+    
+    public function __construct($config){
+        $this->config  = $config;
+        $this->plugins = array();
+        $this->feeds   = array();
+        $this->update_feeds  = array();
+        $this->corrent_phase = 'Init';
+    }
+    
+    public function run () {
+        $this->load_plugins();
+        
+        $phases = array(
+            'Subscription',
+            'Filter',
+            'Publish'
+        );
+        
+        foreach ( $phases as $phase ) {
+            $this->corrent_phase = $phase;
+            $plugins = $this->get_plugins($phase);
+            
+            foreach ( $plugins as $plugin ) {
+                $plugin->execute($this);
+            }
+        }
+    }
+    
+    private function load_plugins () {
+        foreach ($this->config['plugins'] as $name => $config) {
+            $class   = 'PLLagger_Plugin_' . $name;
+            $include = preg_replace('/_/', '/', $class) . '.php';
+            $ret     = include_once($include);
+            
+            $err = 0;
+            
+            if ($ret) {
+                if ( preg_match("/^(.+?)_/", $name, $matches) ) {
+                    $phase = $matches[1];
+                    $this->plugins[$phase][] = new $class($this, $config);
+                    $this->log('[OK] ' . $class . ' loaded');
+                }
+                else {
+                    $this->log('[ERR] ' . 'class name is invalid: ' . $class);
+                    $err++;
+                }
+            }
+            else {
+                $this->log('[ERR] ' . $class . ' not found');
+                $err++;
+            }
+        }
+        
+        if ($err) {
+            $this->_die('function load_plugins()');
+        }
+    }
+    
+    public function log ($msg) {
+        PLLagger_Util::log($this->corrent_phase, $msg);
+    }
+    
+    public function p ($var) {
+        PLLagger_Util::p($var);
+    }
+    
+    public function _die ($msg) {
+        $this->log('[DIE] ' . $msg);
+        exit();
+    }
+    
+    private function get_plugins ($phase) {
+        if ( empty($this->plugins[$phase]) ) {
+            return array();
+        }
+        return $this->plugins[$phase];
+    }
+    
+    public function get_feeds () {
+        if ( count($this->update_feeds) > 0 ) {
+            return $this->update_feeds;
+        }
+        return $this->feeds;
+    }
+    
+    public function add_feed ($feed) {
+        $this->feeds[] = $feed;
+    }
+    
+    public function update_feed ($feed) {
+    
+    }
+}
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser.php	(revision 14612)
@@ -0,0 +1,351 @@
+<?php
+/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
+
+/**
+ * Key gateway class for XML_Feed_Parser package
+ *
+ * PHP versions 5
+ *
+ * LICENSE: This source file is subject to version 3.0 of the PHP license
+ * that is available through the world-wide-web at the following URI:
+ * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
+ * the PHP License and are unable to obtain it through the web, please
+ * send a note to license@php.net so we can mail you a copy immediately.
+ *
+ * @category   XML
+ * @package    XML_Feed_Parser
+ * @author     James Stewart <james@jystewart.net>
+ * @copyright  2005 James Stewart <james@jystewart.net>
+ * @license    http://www.gnu.org/copyleft/lesser.html  GNU LGPL
+ * @version    CVS: $Id: Parser.php,v 1.24 2006/08/15 13:04:00 jystewart Exp $
+ * @link       http://pear.php.net/package/XML_Feed_Parser/
+ */
+
+/**
+ * XML_Feed_Parser_Type is an abstract class required by all of our
+ * feed types. It makes sense to load it here to keep the other files
+ * clean.
+ */
+require_once 'XML/Feed/Parser/Type.php';
+
+/**
+ * We will throw exceptions when errors occur.
+ */
+require_once 'XML/Feed/Parser/Exception.php';
+
+/**
+ * This is the core of the XML_Feed_Parser package. It identifies feed types 
+ * and abstracts access to them. It is an iterator, allowing for easy access 
+ * to the entire feed.
+ *
+ * @author  James Stewart <james@jystewart.net>
+ * @version Release: 1.0.2
+ * @package XML_Feed_Parser
+ */
+class XML_Feed_Parser implements Iterator
+{
+    /**
+     * This is where we hold the feed object 
+     * @var Object
+     */
+    private $feed;
+
+    /**
+     * To allow for extensions, we make a public reference to the feed model 
+     * @var DOMDocument
+     */
+    public $model;
+    
+    /**
+     * A map between entry ID and offset
+     * @var array
+     */
+    protected $idMappings = array();
+
+    /**
+     * A storage space for Namespace URIs.
+     * @var array
+     */
+    private $feedNamespaces = array(
+        'rss2' => array(
+            'http://backend.userland.com/rss',
+            'http://backend.userland.com/rss2',
+            'http://blogs.law.harvard.edu/tech/rss'));
+    /**
+     * Detects feed types and instantiate appropriate objects.
+     *
+     * Our constructor takes care of detecting feed types and instantiating
+     * appropriate classes. For now we're going to treat Atom 0.3 as Atom 1.0
+     * but raise a warning. I do not intend to introduce full support for 
+     * Atom 0.3 as it has been deprecated, but others are welcome to.
+     *
+     * @param    string    $feed    XML serialization of the feed
+     * @param    bool    $strict    Whether or not to validate the feed
+     * @param    bool    $suppressWarnings Trigger errors for deprecated feed types?
+     * @param    bool    $tidy    Whether or not to try and use the tidy library on input
+     */
+    function __construct($feed, $strict = false, $suppressWarnings = false, $tidy = false)
+    {
+        $this->model = new DOMDocument;
+        if (! $this->model->loadXML($feed)) {
+            if (extension_loaded('tidy') && $tidy) {
+                $tidy = new tidy;
+                $tidy->parseString($feed, 
+                    array('input-xml' => true, 'output-xml' => true));
+                $tidy->cleanRepair();
+                if (! $this->model->loadXML((string) $tidy)) {
+                    throw new XML_Feed_Parser_Exception('Invalid input: this is not ' .
+                        'valid XML');
+                }
+            } else {
+                throw new XML_Feed_Parser_Exception('Invalid input: this is not valid XML');
+            }
+
+        }
+
+        /* detect feed type */
+        $doc_element = $this->model->documentElement;
+        $error = false;
+
+        switch (true) {
+            case ($doc_element->namespaceURI == 'http://www.w3.org/2005/Atom'):
+                require_once 'XML/Feed/Parser/Atom.php';
+                require_once 'XML/Feed/Parser/AtomElement.php';
+                $class = 'XML_Feed_Parser_Atom';
+                break;
+            case ($doc_element->namespaceURI == 'http://purl.org/atom/ns#'):
+                require_once 'XML/Feed/Parser/Atom.php';
+                require_once 'XML/Feed/Parser/AtomElement.php';
+                $class = 'XML_Feed_Parser_Atom';
+                $error = 'Atom 0.3 deprecated, using 1.0 parser which won\'t provide ' .
+                    'all options';
+                break;
+            case ($doc_element->namespaceURI == 'http://purl.org/rss/1.0/' || 
+                ($doc_element->hasChildNodes() && $doc_element->childNodes->length > 1 
+                && $doc_element->childNodes->item(1)->namespaceURI == 
+                'http://purl.org/rss/1.0/')):
+                require_once 'XML/Feed/Parser/RSS1.php';
+                require_once 'XML/Feed/Parser/RSS1Element.php';
+                $class = 'XML_Feed_Parser_RSS1';
+                break;
+            case ($doc_element->namespaceURI == 'http://purl.org/rss/1.1/' || 
+                ($doc_element->hasChildNodes() && $doc_element->childNodes->length > 1 
+                && $doc_element->childNodes->item(1)->namespaceURI == 
+                'http://purl.org/rss/1.1/')):
+                require_once 'XML/Feed/Parser/RSS11.php';
+                require_once 'XML/Feed/Parser/RSS11Element.php';
+                $class = 'XML_Feed_Parser_RSS11';
+                break;
+            case (($doc_element->hasChildNodes() && $doc_element->childNodes->length > 1
+                && $doc_element->childNodes->item(1)->namespaceURI == 
+                'http://my.netscape.com/rdf/simple/0.9/') || 
+                $doc_element->namespaceURI == 'http://my.netscape.com/rdf/simple/0.9/'):
+                require_once 'XML/Feed/Parser/RSS09.php';
+                require_once 'XML/Feed/Parser/RSS09Element.php';
+                $class = 'XML_Feed_Parser_RSS09';
+                break;
+            case ($doc_element->tagName == 'rss' and
+                $doc_element->hasAttribute('version') && 
+                $doc_element->getAttribute('version') == 0.91):
+                $error = 'RSS 0.91 has been superceded by RSS2.0. Using RSS2.0 parser.';
+                require_once 'XML/Feed/Parser/RSS2.php';
+                require_once 'XML/Feed/Parser/RSS2Element.php';
+                $class = 'XML_Feed_Parser_RSS2';
+                break;
+            case ($doc_element->tagName == 'rss' and
+                $doc_element->hasAttribute('version') && 
+                $doc_element->getAttribute('version') == 0.92):
+                $error = 'RSS 0.92 has been superceded by RSS2.0. Using RSS2.0 parser.';
+                require_once 'XML/Feed/Parser/RSS2.php';
+                require_once 'XML/Feed/Parser/RSS2Element.php';
+                $class = 'XML_Feed_Parser_RSS2';
+                break;
+            case (in_array($doc_element->namespaceURI, $this->feedNamespaces['rss2'])
+                || $doc_element->tagName == 'rss'):
+                if (! $doc_element->hasAttribute('version') || 
+                    $doc_element->getAttribute('version') != 2) {
+                    $error = 'RSS version not specified. Parsing as RSS2.0';
+                }
+                require_once 'XML/Feed/Parser/RSS2.php';
+                require_once 'XML/Feed/Parser/RSS2Element.php';
+                $class = 'XML_Feed_Parser_RSS2';
+                break;
+            default:
+                throw new XML_Feed_Parser_Exception('Feed type unknown');
+                break;
+        }
+
+        if (! $suppressWarnings && ! empty($error)) {
+            trigger_error($error, E_USER_WARNING);
+        }
+
+        /* Instantiate feed object */
+        $this->feed = new $class($this->model, $strict);
+    }
+
+    /**
+     * Proxy to allow feed element names to be used as method names
+     *
+     * For top-level feed elements we will provide access using methods or 
+     * attributes. This function simply passes on a request to the appropriate 
+     * feed type object.
+     *
+     * @param   string  $call - the method being called
+     * @param   array   $attributes
+     */
+    function __call($call, $attributes)
+    {
+        $attributes = array_pad($attributes, 5, false);
+        list($a, $b, $c, $d, $e) = $attributes;
+        return $this->feed->$call($a, $b, $c, $d, $e);
+    }
+
+    /**
+     * Proxy to allow feed element names to be used as attribute names
+     *
+     * To allow variable-like access to feed-level data we use this
+     * method. It simply passes along to __call() which in turn passes
+     * along to the relevant object.
+     *
+     * @param   string  $val - the name of the variable required
+     */
+    function __get($val)
+    {
+        return $this->feed->$val;
+    }
+
+    /**
+     * Provides iteration functionality.
+     *
+     * Of course we must be able to iterate... This function simply increases
+     * our internal counter.
+     */
+    function next()
+    {
+        if (isset($this->current_item) && 
+            $this->current_item <= $this->feed->numberEntries - 1) {
+            ++$this->current_item;
+        } else if (! isset($this->current_item)) {
+            $this->current_item = 0;
+        } else {
+            return false;
+        }
+    }
+
+    /**
+     * Return XML_Feed_Type object for current element
+     *
+     * @return    XML_Feed_Parser_Type Object
+     */
+    function current()
+    {
+        return $this->getEntryByOffset($this->current_item);
+    }
+
+    /**
+     * For iteration -- returns the key for the current stage in the array.
+     *
+     * @return    int
+     */    
+    function key()
+    {
+        return $this->current_item;
+    }
+
+    /**
+     * For iteration -- tells whether we have reached the 
+     * end.
+     *
+     * @return    bool
+     */
+    function valid()
+    {
+        return $this->current_item < $this->feed->numberEntries;
+    }
+
+    /**
+     * For iteration -- resets the internal counter to the beginning.
+     */
+    function rewind()
+    {
+        $this->current_item = 0;
+    }
+
+    /**
+     * Provides access to entries by ID if one is specified in the source feed.
+     *
+     * As well as allowing the items to be iterated over we want to allow
+     * users to be able to access a specific entry. This is one of two ways of
+     * doing that, the other being by offset. This method can be quite slow
+     * if dealing with a large feed that hasn't yet been processed as it
+     * instantiates objects for every entry until it finds the one needed.
+     *
+     * @param    string    $id  Valid ID for the given feed format
+     * @return    XML_Feed_Parser_Type|false
+     */            
+    function getEntryById($id)
+    {
+        if (isset($this->idMappings[$id])) {
+            return $this->getEntryByOffset($this->idMappings[$id]);
+        }
+
+        /* 
+         * Since we have not yet encountered that ID, let's go through all the
+         * remaining entries in order till we find it.
+         * This is a fairly slow implementation, but it should work.
+         */
+        return $this->feed->getEntryById($id);
+    }
+
+    /**
+     * Retrieve entry by numeric offset, starting from zero.
+     *
+     * As well as allowing the items to be iterated over we want to allow
+     * users to be able to access a specific entry. This is one of two ways of
+     * doing that, the other being by ID.
+     *
+     * @param    int    $offset The position of the entry within the feed, starting from 0
+     * @return    XML_Feed_Parser_Type|false
+     */
+    function getEntryByOffset($offset)
+    {
+        if ($offset < $this->feed->numberEntries) {
+            if (isset($this->feed->entries[$offset])) {
+                return $this->feed->entries[$offset];
+            } else {
+                try {
+                    $this->feed->getEntryByOffset($offset);
+                } catch (Exception $e) {
+                    return false;
+                }
+                $id = $this->feed->entries[$offset]->getID();
+                $this->idMappings[$id] = $offset;
+                return $this->feed->entries[$offset];
+            }
+        } else {
+            return false;
+        }
+    }
+
+    /**
+     * Retrieve version details from feed type class.
+     *
+     * @return void
+     * @author James Stewart
+     */
+    function version()
+    {
+        return $this->feed->version;
+    }
+    
+    /**
+     * Returns a string representation of the feed.
+     * 
+     * @return String
+     **/
+    function __toString()
+    {
+        return $this->feed->__toString();
+    }
+}
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/accessTypes.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/accessTypes.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/accessTypes.php	(revision 14612)
@@ -0,0 +1,189 @@
+<?php
+
+require_once 'XML_Feed_Parser_TestCase.php';
+
+/**
+ * This test is to make sure that we get sane values back for all
+ * elements specified by the atom specification. It is okay for a feed
+ * to not have some of these, but if they're not present we should
+ * get a null or false return rather than an error. This test begins
+ * to ensure consistency of our API.
+ */
+class XML_Feed_Parser_AccessTypes1_TestCase extends XML_Feed_Parser_TestCase
+{
+    function __construct($name)
+    {
+        $this->PHPUnit_TestCase($name);
+        $sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
+        $this->file = file_get_contents($sample_dir . DIRECTORY_SEPARATOR . 'atom10-example1.xml');
+        $this->feed = new XML_Feed_Parser($this->file);
+        $this->entry = $this->feed->getEntryByOffset(0);
+    }
+    
+    function setUp() {
+    }
+    
+    function tearDown() {
+    }
+
+    function test_feedAuthor() {
+        $this->assertEquals($this->feed->author, $this->feed->author());
+    }
+    
+    function test_feedIcon() {
+        $this->assertEquals($this->feed->icon, $this->feed->icon());
+    }
+    
+    function test_feedId() {
+        $this->assertEquals($this->feed->id, $this->feed->id());
+    }
+    
+    function test_feedRights() {
+        $this->assertEquals($this->feed->rights, $this->feed->rights());
+    }
+    
+    function test_feedTitle() {
+        $this->assertEquals($this->feed->title, $this->feed->title());
+    }
+    
+    function test_feedSubtitle() {
+        $this->assertEquals($this->feed->subtitle, $this->feed->subtitle());
+    }
+    
+    function test_feedUpdated() {
+        $this->assertEquals($this->feed->updated, $this->feed->updated());
+    }
+    
+    function test_feedLink() {
+        $this->assertEquals($this->feed->link, $this->feed->link());
+    }
+    
+    function test_entryAuthor() {
+        $this->assertEquals($this->entry->author, $this->entry->author());
+    }
+    
+    function test_entryId() {
+        $this->assertEquals($this->entry->id, $this->entry->id());
+    }
+    
+    function test_entryPublished() {
+        $this->assertEquals($this->entry->published, $this->entry->published());
+    }
+    
+    function testEntryTitle() {
+        $this->assertEquals($this->entry->title, $this->entry->title());
+    }
+    
+    function testEntryRights() {
+        $this->assertEquals($this->entry->rights, $this->entry->rights());
+    }
+    
+    function testEntrySummary() {
+        $this->assertEquals($this->entry->summary, $this->entry->summary());
+    }
+    
+    function testEntryContent() {
+        $this->assertEquals($this->entry->content, $this->entry->content());
+    }
+    
+    function testEntryLink() {
+        $this->assertEquals($this->entry->link, $this->entry->link());
+    }
+}
+
+class XML_Feed_Parser_AccessTypes2_TestCase extends XML_Feed_Parser_AccessTypes1_TestCase
+{
+    function __construct($name)
+    {
+        $this->PHPUnit_TestCase($name);
+        $sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
+        $this->file = file_get_contents($sample_dir . DIRECTORY_SEPARATOR . 'atom10-example2.xml');
+        $this->feed = new XML_Feed_Parser($this->file);
+        $this->entry = $this->feed->getEntryByOffset(0);
+    }
+}
+
+class XML_Feed_Parser_AccessTypes3_TestCase extends XML_Feed_Parser_AccessTypes1_TestCase
+{
+    function __construct($name)
+    {
+        $this->PHPUnit_TestCase($name);
+        $sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
+        $this->file = file_get_contents($sample_dir . DIRECTORY_SEPARATOR . 'rss10-example1.xml');
+        $this->feed = new XML_Feed_Parser($this->file);
+        $this->entry = $this->feed->getEntryByOffset(0);
+    }
+}
+
+class XML_Feed_Parser_AccessTypes4_TestCase extends XML_Feed_Parser_AccessTypes1_TestCase
+{
+    function __construct($name)
+    {
+        $this->PHPUnit_TestCase($name);
+        $sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
+        $this->file = file_get_contents($sample_dir . DIRECTORY_SEPARATOR . 'rss10-example2.xml');
+        $this->feed = new XML_Feed_Parser($this->file);
+        $this->entry = $this->feed->getEntryByOffset(0);
+    }
+}
+
+class XML_Feed_Parser_AccessTypes5_TestCase extends XML_Feed_Parser_AccessTypes1_TestCase
+{
+    function __construct($name)
+    {
+        $this->PHPUnit_TestCase($name);
+        $sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
+        $this->file = file_get_contents($sample_dir . DIRECTORY_SEPARATOR . 'rss2sample.xml');
+        $this->feed = new XML_Feed_Parser($this->file);
+        $this->entry = $this->feed->getEntryByOffset(0);
+    }
+}
+
+class XML_Feed_Parser_AccessTypes6_TestCase extends XML_Feed_Parser_AccessTypes1_TestCase
+{
+    function __construct($name)
+    {
+        $this->PHPUnit_TestCase($name);
+        $sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
+        $this->file = file_get_contents($sample_dir . DIRECTORY_SEPARATOR . 'delicious.feed');
+        $this->feed = new XML_Feed_Parser($this->file);
+        $this->entry = $this->feed->getEntryByOffset(0);
+    }
+}
+
+class XML_Feed_Parser_AccessTypes7_TestCase extends XML_Feed_Parser_AccessTypes1_TestCase
+{
+    function __construct($name)
+    {
+        $this->PHPUnit_TestCase($name);
+        $sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
+        $this->file = file_get_contents($sample_dir . DIRECTORY_SEPARATOR . 'technorati.feed');
+        $this->feed = new XML_Feed_Parser($this->file);
+        $this->entry = $this->feed->getEntryByOffset(0);
+    }
+}
+
+class XML_Feed_Parser_AccessTypes8_TestCase extends XML_Feed_Parser_AccessTypes1_TestCase
+{
+    function __construct($name)
+    {
+        $this->PHPUnit_TestCase($name);
+        $sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
+        $this->file = file_get_contents($sample_dir . DIRECTORY_SEPARATOR . 'grwifi-atom.xml');
+        $this->feed = new XML_Feed_Parser($this->file);
+        $this->entry = $this->feed->getEntryByOffset(0);
+    }
+}
+
+$suite = new PHPUnit_TestSuite;
+$suite->addTestSuite('XML_Feed_Parser_AccessTypes1_TestCase');
+$suite->addTestSuite('XML_Feed_Parser_AccessTypes2_TestCase');
+$suite->addTestSuite('XML_Feed_Parser_AccessTypes3_TestCase');
+$suite->addTestSuite('XML_Feed_Parser_AccessTypes4_TestCase');
+$suite->addTestSuite('XML_Feed_Parser_AccessTypes5_TestCase');
+$suite->addTestSuite('XML_Feed_Parser_AccessTypes6_TestCase');
+$suite->addTestSuite('XML_Feed_Parser_AccessTypes7_TestCase');
+$suite->addTestSuite('XML_Feed_Parser_AccessTypes8_TestCase');
+$result = PHPUnit::run($suite, '123');
+echo $result->toString();
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/base.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/base.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/base.php	(revision 14612)
@@ -0,0 +1,1365 @@
+<?php
+
+require_once 'XML_Feed_Parser_TestCase.php';
+
+class base_TestCase extends XML_Feed_Parser_Converted_TestCase {
+
+    function test_cdf_item_abstract_xml_base_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/cdf_item_abstract_xml_base.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://base.example.org/', $feed->getEntryByOffset(0)->summary(0, 'base'));
+    }
+
+    function test_entry_content_xml_base_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/entry_content_xml_base.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/test/', $feed->getEntryByOffset(0)->content(0, 'base'));
+    }
+
+    function test_entry_content_xml_base_inherit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/entry_content_xml_base_inherit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/test/', $feed->getEntryByOffset(0)->content(0, 'base'));
+    }
+
+    function test_entry_content_xml_base_inherit_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/entry_content_xml_base_inherit_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/test/', $feed->getEntryByOffset(0)->content(0, 'base'));
+    }
+
+    function test_entry_content_xml_base_inherit_3_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/entry_content_xml_base_inherit_3.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/test/', $feed->getEntryByOffset(0)->content(0, 'base'));
+    }
+
+    function test_entry_content_xml_base_inherit_4_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/entry_content_xml_base_inherit_4.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/parent/', $feed->getEntryByOffset(0)->content(0, 'base'));
+    }
+
+    function test_entry_summary_xml_base_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/entry_summary_xml_base.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/test/', $feed->getEntryByOffset(0)->summary(0, 'base'));
+    }
+
+    function test_entry_summary_xml_base_inherit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/entry_summary_xml_base_inherit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/test/', $feed->getEntryByOffset(0)->summary(0, 'base'));
+    }
+
+    function test_entry_summary_xml_base_inherit_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/entry_summary_xml_base_inherit_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/test/', $feed->getEntryByOffset(0)->summary(0, 'base'));
+    }
+
+    function test_entry_summary_xml_base_inherit_3_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/entry_summary_xml_base_inherit_3.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/summary/', $feed->getEntryByOffset(0)->summary(0, 'base'));
+    }
+
+    function test_entry_summary_xml_base_inherit_4_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/entry_summary_xml_base_inherit_4.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/parent/', $feed->getEntryByOffset(0)->summary(0, 'base'));
+    }
+
+    function test_entry_title_xml_base_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/entry_title_xml_base.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/test/', $feed->getEntryByOffset(0)->title(0, 'base'));
+    }
+
+    function test_entry_title_xml_base_inherit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/entry_title_xml_base_inherit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/test/', $feed->getEntryByOffset(0)->title(0, 'base'));
+    }
+
+    function test_entry_title_xml_base_inherit_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/entry_title_xml_base_inherit_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/test/', $feed->getEntryByOffset(0)->title(0, 'base'));
+    }
+
+    function test_entry_title_xml_base_inherit_3_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/entry_title_xml_base_inherit_3.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/test/', $feed->getEntryByOffset(0)->title(0, 'base'));
+    }
+
+    function test_entry_title_xml_base_inherit_4_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/entry_title_xml_base_inherit_4.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/parent/', $feed->getEntryByOffset(0)->title(0, 'base'));
+    }
+
+    function test_feed_copyright_xml_base_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/feed_copyright_xml_base.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/test/', $feed->copyright(0, 'base'));
+    }
+
+    function test_feed_copyright_xml_base_inherit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/feed_copyright_xml_base_inherit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/test/', $feed->copyright(0, 'base'));
+    }
+
+    function test_feed_copyright_xml_base_inherit_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/feed_copyright_xml_base_inherit_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/test/', $feed->copyright(0, 'base'));
+    }
+
+    function test_feed_copyright_xml_base_inherit_3_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/feed_copyright_xml_base_inherit_3.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/test/', $feed->copyright(0, 'base'));
+    }
+
+    function test_feed_copyright_xml_base_inherit_4_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/feed_copyright_xml_base_inherit_4.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/parent/', $feed->copyright(0, 'base'));
+    }
+
+    function test_feed_info_xml_base_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/feed_info_xml_base.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/test/', $feed->info(0, 'base'));
+    }
+
+    function test_feed_info_xml_base_inherit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/feed_info_xml_base_inherit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/test/', $feed->info(0, 'base'));
+    }
+
+    function test_feed_info_xml_base_inherit_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/feed_info_xml_base_inherit_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/test/', $feed->info(0, 'base'));
+    }
+
+    function test_feed_info_xml_base_inherit_3_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/feed_info_xml_base_inherit_3.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/info/', $feed->info(0, 'base'));
+    }
+
+    function test_feed_info_xml_base_inherit_4_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/feed_info_xml_base_inherit_4.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/parent/', $feed->info(0, 'base'));
+    }
+
+    function test_feed_tagline_xml_base_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/feed_tagline_xml_base.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/test/', $feed->tagline(0, 'base'));
+    }
+
+    function test_feed_tagline_xml_base_inherit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/feed_tagline_xml_base_inherit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/test/', $feed->tagline(0, 'base'));
+    }
+
+    function test_feed_tagline_xml_base_inherit_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/feed_tagline_xml_base_inherit_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/test/', $feed->tagline(0, 'base'));
+    }
+
+    function test_feed_tagline_xml_base_inherit_3_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/feed_tagline_xml_base_inherit_3.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/test/', $feed->tagline(0, 'base'));
+    }
+
+    function test_feed_tagline_xml_base_inherit_4_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/feed_tagline_xml_base_inherit_4.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/parent/', $feed->tagline(0, 'base'));
+    }
+
+    function test_feed_title_xml_base_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/feed_title_xml_base.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/test/', $feed->title(0, 'base'));
+    }
+
+    function test_feed_title_xml_base_inherit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/feed_title_xml_base_inherit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/test/', $feed->title(0, 'base'));
+    }
+
+    function test_feed_title_xml_base_inherit_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/feed_title_xml_base_inherit_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/test/', $feed->title(0, 'base'));
+    }
+
+    function test_feed_title_xml_base_inherit_3_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/feed_title_xml_base_inherit_3.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/test/', $feed->title(0, 'base'));
+    }
+
+    function test_feed_title_xml_base_inherit_4_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/feed_title_xml_base_inherit_4.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/parent/', $feed->title(0, 'base'));
+    }
+
+    function test_http_channel_docs_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_channel_docs_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/relative/uri', $feed->docs);
+    }
+
+    function test_http_channel_docs_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_channel_docs_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://127.0.0.1:8097/relative/uri', $feed->docs);
+    }
+
+    function test_http_channel_link_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_channel_link_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/relative/uri', $feed->link);
+    }
+
+    function test_http_channel_link_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_channel_link_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://127.0.0.1:8097/relative/uri', $feed->link);
+    }
+
+    function test_http_entry_author_url_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_entry_author_url_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/relative/link', $feed->getEntryByOffset(0)->author(0, 'url'));
+    }
+
+    function test_http_entry_author_url_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_entry_author_url_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://127.0.0.1:8097/relative/link', $feed->getEntryByOffset(0)->author(0, 'url'));
+    }
+
+    function test_http_entry_content_base64_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_entry_content_base64_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://example.com/relative/uri">click here</a></div>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_http_entry_content_base64_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_entry_content_base64_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://127.0.0.1:8097/relative/uri">click here</a></div>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_http_entry_content_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_entry_content_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://example.com/relative/uri">click here</a></div>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_http_entry_content_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_entry_content_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://127.0.0.1:8097/relative/uri">click here</a></div>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_http_entry_content_inline_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_entry_content_inline_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://example.com/relative/uri">click here</a></div>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_http_entry_content_inline_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_entry_content_inline_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://127.0.0.1:8097/relative/uri">click here</a></div>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_http_entry_contributor_url_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_entry_contributor_url_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/relative/link', $feed->getEntryByOffset(0)->contributors(0, 'url'));
+    }
+
+    function test_http_entry_contributor_url_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_entry_contributor_url_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://127.0.0.1:8097/relative/link', $feed->getEntryByOffset(0)->contributors(0, 'url'));
+    }
+
+    function test_http_entry_id_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_entry_id_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/relative/link', $feed->getEntryByOffset(0)->id);
+    }
+
+    function test_http_entry_id_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_entry_id_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://127.0.0.1:8097/relative/link', $feed->getEntryByOffset(0)->id);
+    }
+
+    function test_http_entry_link_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_entry_link_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/relative/link', $feed->getEntryByOffset(0)->links(0, 'href'));
+    }
+
+    function test_http_entry_link_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_entry_link_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://127.0.0.1:8097/relative/link', $feed->getEntryByOffset(0)->links(0, 'href'));
+    }
+
+    function test_http_entry_summary_base64_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_entry_summary_base64_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://example.com/relative/uri">click here</a></div>', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_http_entry_summary_base64_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_entry_summary_base64_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://127.0.0.1:8097/relative/uri">click here</a></div>', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_http_entry_summary_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_entry_summary_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://example.com/relative/uri">click here</a></div>', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_http_entry_summary_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_entry_summary_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://127.0.0.1:8097/relative/uri">click here</a></div>', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_http_entry_summary_inline_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_entry_summary_inline_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://example.com/relative/uri">click here</a></div>', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_http_entry_summary_inline_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_entry_summary_inline_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://127.0.0.1:8097/relative/uri">click here</a></div>', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_http_entry_title_base64_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_entry_title_base64_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://example.com/relative/uri">click here</a></div>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_http_entry_title_base64_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_entry_title_base64_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://127.0.0.1:8097/relative/uri">click here</a></div>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_http_entry_title_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_entry_title_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://example.com/relative/uri">click here</a></div>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_http_entry_title_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_entry_title_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://127.0.0.1:8097/relative/uri">click here</a></div>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_http_entry_title_inline_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_entry_title_inline_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://example.com/relative/uri">click here</a></div>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_http_entry_title_inline_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_entry_title_inline_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://127.0.0.1:8097/relative/uri">click here</a></div>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_http_feed_author_url_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_author_url_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/relative/link', $feed->author(0, 'url'));
+    }
+
+    function test_http_feed_author_url_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_author_url_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://127.0.0.1:8097/relative/link', $feed->author(0, 'url'));
+    }
+
+    function test_http_feed_contributor_url_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_contributor_url_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/relative/link', $feed->contributors(0, 'url'));
+    }
+
+    function test_http_feed_contributor_url_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_contributor_url_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://127.0.0.1:8097/relative/link', $feed->contributors(0, 'url'));
+    }
+
+    function test_http_feed_copyright_base64_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_copyright_base64_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://example.com/relative/uri">click here</a></div>', $feed->copyright);
+    }
+
+    function test_http_feed_copyright_base64_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_copyright_base64_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://127.0.0.1:8097/relative/uri">click here</a></div>', $feed->copyright);
+    }
+
+    function test_http_feed_copyright_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_copyright_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://example.com/relative/uri">click here</a></div>', $feed->copyright);
+    }
+
+    function test_http_feed_copyright_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_copyright_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://127.0.0.1:8097/relative/uri">click here</a></div>', $feed->copyright);
+    }
+
+    function test_http_feed_copyright_inline_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_copyright_inline_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://example.com/relative/uri">click here</a></div>', $feed->copyright);
+    }
+
+    function test_http_feed_copyright_inline_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_copyright_inline_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://127.0.0.1:8097/relative/uri">click here</a></div>', $feed->copyright);
+    }
+
+    function test_http_feed_generator_url_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_generator_url_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/relative/link', $feed->generator(0, 'url'));
+    }
+
+    function test_http_feed_generator_url_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_generator_url_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://127.0.0.1:8097/relative/link', $feed->generator(0, 'url'));
+    }
+
+    function test_http_feed_id_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_id_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/relative/link', $feed->id);
+    }
+
+    function test_http_feed_id_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_id_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://127.0.0.1:8097/relative/link', $feed->id);
+    }
+
+    function test_http_feed_info_base64_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_info_base64_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://example.com/relative/uri">click here</a></div>', $feed->info);
+    }
+
+    function test_http_feed_info_base64_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_info_base64_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://127.0.0.1:8097/relative/uri">click here</a></div>', $feed->info);
+    }
+
+    function test_http_feed_info_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_info_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://example.com/relative/uri">click here</a></div>', $feed->info);
+    }
+
+    function test_http_feed_info_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_info_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://127.0.0.1:8097/relative/uri">click here</a></div>', $feed->info);
+    }
+
+    function test_http_feed_info_inline_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_info_inline_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://example.com/relative/uri">click here</a></div>', $feed->info);
+    }
+
+    function test_http_feed_info_inline_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_info_inline_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://127.0.0.1:8097/relative/uri">click here</a></div>', $feed->info);
+    }
+
+    function test_http_feed_link_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_link_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/relative/link', $feed->links(0, 'href'));
+    }
+
+    function test_http_feed_link_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_link_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://127.0.0.1:8097/relative/link', $feed->links(0, 'href'));
+    }
+
+    function test_http_feed_tagline_base64_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_tagline_base64_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://example.com/relative/uri">click here</a></div>', $feed->tagline);
+    }
+
+    function test_http_feed_tagline_base64_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_tagline_base64_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://127.0.0.1:8097/relative/uri">click here</a></div>', $feed->tagline);
+    }
+
+    function test_http_feed_tagline_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_tagline_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://example.com/relative/uri">click here</a></div>', $feed->tagline);
+    }
+
+    function test_http_feed_tagline_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_tagline_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://127.0.0.1:8097/relative/uri">click here</a></div>', $feed->tagline);
+    }
+
+    function test_http_feed_tagline_inline_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_tagline_inline_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://example.com/relative/uri">click here</a></div>', $feed->tagline);
+    }
+
+    function test_http_feed_tagline_inline_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_tagline_inline_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://127.0.0.1:8097/relative/uri">click here</a></div>', $feed->tagline);
+    }
+
+    function test_http_feed_title_base64_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_title_base64_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://example.com/relative/uri">click here</a></div>', $feed->title);
+    }
+
+    function test_http_feed_title_base64_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_title_base64_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://127.0.0.1:8097/relative/uri">click here</a></div>', $feed->title);
+    }
+
+    function test_http_feed_title_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_title_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://example.com/relative/uri">click here</a></div>', $feed->title);
+    }
+
+    function test_http_feed_title_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_title_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://127.0.0.1:8097/relative/uri">click here</a></div>', $feed->title);
+    }
+
+    function test_http_feed_title_inline_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_title_inline_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://example.com/relative/uri">click here</a></div>', $feed->title);
+    }
+
+    function test_http_feed_title_inline_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_feed_title_inline_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><a href="http://127.0.0.1:8097/relative/uri">click here</a></div>', $feed->title);
+    }
+
+    function test_http_item_body_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_item_body_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<a href="http://example.com/relative/uri">click here</a>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_http_item_body_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_item_body_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<a href="http://127.0.0.1:8097/relative/uri">click here</a>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_http_item_comments_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_item_comments_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/relative/uri', $feed->getEntryByOffset(0)->comments);
+    }
+
+    function test_http_item_comments_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_item_comments_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://127.0.0.1:8097/relative/uri', $feed->getEntryByOffset(0)->comments);
+    }
+
+    function test_http_item_content_encoded_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_item_content_encoded_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<a href="http://example.com/relative/uri">click here</a>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_http_item_content_encoded_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_item_content_encoded_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<a href="http://127.0.0.1:8097/relative/uri">click here</a>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_http_item_description_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_item_description_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<a href="http://example.com/relative/uri">click here</a>', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_http_item_description_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_item_description_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<a href="http://127.0.0.1:8097/relative/uri">click here</a>', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_http_item_fullitem_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_item_fullitem_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<a href="http://example.com/relative/uri">click here</a>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_http_item_fullitem_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_item_fullitem_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<a href="http://127.0.0.1:8097/relative/uri">click here</a>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_http_item_link_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_item_link_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/relative/uri', $feed->getEntryByOffset(0)->link);
+    }
+
+    function test_http_item_link_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_item_link_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://127.0.0.1:8097/relative/uri', $feed->getEntryByOffset(0)->link);
+    }
+
+    function test_http_item_wfw_comment_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_item_wfw_comment_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/relative/uri', $feed->getEntryByOffset(0)->wfw_comment);
+    }
+
+    function test_http_item_wfw_comment_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_item_wfw_comment_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://127.0.0.1:8097/relative/uri', $feed->getEntryByOffset(0)->wfw_comment);
+    }
+
+    function test_http_item_wfw_commentRSS_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_item_wfw_commentRSS_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/relative/uri', $feed->getEntryByOffset(0)->wfw_commentrss);
+    }
+
+    function test_http_item_wfw_commentRSS_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_item_wfw_commentRSS_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://127.0.0.1:8097/relative/uri', $feed->getEntryByOffset(0)->wfw_commentrss);
+    }
+
+    function test_http_item_xhtml_body_base_content_location_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_item_xhtml_body_base_content_location.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<a href="http://example.com/relative/uri">click here</a>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_http_item_xhtml_body_base_docuri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_item_xhtml_body_base_docuri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<a href="http://127.0.0.1:8097/relative/uri">click here</a>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_http_relative_xml_base_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_relative_xml_base.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/feed/entry/title/', $feed->getEntryByOffset(0)->title(0, 'base'));
+    }
+
+    function test_http_relative_xml_base_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/http_relative_xml_base_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/entry/', $feed->getEntryByOffset(0)->title(0, 'base'));
+    }
+
+    function test_malformed_base_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/malformed_base.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/test/', $feed->getEntryByOffset(0)->title(0, 'base'));
+    }
+
+    function test_relative_xml_base_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/relative_xml_base.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/test/', $feed->getEntryByOffset(0)->title(0, 'base'));
+    }
+
+    function test_relative_xml_base_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/base/relative_xml_base_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/test/', $feed->getEntryByOffset(0)->title(0, 'base'));
+    }
+}
+
+$suite = new PHPUnit_TestSuite('base_TestCase');
+$result = PHPUnit::run($suite, '123');
+echo $result->toString();
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/rdf.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/rdf.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/rdf.php	(revision 14612)
@@ -0,0 +1,133 @@
+<?php
+
+require_once 'XML_Feed_Parser_TestCase.php';
+
+class rdf_TestCase extends XML_Feed_Parser_Converted_TestCase {
+
+    function test_rdf_channel_description_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rdf/rdf_channel_description.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example description', $feed->description);
+    }
+
+    function test_rdf_channel_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rdf/rdf_channel_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->link);
+    }
+
+    function test_rdf_channel_title_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rdf/rdf_channel_title.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example feed', $feed->title);
+    }
+
+    function test_rdf_item_description_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rdf/rdf_item_description.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_rdf_item_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rdf/rdf_item_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/1', $feed->getEntryByOffset(0)->link);
+    }
+
+    function test_rdf_item_rdf_about_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rdf/rdf_item_rdf_about.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.org/1', $feed->getEntryByOffset(0)->id);
+    }
+
+    function test_rdf_item_title_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rdf/rdf_item_title.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example title', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_rss090_channel_title_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rdf/rss090_channel_title.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example title', $feed->title);
+    }
+
+    function test_rss090_item_title_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rdf/rss090_item_title.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Item title', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_rss_version_10_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rdf/rss_version_10.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('rss10', $feed->version());
+    }
+
+    function test_rss_version_10_not_default_ns_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rdf/rss_version_10_not_default_ns.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('rss10', $feed->version());
+    }
+}
+
+$suite = new PHPUnit_TestSuite('rdf_TestCase');
+$result = PHPUnit::run($suite, '123');
+echo $result->toString();
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/cdf.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/cdf.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/cdf.php	(revision 14612)
@@ -0,0 +1,122 @@
+<?php
+
+require_once 'XML_Feed_Parser_TestCase.php';
+
+class cdf_TestCase extends XML_Feed_Parser_Converted_TestCase {
+
+    function test_channel_abstract_map_description_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/cdf/channel_abstract_map_description.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example description', $feed->description);
+    }
+
+    function test_channel_abstract_map_tagline_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/cdf/channel_abstract_map_tagline.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example description', $feed->tagline);
+    }
+
+    function test_channel_href_map_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/cdf/channel_href_map_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.org/', $feed->link);
+    }
+
+    function test_channel_href_map_links_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/cdf/channel_href_map_links.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.org/', $feed->links(0, 'href'));
+    }
+
+    function test_channel_title_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/cdf/channel_title.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example feed', $feed->title);
+    }
+
+    function test_item_abstract_map_description_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/cdf/item_abstract_map_description.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_abstract_map_summary_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/cdf/item_abstract_map_summary.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example description', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_item_href_map_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/cdf/item_href_map_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.org/', $feed->getEntryByOffset(0)->link);
+    }
+
+    function test_item_href_map_links_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/cdf/item_href_map_links.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.org/', $feed->getEntryByOffset(0)->links(0, 'href'));
+    }
+
+    function test_item_title_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/cdf/item_title.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example item', $feed->getEntryByOffset(0)->title);
+    }
+}
+
+$suite = new PHPUnit_TestSuite('cdf_TestCase');
+$result = PHPUnit::run($suite, '123');
+echo $result->toString();
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/namespace.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/namespace.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/namespace.php	(revision 14612)
@@ -0,0 +1,100 @@
+<?php
+
+require_once 'XML_Feed_Parser_TestCase.php';
+
+class namespace_TestCase extends XML_Feed_Parser_Converted_TestCase {
+
+    function test_rss1_0withModules_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/namespace/rss1.0withModules.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Test Item - RSS 1.0', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_rss1_0withModulesNoDefNS_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/namespace/rss1.0withModulesNoDefNS.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Test Item - RSS 1.0 no Default NS', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_rss1_0withModulesNoDefNSLocalNameClash_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/namespace/rss1.0withModulesNoDefNSLocalNameClash.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('correct description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_rss2_0noNSwithModules_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/namespace/rss2.0noNSwithModules.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Test Item - RSS 2.0 no NS', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_rss2_0noNSwithModulesLocalNameClash_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/namespace/rss2.0noNSwithModulesLocalNameClash.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('correct description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_rss2_0NSwithModules_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/namespace/rss2.0NSwithModules.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Test Item - RSS2.0 w/ NS', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_rss2_0NSwithModulesNoDefNS_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/namespace/rss2.0NSwithModulesNoDefNS.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Test Item - - RSS2.0 w/ NS no default NS', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_rss2_0NSwithModulesNoDefNSLocalNameClash_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/namespace/rss2.0NSwithModulesNoDefNSLocalNameClash.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('correct description', $feed->getEntryByOffset(0)->description);
+    }
+}
+
+$suite = new PHPUnit_TestSuite('namespace_TestCase');
+$result = PHPUnit::run($suite, '123');
+echo $result->toString();
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/amp.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/amp.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/amp.php	(revision 14612)
@@ -0,0 +1,716 @@
+<?php
+
+require_once '../XML_Feed_Parser_TestCase.php';
+
+class amp_TestCase extends XML_Feed_Parser_Converted_TestCase {
+
+    function test_amp01_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp01.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('&#38;', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp02_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp02.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('&#x26;', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp03_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp03.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('&', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp04_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp04.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('&amp;', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp05_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp05.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('&#38;', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp06_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp06.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('&#x26;', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp07_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp07.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('&', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp08_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp08.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('&amp;', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp09_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp09.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('&#38;', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp10_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp10.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('&#x26;', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp11_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp11.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('&', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp12_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp12.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('&amp;', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp13_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp13.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<b>&#38;</b>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp14_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp14.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<b>&#x26;</b>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp15_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp15.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<b>&amp;</b>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp16_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp16.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<b>&#38;</b>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp17_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp17.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<b>&#x26;</b>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp18_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp18.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<b>&amp;</b>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp19_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp19.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<b>&#38;</b>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp20_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp20.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<b>&#x26;</b>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp21_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp21.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<b>&amp;</b>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp22_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp22.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<b>&#38;</b>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp23_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp23.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<b>&#x26;</b>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp24_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp24.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<b>&amp;</b>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp25_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp25.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<b>&#38;</b>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp26_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp26.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<b>&#x26;</b>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp27_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp27.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<b>&amp;</b>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp28_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp28.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<b>&#38;</b>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp29_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp29.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<b>&#x26;</b>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp30_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp30.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<b>&amp;</b>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp31_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp31.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<strong>&#38;</strong>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp32_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp32.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<strong>&#x26;</strong>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp33_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp33.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<strong>&amp;</strong>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp34_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp34.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<strong>&#38;</strong>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp35_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp35.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<strong>&#x26;</strong>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp36_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp36.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<strong>&amp;</strong>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp37_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp37.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<strong>&#38;</strong>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp38_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp38.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<strong>&#x26;</strong>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp39_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp39.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<strong>&amp;</strong>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp40_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp40.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<strong>&#38;</strong>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp41_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp41.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<strong>&#x26;</strong>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp42_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp42.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<strong>&amp;</strong>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp43_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp43.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<strong>&#38;</strong>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp44_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp44.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<strong>&#x26;</strong>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp45_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp45.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<strong>&amp;</strong>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp46_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp46.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<strong>&#38;</strong>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp47_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp47.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<strong>&#x26;</strong>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp48_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp48.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<strong>&amp;</strong>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp49_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp49.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('&#38;', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp50_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp50.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('&#x26;', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp51_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp51.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('&', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp52_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp52.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('&amp;', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp53_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp53.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<b>&#38;</b>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp54_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp54.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<b>&#x26;</b>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp55_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp55.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<b>&amp;</b>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp56_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp56.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<strong>&#38;</strong>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp57_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp57.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<strong>&#x26;</strong>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp58_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp58.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<strong>&amp;</strong>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp59_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp59.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><b>&amp;</b></div>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp60_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp60.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><b>&amp;</b></div>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp61_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp61.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><b>&amp;</b></div>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp62_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp62.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><strong>&amp;</strong></div>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp63_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp63.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><strong>&amp;</strong></div>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_amp64_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp64.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div><strong>&amp;</strong></div>', $feed->getEntryByOffset(0)->title);
+    }
+}
+
+$suite = new PHPUnit_TestSuite('amp_TestCase');
+$result = PHPUnit::run($suite, '123');
+echo $result->toString();
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/date.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/date.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/date.php	(revision 14612)
@@ -0,0 +1,1211 @@
+<?php
+
+require_once 'XML_Feed_Parser_TestCase.php';
+
+class date_TestCase extends XML_Feed_Parser_Converted_TestCase {
+
+    function test_cdf_channel_lastmod_map_date_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/cdf_channel_lastmod_map_date.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('2004-04-06T23:05:43-05:00', $feed->date);
+    }
+
+    function test_cdf_channel_lastmod_map_modified_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/cdf_channel_lastmod_map_modified.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('2004-04-06T23:05:43-05:00', $feed->modified);
+    }
+
+    function test_cdf_channel_lastmod_map_modified_parsed_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/cdf_channel_lastmod_map_modified_parsed.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 4, 7, 4, 5, 43, 2, 98, 0), $feed->modified_parsed);
+    }
+
+    function test_cdf_item_lastmod_map_date_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/cdf_item_lastmod_map_date.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('2004-04-06T23:05:43-05:00', $feed->getEntryByOffset(0)->date);
+    }
+
+    function test_cdf_item_lastmod_map_modified_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/cdf_item_lastmod_map_modified.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('2004-04-06T23:05:43-05:00', $feed->getEntryByOffset(0)->modified);
+    }
+
+    function test_cdf_item_lastmod_map_modified_parsed_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/cdf_item_lastmod_map_modified_parsed.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 4, 7, 4, 5, 43, 2, 98, 0), $feed->getEntryByOffset(0)->modified_parsed);
+    }
+
+    function test_channel_dc_date_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_dc_date.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('2003-12-31T10:14:55Z', $feed->date);
+    }
+
+    function test_channel_dc_date_map_modified_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_dc_date_map_modified.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('2003-12-31T10:14:55Z', $feed->modified);
+    }
+
+    function test_channel_dc_date_w3dtf_utc_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_dc_date_w3dtf_utc.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 10, 14, 55, 2, 365, 0), $feed->date_parsed);
+    }
+
+    function test_channel_dc_date_w3dtf_utc_map_modified_parsed_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_dc_date_w3dtf_utc_map_modified_parsed.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 10, 14, 55, 2, 365, 0), $feed->modified_parsed);
+    }
+
+    function test_channel_dcterms_created_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_dcterms_created.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('2003-12-31T10:14:55Z', $feed->created);
+    }
+
+    function test_channel_dcterms_created_w3dtf_utc_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_dcterms_created_w3dtf_utc.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 10, 14, 55, 2, 365, 0), $feed->created_parsed);
+    }
+
+    function test_channel_dcterms_issued_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_dcterms_issued.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('2003-12-31T10:14:55Z', $feed->issued);
+    }
+
+    function test_channel_dcterms_issued_w3dtf_utc_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_dcterms_issued_w3dtf_utc.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 10, 14, 55, 2, 365, 0), $feed->issued_parsed);
+    }
+
+    function test_channel_dcterms_modified_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_dcterms_modified.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('2003-12-31T10:14:55Z', $feed->modified);
+    }
+
+    function test_channel_dcterms_modified_map_date_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_dcterms_modified_map_date.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('2003-12-31T10:14:55Z', $feed->date);
+    }
+
+    function test_channel_dcterms_modified_w3dtf_utc_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_dcterms_modified_w3dtf_utc.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 10, 14, 55, 2, 365, 0), $feed->modified_parsed);
+    }
+
+    function test_channel_dcterms_modified_w3dtf_utc_map_date_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_dcterms_modified_w3dtf_utc_map_date.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 10, 14, 55, 2, 365, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Thu, 01 Jan 2004 19:48:21 GMT', $feed->date);
+    }
+
+    function test_channel_pubDate_asctime_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_asctime.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 1, 5, 0, 29, 6, 0, 5, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_disney_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_disney.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 1, 26, 21, 31, 0, 0, 26, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_disney_at_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_disney_at.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 1, 26, 20, 31, 0, 0, 26, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_disney_ct_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_disney_ct.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 1, 26, 22, 31, 0, 0, 26, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_disney_mt_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_disney_mt.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 1, 26, 23, 31, 0, 0, 26, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_disney_pt_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_disney_pt.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 1, 27, 0, 31, 0, 1, 27, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_greek_1_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_greek_1.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 7, 11, 17, 0, 0, 6, 193, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_hungarian_1_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_hungarian_1.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 7, 13, 14, 15, 0, 1, 195, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_iso8601_ym_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_iso8601_ym.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 1, 0, 0, 0, 0, 335, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_iso8601_ym_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_iso8601_ym_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 1, 0, 0, 0, 0, 335, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_iso8601_ymd_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_iso8601_ymd.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 0, 0, 0, 2, 365, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_iso8601_ymd_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_iso8601_ymd_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 0, 0, 0, 2, 365, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_iso8601_yo_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_iso8601_yo_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 1, 0, 0, 0, 0, 335, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_korean_nate_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_korean_nate.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 5, 25, 14, 23, 17, 1, 146, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_map_modified_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_map_modified.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 1, 1, 19, 48, 21, 3, 1, 0), $feed->modified_parsed);
+    }
+
+    function test_channel_pubDate_mssql_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_mssql.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 7, 8, 14, 56, 58, 3, 190, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_mssql_nofraction_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_mssql_nofraction.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 7, 8, 14, 56, 58, 3, 190, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_nosecond_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_nosecond.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 1, 1, 0, 0, 0, 3, 1, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_notime_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_notime.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 1, 1, 0, 0, 0, 3, 1, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_rfc2822_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_rfc2822.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 1, 1, 19, 48, 21, 3, 1, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_rfc2822_rollover_june_31_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_rfc2822_rollover_june_31.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 7, 1, 19, 48, 21, 3, 183, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_rfc822_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_rfc822.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 1, 1, 19, 48, 21, 3, 1, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_w3dtf_rollover_25h_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_w3dtf_rollover_25h.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 1, 1, 1, 14, 55, 3, 1, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_w3dtf_rollover_61m_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_w3dtf_rollover_61m.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 11, 1, 55, 2, 365, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_w3dtf_rollover_61s_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_w3dtf_rollover_61s.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 10, 15, 1, 2, 365, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_w3dtf_rollover_leapyear_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_w3dtf_rollover_leapyear.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 2, 29, 2, 14, 55, 6, 60, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_w3dtf_rollover_leapyear400_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_w3dtf_rollover_leapyear400.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2000, 2, 29, 2, 14, 55, 1, 60, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_w3dtf_rollover_nonleapyear_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_w3dtf_rollover_nonleapyear.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 3, 1, 2, 14, 55, 5, 60, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_w3dtf_sf_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_w3dtf_sf.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 18, 14, 55, 2, 365, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_w3dtf_tokyo_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_w3dtf_tokyo.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 10, 14, 55, 2, 365, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_w3dtf_utc_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_w3dtf_utc.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 10, 14, 55, 2, 365, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_w3dtf_y_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_w3dtf_y.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 1, 1, 0, 0, 0, 2, 1, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_w3dtf_ym_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_w3dtf_ym.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 1, 0, 0, 0, 0, 335, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_w3dtf_ymd_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_w3dtf_ymd.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 0, 0, 0, 2, 365, 0), $feed->date_parsed);
+    }
+
+    function test_channel_pubDate_w3dtf_ymd_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_pubDate_w3dtf_ymd_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 0, 0, 0, 2, 365, 0), $feed->date_parsed);
+    }
+
+    function test_entry_created_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/entry_created.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Thu, 01 Jan 2004 19:48:21 GMT', $feed->getEntryByOffset(0)->created);
+    }
+
+    function test_entry_created_w3dtf_utc_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/entry_created_w3dtf_utc.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 10, 14, 55, 2, 365, 0), $feed->getEntryByOffset(0)->created_parsed);
+    }
+
+    function test_entry_issued_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/entry_issued.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Thu, 01 Jan 2004 19:48:21 GMT', $feed->getEntryByOffset(0)->issued);
+    }
+
+    function test_entry_issued_w3dtf_utc_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/entry_issued_w3dtf_utc.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 10, 14, 55, 2, 365, 0), $feed->getEntryByOffset(0)->issued_parsed);
+    }
+
+    function test_entry_modified_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/entry_modified.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Thu, 01 Jan 2004 19:48:21 GMT', $feed->getEntryByOffset(0)->modified);
+    }
+
+    function test_entry_modified_map_date_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/entry_modified_map_date.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 1, 1, 19, 48, 21, 3, 1, 0), $feed->getEntryByOffset(0)->date_parsed);
+    }
+
+    function test_entry_modified_w3dtf_utc_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/entry_modified_w3dtf_utc.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 10, 14, 55, 2, 365, 0), $feed->getEntryByOffset(0)->modified_parsed);
+    }
+
+    function test_entry_published_w3dtf_utc_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/entry_published_w3dtf_utc.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 10, 14, 55, 2, 365, 0), $feed->getEntryByOffset(0)->published_parsed);
+    }
+
+    function test_entry_source_updated_w3dtf_utc_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/entry_source_updated_w3dtf_utc.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 10, 14, 55, 2, 365, 0), $feed->getEntryByOffset(0)->source(0, 'updated_parsed'));
+    }
+
+    function test_entry_updated_w3dtf_utc_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/entry_updated_w3dtf_utc.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 10, 14, 55, 2, 365, 0), $feed->getEntryByOffset(0)->updated_parsed);
+    }
+
+    function test_feed_modified_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/feed_modified.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Thu, 01 Jan 2004 19:48:21 GMT', $feed->modified);
+    }
+
+    function test_feed_modified_asctime_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/feed_modified_asctime.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 1, 5, 0, 29, 6, 0, 5, 0), $feed->modified_parsed);
+    }
+
+    function test_feed_modified_disney_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/feed_modified_disney.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 1, 26, 21, 31, 0, 0, 26, 0), $feed->date_parsed);
+    }
+
+    function test_feed_modified_disney_at_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/feed_modified_disney_at.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 1, 26, 20, 31, 0, 0, 26, 0), $feed->date_parsed);
+    }
+
+    function test_feed_modified_disney_ct_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/feed_modified_disney_ct.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 1, 26, 22, 31, 0, 0, 26, 0), $feed->date_parsed);
+    }
+
+    function test_feed_modified_disney_mt_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/feed_modified_disney_mt.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 1, 26, 23, 31, 0, 0, 26, 0), $feed->date_parsed);
+    }
+
+    function test_feed_modified_disney_pt_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/feed_modified_disney_pt.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 1, 27, 0, 31, 0, 1, 27, 0), $feed->date_parsed);
+    }
+
+    function test_feed_modified_iso8601_ym_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/feed_modified_iso8601_ym.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 1, 0, 0, 0, 0, 335, 0), $feed->modified_parsed);
+    }
+
+    function test_feed_modified_iso8601_ym_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/feed_modified_iso8601_ym_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 1, 0, 0, 0, 0, 335, 0), $feed->modified_parsed);
+    }
+
+    function test_feed_modified_iso8601_ymd_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/feed_modified_iso8601_ymd.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 0, 0, 0, 2, 365, 0), $feed->modified_parsed);
+    }
+
+    function test_feed_modified_iso8601_ymd_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/feed_modified_iso8601_ymd_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 0, 0, 0, 2, 365, 0), $feed->modified_parsed);
+    }
+
+    function test_feed_modified_iso8601_yo_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/feed_modified_iso8601_yo_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 1, 0, 0, 0, 0, 335, 0), $feed->modified_parsed);
+    }
+
+    function test_feed_modified_map_date_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/feed_modified_map_date.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 1, 1, 19, 48, 21, 3, 1, 0), $feed->date_parsed);
+    }
+
+    function test_feed_modified_rfc2822_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/feed_modified_rfc2822.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 1, 1, 19, 48, 21, 3, 1, 0), $feed->modified_parsed);
+    }
+
+    function test_feed_modified_rfc2822_rollover_june_31_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/feed_modified_rfc2822_rollover_june_31.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 7, 1, 19, 48, 21, 3, 183, 0), $feed->modified_parsed);
+    }
+
+    function test_feed_modified_rfc822_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/feed_modified_rfc822.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 1, 1, 19, 48, 21, 3, 1, 0), $feed->modified_parsed);
+    }
+
+    function test_feed_modified_w3dtf_rollover_leapyear_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/feed_modified_w3dtf_rollover_leapyear.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 2, 29, 2, 14, 55, 6, 60, 0), $feed->modified_parsed);
+    }
+
+    function test_feed_modified_w3dtf_rollover_leapyear400_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/feed_modified_w3dtf_rollover_leapyear400.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2000, 2, 29, 2, 14, 55, 1, 60, 0), $feed->modified_parsed);
+    }
+
+    function test_feed_modified_w3dtf_rollover_nonleapyear_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/feed_modified_w3dtf_rollover_nonleapyear.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 3, 1, 2, 14, 55, 5, 60, 0), $feed->modified_parsed);
+    }
+
+    function test_feed_modified_w3dtf_sf_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/feed_modified_w3dtf_sf.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 18, 14, 55, 2, 365, 0), $feed->modified_parsed);
+    }
+
+    function test_feed_modified_w3dtf_tokyo_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/feed_modified_w3dtf_tokyo.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 10, 14, 55, 2, 365, 0), $feed->modified_parsed);
+    }
+
+    function test_feed_modified_w3dtf_utc_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/feed_modified_w3dtf_utc.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 10, 14, 55, 2, 365, 0), $feed->modified_parsed);
+    }
+
+    function test_feed_modified_w3dtf_y_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/feed_modified_w3dtf_y.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 1, 1, 0, 0, 0, 2, 1, 0), $feed->modified_parsed);
+    }
+
+    function test_feed_modified_w3dtf_ym_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/feed_modified_w3dtf_ym.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 1, 0, 0, 0, 0, 335, 0), $feed->modified_parsed);
+    }
+
+    function test_feed_modified_w3dtf_ymd_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/feed_modified_w3dtf_ymd.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 0, 0, 0, 2, 365, 0), $feed->modified_parsed);
+    }
+
+    function test_feed_modified_w3dtf_ymd_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/feed_modified_w3dtf_ymd_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 0, 0, 0, 2, 365, 0), $feed->modified_parsed);
+    }
+
+    function test_feed_updated_w3dtf_utc_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/feed_updated_w3dtf_utc.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 10, 14, 55, 2, 365, 0), $feed->updated_parsed);
+    }
+
+    function test_item_dc_date_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/item_dc_date.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('2003-12-31T10:14:55Z', $feed->getEntryByOffset(0)->date);
+    }
+
+    function test_item_dc_date_map_modified_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/item_dc_date_map_modified.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('2003-12-31T10:14:55Z', $feed->getEntryByOffset(0)->modified);
+    }
+
+    function test_item_dc_date_w3dtf_utc_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/item_dc_date_w3dtf_utc.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 10, 14, 55, 2, 365, 0), $feed->getEntryByOffset(0)->date_parsed);
+    }
+
+    function test_item_dc_date_w3dtf_utc_map_modified_parsed_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/item_dc_date_w3dtf_utc_map_modified_parsed.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 10, 14, 55, 2, 365, 0), $feed->getEntryByOffset(0)->modified_parsed);
+    }
+
+    function test_item_dcterms_created_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/item_dcterms_created.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('2003-12-31T10:14:55Z', $feed->getEntryByOffset(0)->created);
+    }
+
+    function test_item_dcterms_created_w3dtf_utc_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/item_dcterms_created_w3dtf_utc.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 10, 14, 55, 2, 365, 0), $feed->getEntryByOffset(0)->created_parsed);
+    }
+
+    function test_item_dcterms_issued_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/item_dcterms_issued.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('2003-12-31T10:14:55Z', $feed->getEntryByOffset(0)->issued);
+    }
+
+    function test_item_dcterms_issued_w3dtf_utc_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/item_dcterms_issued_w3dtf_utc.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 10, 14, 55, 2, 365, 0), $feed->getEntryByOffset(0)->issued_parsed);
+    }
+
+    function test_item_dcterms_modified_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/item_dcterms_modified.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('2003-12-31T10:14:55Z', $feed->getEntryByOffset(0)->modified);
+    }
+
+    function test_item_dcterms_modified_map_date_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/item_dcterms_modified_map_date.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('2003-12-31T10:14:55Z', $feed->getEntryByOffset(0)->date);
+    }
+
+    function test_item_dcterms_modified_w3dtf_utc_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/item_dcterms_modified_w3dtf_utc.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 10, 14, 55, 2, 365, 0), $feed->getEntryByOffset(0)->modified_parsed);
+    }
+
+    function test_item_dcterms_modified_w3dtf_utc_map_date_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/item_dcterms_modified_w3dtf_utc_map_date.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2003, 12, 31, 10, 14, 55, 2, 365, 0), $feed->getEntryByOffset(0)->date_parsed);
+    }
+
+    function test_item_expirationDate_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/item_expirationDate.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Thu, 01 Jan 2004 19:48:21 GMT', $feed->getEntryByOffset(0)->expired);
+    }
+
+    function test_item_expirationDate_rfc2822_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/item_expirationDate_rfc2822.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 1, 1, 19, 48, 21, 3, 1, 0), $feed->getEntryByOffset(0)->expired_parsed);
+    }
+
+    function test_item_pubDate_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/item_pubDate.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Thu, 01 Jan 2004 19:48:21 GMT', $feed->getEntryByOffset(0)->date);
+    }
+
+    function test_item_pubDate_euc-kr_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/item_pubDate_euc-kr.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 5, 27, 16, 31, 15, 3, 148, 0), $feed->getEntryByOffset(0)->modified_parsed);
+    }
+
+    function test_item_pubDate_map_modified_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/item_pubDate_map_modified.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 1, 1, 19, 48, 21, 3, 1, 0), $feed->getEntryByOffset(0)->modified_parsed);
+    }
+
+    function test_item_pubDate_rfc2822_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/item_pubDate_rfc2822.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(2004, 1, 1, 19, 48, 21, 3, 1, 0), $feed->getEntryByOffset(0)->date_parsed);
+    }
+}
+
+$suite = new PHPUnit_TestSuite('date_TestCase');
+$result = PHPUnit::run($suite, '123');
+echo $result->toString();
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/http.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/http.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/http.php	(revision 14612)
@@ -0,0 +1,12 @@
+<?php
+
+require_once 'XML_Feed_Parser_TestCase.php';
+
+class http_TestCase extends XML_Feed_Parser_Converted_TestCase {
+}
+
+$suite = new PHPUnit_TestSuite('http_TestCase');
+$result = PHPUnit::run($suite, '123');
+echo $result->toString();
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/atom.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/atom.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/atom.php	(revision 14612)
@@ -0,0 +1,1552 @@
+<?php
+
+require_once 'XML_Feed_Parser_TestCase.php';
+
+class atom_TestCase extends XML_Feed_Parser_Converted_TestCase {
+
+    function test_atom_namespace_1_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/atom_namespace_1.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->title);
+    }
+
+    function test_atom_namespace_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/atom_namespace_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->title);
+    }
+
+    function test_atom_namespace_3_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/atom_namespace_3.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->title);
+    }
+
+    function test_atom_namespace_4_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/atom_namespace_4.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->title);
+    }
+
+    function test_atom_namespace_5_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/atom_namespace_5.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->title);
+    }
+
+    function test_entry_author_email_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_author_email.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('me@example.com', $feed->getEntryByOffset(0)->author(0, 'email'));
+    }
+
+    function test_entry_author_homepage_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_author_homepage.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->getEntryByOffset(0)->author(0, 'url'));
+    }
+
+    function test_entry_author_map_author_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_author_map_author.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example author (me@example.com)', $feed->getEntryByOffset(0)->author);
+    }
+
+    function test_entry_author_map_author_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_author_map_author_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example author', $feed->getEntryByOffset(0)->author);
+    }
+
+    function test_entry_author_name_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_author_name.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example author', $feed->getEntryByOffset(0)->author(0, 'name'));
+    }
+
+    function test_entry_author_uri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_author_uri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->getEntryByOffset(0)->author(0, 'url'));
+    }
+
+    function test_entry_author_url_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_author_url.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->getEntryByOffset(0)->author(0, 'url'));
+    }
+
+    function test_entry_content_mode_base64_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_content_mode_base64.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, 1);
+    }
+
+    function test_entry_content_mode_escaped_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_content_mode_escaped.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, 1);
+    }
+
+    function test_entry_content_type_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_content_type.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->getEntryByOffset(0)->content(0, 'type'));
+    }
+
+    function test_entry_content_type_text_plain_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_content_type_text_plain.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->getEntryByOffset(0)->content(0, 'type'));
+    }
+
+    function test_entry_content_value_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_content_value.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_contributor_email_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_contributor_email.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('me@example.com', $feed->getEntryByOffset(0)->contributors(0, 'email'));
+    }
+
+    function test_entry_contributor_homepage_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_contributor_homepage.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->getEntryByOffset(0)->contributors(0, 'url'));
+    }
+
+    function test_entry_contributor_multiple_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_contributor_multiple.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(array('name' => 'Contributor 1', 'email' => 'me@example.com', 'href' => 'http://example.com/'), array('name' => 'Contributor 2', 'email' => 'you@example.com', 'href' => 'http://two.example.com/')), $feed->getEntryByOffset(0)->contributors);
+    }
+
+    function test_entry_contributor_name_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_contributor_name.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example contributor', $feed->getEntryByOffset(0)->contributors(0, 'name'));
+    }
+
+    function test_entry_contributor_uri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_contributor_uri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->getEntryByOffset(0)->contributors(0, 'url'));
+    }
+
+    function test_entry_contributor_url_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_contributor_url.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->getEntryByOffset(0)->contributors(0, 'url'));
+    }
+
+    function test_entry_id_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_id.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->getEntryByOffset(0)->id);
+    }
+
+    function test_entry_id_map_guid_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_id_map_guid.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->getEntryByOffset(0)->guid);
+    }
+
+    function test_entry_link_alternate_map_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_link_alternate_map_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.com/', $feed->getEntryByOffset(0)->link);
+    }
+
+    function test_entry_link_alternate_map_link_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_link_alternate_map_link_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.com/', $feed->getEntryByOffset(0)->link);
+    }
+
+    function test_entry_link_href_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_link_href.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.com/', $feed->getEntryByOffset(0)->links(0, 'href'));
+    }
+
+    function test_entry_link_multiple_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_link_multiple.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(array('rel' => 'alternate', 'type' => 'application/xhtml+xml', 'href' => 'http://www.example.com/'), array('rel' => 'service.post', 'type' => 'application/atom+xml', 'href' => 'http://www.example.com/post')), $feed->getEntryByOffset(0)->links);
+    }
+
+    function test_entry_link_rel_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_link_rel.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('alternate', $feed->getEntryByOffset(0)->links(0, 'rel'));
+    }
+
+    function test_entry_link_title_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_link_title.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example title', $feed->getEntryByOffset(0)->links(0, 'title'));
+    }
+
+    function test_entry_link_type_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_link_type.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/html', $feed->getEntryByOffset(0)->links(0, 'type'));
+    }
+
+    function test_entry_summary_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_summary.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_base64_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_summary_base64.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_base64_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_summary_base64_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<p>History of the &lt;blink&gt; tag</p>', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_content_mode_base64_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_summary_content_mode_base64.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, 1);
+    }
+
+    function test_entry_summary_content_mode_escaped_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_summary_content_mode_escaped.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, 1);
+    }
+
+    function test_entry_summary_content_type_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_summary_content_type.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->getEntryByOffset(0)->summary(0, 'type'));
+    }
+
+    function test_entry_summary_content_type_text_plain_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_summary_content_type_text_plain.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->getEntryByOffset(0)->summary(0, 'type'));
+    }
+
+    function test_entry_summary_content_value_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_summary_content_value.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_escaped_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_summary_escaped_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_inline_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_summary_inline_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>Example <b>Atom</b></div>', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_inline_markup_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_summary_inline_markup_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>History of the &lt;blink&gt; tag</div>', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_naked_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_summary_naked_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_text_plain_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_summary_text_plain.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_title_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_title.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_base64_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_title_base64.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_base64_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_title_base64_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<p>History of the &lt;blink&gt; tag</p>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_content_mode_base64_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_title_content_mode_base64.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, 1);
+    }
+
+    function test_entry_title_content_mode_escaped_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_title_content_mode_escaped.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, 1);
+    }
+
+    function test_entry_title_content_type_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_title_content_type.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->getEntryByOffset(0)->title(0, 'type'));
+    }
+
+    function test_entry_title_content_type_text_plain_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_title_content_type_text_plain.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->getEntryByOffset(0)->title(0, 'type'));
+    }
+
+    function test_entry_title_content_value_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_title_content_value.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_escaped_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_title_escaped_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_inline_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_title_inline_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>Example <b>Atom</b></div>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_inline_markup_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_title_inline_markup_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>History of the &lt;blink&gt; tag</div>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_naked_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_title_naked_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_text_plain_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_title_text_plain.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_text_plain_brackets_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/entry_title_text_plain_brackets.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('History of the <blink> tag', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_feed_author_email_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_author_email.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('me@example.com', $feed->author(0, 'email'));
+    }
+
+    function test_feed_author_homepage_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_author_homepage.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->author(0, 'url'));
+    }
+
+    function test_feed_author_map_author_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_author_map_author.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example author (me@example.com)', $feed->author);
+    }
+
+    function test_feed_author_map_author_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_author_map_author_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example author', $feed->author);
+    }
+
+    function test_feed_author_name_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_author_name.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example author', $feed->author(0, 'name'));
+    }
+
+    function test_feed_author_uri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_author_uri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->author(0, 'url'));
+    }
+
+    function test_feed_author_url_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_author_url.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->author(0, 'url'));
+    }
+
+    function test_feed_contributor_email_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_contributor_email.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('me@example.com', $feed->contributors(0, 'email'));
+    }
+
+    function test_feed_contributor_homepage_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_contributor_homepage.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->contributors(0, 'url'));
+    }
+
+    function test_feed_contributor_multiple_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_contributor_multiple.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(array('name' => 'Contributor 1', 'email' => 'me@example.com', 'href' => 'http://example.com/'), array('name' => 'Contributor 2', 'email' => 'you@example.com', 'href' => 'http://two.example.com/')), $feed->contributors);
+    }
+
+    function test_feed_contributor_name_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_contributor_name.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example contributor', $feed->contributors(0, 'name'));
+    }
+
+    function test_feed_contributor_uri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_contributor_uri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->contributors(0, 'url'));
+    }
+
+    function test_feed_contributor_url_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_contributor_url.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->contributors(0, 'url'));
+    }
+
+    function test_feed_copyright_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_copyright.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->copyright);
+    }
+
+    function test_feed_copyright_base64_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_copyright_base64.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->copyright);
+    }
+
+    function test_feed_copyright_base64_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_copyright_base64_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<p>History of the &lt;blink&gt; tag</p>', $feed->copyright);
+    }
+
+    function test_feed_copyright_content_mode_base64_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_copyright_content_mode_base64.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, 1);
+    }
+
+    function test_feed_copyright_content_mode_escaped_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_copyright_content_mode_escaped.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, 1);
+    }
+
+    function test_feed_copyright_content_type_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_copyright_content_type.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->copyright(0, 'type'));
+    }
+
+    function test_feed_copyright_content_type_text_plain_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_copyright_content_type_text_plain.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->copyright(0, 'type'));
+    }
+
+    function test_feed_copyright_content_value_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_copyright_content_value.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->copyright);
+    }
+
+    function test_feed_copyright_escaped_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_copyright_escaped_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->copyright);
+    }
+
+    function test_feed_copyright_inline_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_copyright_inline_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>Example <b>Atom</b></div>', $feed->copyright);
+    }
+
+    function test_feed_copyright_inline_markup_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_copyright_inline_markup_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>History of the &lt;blink&gt; tag</div>', $feed->copyright);
+    }
+
+    function test_feed_copyright_naked_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_copyright_naked_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->copyright);
+    }
+
+    function test_feed_copyright_text_plain_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_copyright_text_plain.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->copyright);
+    }
+
+    function test_feed_generator_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_generator.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example generator', $feed->generator);
+    }
+
+    function test_feed_generator_name_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_generator_name.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example generator', $feed->generator(0, 'name'));
+    }
+
+    function test_feed_generator_url_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_generator_url.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->generator(0, 'url'));
+    }
+
+    function test_feed_generator_version_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_generator_version.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('2.65', $feed->generator(0, 'version'));
+    }
+
+    function test_feed_id_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_id.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->id);
+    }
+
+    function test_feed_id_map_guid_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_id_map_guid.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->guid);
+    }
+
+    function test_feed_info_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_info.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->info);
+    }
+
+    function test_feed_info_base64_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_info_base64.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->info);
+    }
+
+    function test_feed_info_base64_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_info_base64_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<p>History of the &lt;blink&gt; tag</p>', $feed->info);
+    }
+
+    function test_feed_info_content_mode_base64_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_info_content_mode_base64.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, 1);
+    }
+
+    function test_feed_info_content_mode_escaped_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_info_content_mode_escaped.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, 1);
+    }
+
+    function test_feed_info_content_type_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_info_content_type.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->info(0, 'type'));
+    }
+
+    function test_feed_info_content_type_text_plain_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_info_content_type_text_plain.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->info(0, 'type'));
+    }
+
+    function test_feed_info_content_value_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_info_content_value.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->info);
+    }
+
+    function test_feed_info_escaped_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_info_escaped_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->info);
+    }
+
+    function test_feed_info_inline_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_info_inline_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>Example <b>Atom</b></div>', $feed->info);
+    }
+
+    function test_feed_info_inline_markup_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_info_inline_markup_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>History of the &lt;blink&gt; tag</div>', $feed->info);
+    }
+
+    function test_feed_info_naked_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_info_naked_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->info);
+    }
+
+    function test_feed_info_text_plain_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_info_text_plain.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->info);
+    }
+
+    function test_feed_link_alternate_map_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_link_alternate_map_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.com/', $feed->link);
+    }
+
+    function test_feed_link_alternate_map_link_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_link_alternate_map_link_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.com/', $feed->link);
+    }
+
+    function test_feed_link_href_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_link_href.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.com/', $feed->links(0, 'href'));
+    }
+
+    function test_feed_link_multiple_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_link_multiple.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(array('rel' => 'alternate', 'type' => 'application/xhtml+xml', 'href' => 'http://www.example.com/'), array('rel' => 'service.post', 'type' => 'application/atom+xml', 'href' => 'http://www.example.com/post')), $feed->links);
+    }
+
+    function test_feed_link_rel_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_link_rel.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('alternate', $feed->links(0, 'rel'));
+    }
+
+    function test_feed_link_title_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_link_title.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example title', $feed->links(0, 'title'));
+    }
+
+    function test_feed_link_type_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_link_type.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/html', $feed->links(0, 'type'));
+    }
+
+    function test_feed_tagline_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_tagline.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->tagline);
+    }
+
+    function test_feed_tagline_base64_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_tagline_base64.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->tagline);
+    }
+
+    function test_feed_tagline_base64_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_tagline_base64_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<p>History of the &lt;blink&gt; tag</p>', $feed->tagline);
+    }
+
+    function test_feed_tagline_content_mode_base64_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_tagline_content_mode_base64.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, 1);
+    }
+
+    function test_feed_tagline_content_mode_escaped_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_tagline_content_mode_escaped.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, 1);
+    }
+
+    function test_feed_tagline_content_type_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_tagline_content_type.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->tagline(0, 'type'));
+    }
+
+    function test_feed_tagline_content_type_text_plain_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_tagline_content_type_text_plain.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->tagline(0, 'type'));
+    }
+
+    function test_feed_tagline_content_value_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_tagline_content_value.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->tagline);
+    }
+
+    function test_feed_tagline_escaped_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_tagline_escaped_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->tagline);
+    }
+
+    function test_feed_tagline_inline_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_tagline_inline_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>Example <b>Atom</b></div>', $feed->tagline);
+    }
+
+    function test_feed_tagline_inline_markup_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_tagline_inline_markup_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>History of the &lt;blink&gt; tag</div>', $feed->tagline);
+    }
+
+    function test_feed_tagline_naked_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_tagline_naked_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->tagline);
+    }
+
+    function test_feed_tagline_text_plain_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_tagline_text_plain.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->tagline);
+    }
+
+    function test_feed_title_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_title.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->title);
+    }
+
+    function test_feed_title_base64_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_title_base64.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->title);
+    }
+
+    function test_feed_title_base64_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_title_base64_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<p>History of the &lt;blink&gt; tag</p>', $feed->title);
+    }
+
+    function test_feed_title_content_mode_base64_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_title_content_mode_base64.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, 1);
+    }
+
+    function test_feed_title_content_mode_escaped_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_title_content_mode_escaped.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, 1);
+    }
+
+    function test_feed_title_content_type_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_title_content_type.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->title(0, 'type'));
+    }
+
+    function test_feed_title_content_type_text_plain_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_title_content_type_text_plain.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->title(0, 'type'));
+    }
+
+    function test_feed_title_content_value_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_title_content_value.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->title);
+    }
+
+    function test_feed_title_escaped_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_title_escaped_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->title);
+    }
+
+    function test_feed_title_inline_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_title_inline_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>Example <b>Atom</b></div>', $feed->title);
+    }
+
+    function test_feed_title_inline_markup_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_title_inline_markup_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>History of the &lt;blink&gt; tag</div>', $feed->title);
+    }
+
+    function test_feed_title_naked_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_title_naked_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->title);
+    }
+
+    function test_feed_title_text_plain_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/feed_title_text_plain.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->title);
+    }
+
+    function test_relative_uri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/relative_uri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>Example <a href="http://example.com/test/test.html">test</a></div>', $feed->title);
+    }
+
+    function test_relative_uri_inherit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/relative_uri_inherit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>Example <a href="http://example.com/test/test.html">test</a></div>', $feed->title);
+    }
+
+    function test_relative_uri_inherit_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom/relative_uri_inherit_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>Example <a href="http://example.com/test/test.html">test</a></div>', $feed->title);
+    }
+}
+
+$suite = new PHPUnit_TestSuite('atom_TestCase');
+$result = PHPUnit::run($suite, '123');
+echo $result->toString();
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/atom10.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/atom10.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/atom10.php	(revision 14612)
@@ -0,0 +1,2377 @@
+<?php
+
+require_once 'XML_Feed_Parser_TestCase.php';
+
+class atom10_TestCase extends XML_Feed_Parser_Converted_TestCase {
+
+    function test_atom10_namespace_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/atom10_namespace.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->title);
+    }
+
+    function test_atom10_version_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/atom10_version.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('atom10', $feed->version());
+    }
+
+    function test_entry_author_email_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_author_email.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('me@example.com', $feed->getEntryByOffset(0)->author(0, 'email'));
+    }
+
+    function test_entry_author_map_author_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_author_map_author.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example author (me@example.com)', $feed->getEntryByOffset(0)->author);
+    }
+
+    function test_entry_author_map_author_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_author_map_author_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example author', $feed->getEntryByOffset(0)->author);
+    }
+
+    function test_entry_author_name_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_author_name.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example author', $feed->getEntryByOffset(0)->author(0, 'name'));
+    }
+
+    function test_entry_author_uri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_author_uri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->getEntryByOffset(0)->author(0, 'url'));
+    }
+
+    function test_entry_author_url_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_author_url.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->getEntryByOffset(0)->author(0, 'url'));
+    }
+
+    function test_entry_category_label_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_category_label.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Atom 1.0 tests', $feed->getEntryByOffset(0)->tags(0, 'label'));
+    }
+
+    function test_entry_category_scheme_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_category_scheme.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://feedparser.org/tests/', $feed->getEntryByOffset(0)->tags(0, 'scheme'));
+    }
+
+    function test_entry_category_term_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_category_term.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('atom10', $feed->getEntryByOffset(0)->tags(0, 'term'));
+    }
+
+    function test_entry_content_application_xml_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_content_application_xml.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>Example <b>Atom</b></div>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_base64_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_content_base64.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_base64_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_content_base64_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<p>History of the &lt;blink&gt; tag</p>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_escaped_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_content_escaped_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_inline_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_content_inline_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>Example <b>Atom</b></div>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_inline_markup_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_content_inline_markup_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>History of the &lt;blink&gt; tag</div>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_src_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_content_src.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/movie.mp4', $feed->getEntryByOffset(0)->content(0, 'src'));
+    }
+
+    function test_entry_content_text_plain_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_content_text_plain.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_text_plain_brackets_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_content_text_plain_brackets.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('History of the <blink> tag', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_type_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_content_type.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->getEntryByOffset(0)->content(0, 'type'));
+    }
+
+    function test_entry_content_type_text_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_content_type_text.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->getEntryByOffset(0)->content(0, 'type'));
+    }
+
+    function test_entry_content_value_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_content_value.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_contributor_email_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_contributor_email.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('me@example.com', $feed->getEntryByOffset(0)->contributors(0, 'email'));
+    }
+
+    function test_entry_contributor_multiple_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_contributor_multiple.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(array('name' => 'Contributor 1', 'email' => 'me@example.com', 'href' => 'http://example.com/'), array('name' => 'Contributor 2', 'email' => 'you@example.com', 'href' => 'http://two.example.com/')), $feed->getEntryByOffset(0)->contributors);
+    }
+
+    function test_entry_contributor_name_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_contributor_name.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example contributor', $feed->getEntryByOffset(0)->contributors(0, 'name'));
+    }
+
+    function test_entry_contributor_uri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_contributor_uri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->getEntryByOffset(0)->contributors(0, 'url'));
+    }
+
+    function test_entry_contributor_url_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_contributor_url.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->getEntryByOffset(0)->contributors(0, 'url'));
+    }
+
+    function test_entry_id_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_id.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->getEntryByOffset(0)->id);
+    }
+
+    function test_entry_id_map_guid_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_id_map_guid.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->getEntryByOffset(0)->guid);
+    }
+
+    function test_entry_id_no_normalization_1_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_id_no_normalization_1.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.org/thing', $feed->getEntryByOffset(0)->id);
+    }
+
+    function test_entry_id_no_normalization_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_id_no_normalization_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.org/Thing', $feed->getEntryByOffset(0)->id);
+    }
+
+    function test_entry_id_no_normalization_3_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_id_no_normalization_3.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.EXAMPLE.org/thing', $feed->getEntryByOffset(0)->id);
+    }
+
+    function test_entry_id_no_normalization_4_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_id_no_normalization_4.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('HTTP://www.example.org/thing', $feed->getEntryByOffset(0)->id);
+    }
+
+    function test_entry_id_no_normalization_5_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_id_no_normalization_5.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.com/~bob', $feed->getEntryByOffset(0)->id);
+    }
+
+    function test_entry_id_no_normalization_6_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_id_no_normalization_6.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.com/%7ebob', $feed->getEntryByOffset(0)->id);
+    }
+
+    function test_entry_id_no_normalization_7_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_id_no_normalization_7.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.com/%7Ebob', $feed->getEntryByOffset(0)->id);
+    }
+
+    function test_entry_link_alternate_map_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_link_alternate_map_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.com/', $feed->getEntryByOffset(0)->link);
+    }
+
+    function test_entry_link_alternate_map_link_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_link_alternate_map_link_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.com/', $feed->getEntryByOffset(0)->link);
+    }
+
+    function test_entry_link_alternate_map_link_3_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_link_alternate_map_link_3.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.com/alternate', $feed->getEntryByOffset(0)->link);
+    }
+
+    function test_entry_link_href_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_link_href.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.com/', $feed->getEntryByOffset(0)->links(0, 'href'));
+    }
+
+    function test_entry_link_hreflang_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_link_hreflang.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->getEntryByOffset(0)->links(0, 'hreflang'));
+    }
+
+    function test_entry_link_length_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_link_length.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('42301', $feed->getEntryByOffset(0)->links(0, 'length'));
+    }
+
+    function test_entry_link_multiple_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_link_multiple.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(array('rel' => 'alternate', 'type' => 'application/xhtml+xml', 'href' => 'http://www.example.com/'), array('rel' => 'service.post', 'type' => 'application/atom+xml', 'href' => 'http://www.example.com/post')), $feed->getEntryByOffset(0)->links);
+    }
+
+    function test_entry_link_no_rel_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_link_no_rel.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('alternate', $feed->getEntryByOffset(0)->links(0, 'rel'));
+    }
+
+    function test_entry_link_rel_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_link_rel.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('alternate', $feed->getEntryByOffset(0)->links(0, 'rel'));
+    }
+
+    function test_entry_link_rel_enclosure_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_link_rel_enclosure.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('enclosure', $feed->getEntryByOffset(0)->links(0, 'rel'));
+    }
+
+    function test_entry_link_rel_enclosure_map_enclosure_length_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_link_rel_enclosure_map_enclosure_length.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('42301', $feed->getEntryByOffset(0)->enclosures(0, 'length'));
+    }
+
+    function test_entry_link_rel_enclosure_map_enclosure_type_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_link_rel_enclosure_map_enclosure_type.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('video/mpeg4', $feed->getEntryByOffset(0)->enclosures(0, 'type'));
+    }
+
+    function test_entry_link_rel_enclosure_map_enclosure_url_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_link_rel_enclosure_map_enclosure_url.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.com/movie.mp4', $feed->getEntryByOffset(0)->enclosures(0, 'href'));
+    }
+
+    function test_entry_link_rel_other_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_link_rel_other.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://feedparser.org/rel/test', $feed->getEntryByOffset(0)->links(0, 'rel'));
+    }
+
+    function test_entry_link_rel_related_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_link_rel_related.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('related', $feed->getEntryByOffset(0)->links(0, 'rel'));
+    }
+
+    function test_entry_link_rel_self_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_link_rel_self.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('self', $feed->getEntryByOffset(0)->links(0, 'rel'));
+    }
+
+    function test_entry_link_rel_via_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_link_rel_via.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('via', $feed->getEntryByOffset(0)->links(0, 'rel'));
+    }
+
+    function test_entry_link_title_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_link_title.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example title', $feed->getEntryByOffset(0)->links(0, 'title'));
+    }
+
+    function test_entry_link_type_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_link_type.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/html', $feed->getEntryByOffset(0)->links(0, 'type'));
+    }
+
+    function test_entry_rights_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_rights.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->getEntryByOffset(0)->rights);
+    }
+
+    function test_entry_rights_content_value_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_rights_content_value.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->getEntryByOffset(0)->rights);
+    }
+
+    function test_entry_rights_escaped_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_rights_escaped_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->getEntryByOffset(0)->rights);
+    }
+
+    function test_entry_rights_inline_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_rights_inline_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>Example <b>Atom</b></div>', $feed->getEntryByOffset(0)->rights);
+    }
+
+    function test_entry_rights_inline_markup_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_rights_inline_markup_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>History of the &lt;blink&gt; tag</div>', $feed->getEntryByOffset(0)->rights);
+    }
+
+    function test_entry_rights_text_plain_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_rights_text_plain.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->getEntryByOffset(0)->rights);
+    }
+
+    function test_entry_rights_text_plain_brackets_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_rights_text_plain_brackets.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('History of the <blink> tag', $feed->getEntryByOffset(0)->rights);
+    }
+
+    function test_entry_rights_type_default_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_rights_type_default.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->getEntryByOffset(0)->rights(0, 'type'));
+    }
+
+    function test_entry_rights_type_text_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_rights_type_text.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->getEntryByOffset(0)->rights(0, 'type'));
+    }
+
+    function test_entry_source_author_email_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_author_email.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('me@example.com', $feed->getEntryByOffset(0)->source(0, 'author(0, 'email')'));
+    }
+
+    function test_entry_source_author_map_author_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_author_map_author.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example author (me@example.com)', $feed->getEntryByOffset(0)->source(0, 'author'));
+    }
+
+    function test_entry_source_author_map_author_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_author_map_author_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example author', $feed->getEntryByOffset(0)->source(0, 'author'));
+    }
+
+    function test_entry_source_author_name_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_author_name.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example author', $feed->getEntryByOffset(0)->source(0, 'author(0, 'name')'));
+    }
+
+    function test_entry_source_author_uri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_author_uri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->getEntryByOffset(0)->source(0, 'author(0, 'url')'));
+    }
+
+    function test_entry_source_category_label_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_category_label.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Atom 1.0 tests', $feed->getEntryByOffset(0)->source(0, 'tags->label'));
+    }
+
+    function test_entry_source_category_scheme_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_category_scheme.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://feedparser.org/tests/', $feed->getEntryByOffset(0)->source(0, 'tags->scheme'));
+    }
+
+    function test_entry_source_category_term_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_category_term.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('atom10', $feed->getEntryByOffset(0)->source(0, 'tags->term'));
+    }
+
+    function test_entry_source_contributor_email_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_contributor_email.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('me@example.com', $feed->getEntryByOffset(0)->source(0, 'contributors->email'));
+    }
+
+    function test_entry_source_contributor_multiple_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_contributor_multiple.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(array('name' => 'Contributor 1', 'email' => 'me@example.com', 'href' => 'http://example.com/'), array('name' => 'Contributor 2', 'email' => 'you@example.com', 'href' => 'http://two.example.com/')), $feed->getEntryByOffset(0)->source(0, 'contributors'));
+    }
+
+    function test_entry_source_contributor_name_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_contributor_name.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example contributor', $feed->getEntryByOffset(0)->source(0, 'contributors->name'));
+    }
+
+    function test_entry_source_contributor_uri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_contributor_uri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->getEntryByOffset(0)->source(0, 'contributors->url'));
+    }
+
+    function test_entry_source_generator_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_generator.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example generator', $feed->getEntryByOffset(0)->source(0, 'generator'));
+    }
+
+    function test_entry_source_generator_name_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_generator_name.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example generator', $feed->getEntryByOffset(0)->source(0, 'generator(0, 'name')'));
+    }
+
+    function test_entry_source_generator_uri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_generator_uri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->getEntryByOffset(0)->source(0, 'generator(0, 'href')'));
+    }
+
+    function test_entry_source_generator_version_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_generator_version.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('2.65', $feed->getEntryByOffset(0)->source(0, 'generator(0, 'version')'));
+    }
+
+    function test_entry_source_icon_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_icon.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/favicon.ico', $feed->getEntryByOffset(0)->source(0, 'icon'));
+    }
+
+    function test_entry_source_id_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_id.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->getEntryByOffset(0)->source(0, 'id'));
+    }
+
+    function test_entry_source_link_alternate_map_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_link_alternate_map_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.com/', $feed->getEntryByOffset(0)->source(0, 'link'));
+    }
+
+    function test_entry_source_link_alternate_map_link_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_link_alternate_map_link_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.com/', $feed->getEntryByOffset(0)->source(0, 'link'));
+    }
+
+    function test_entry_source_link_href_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_link_href.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.com/', $feed->getEntryByOffset(0)->source(0, 'links->href'));
+    }
+
+    function test_entry_source_link_hreflang_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_link_hreflang.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->getEntryByOffset(0)->source(0, 'links->hreflang'));
+    }
+
+    function test_entry_source_link_length_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_link_length.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('42301', $feed->getEntryByOffset(0)->source(0, 'links->length'));
+    }
+
+    function test_entry_source_link_multiple_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_link_multiple.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(array('rel' => 'alternate', 'type' => 'application/xhtml+xml', 'href' => 'http://www.example.com/'), array('rel' => 'service.post', 'type' => 'application/atom+xml', 'href' => 'http://www.example.com/post')), $feed->getEntryByOffset(0)->source(0, 'links'));
+    }
+
+    function test_entry_source_link_no_rel_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_link_no_rel.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('alternate', $feed->getEntryByOffset(0)->source(0, 'links->rel'));
+    }
+
+    function test_entry_source_link_rel_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_link_rel.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('alternate', $feed->getEntryByOffset(0)->source(0, 'links->rel'));
+    }
+
+    function test_entry_source_link_rel_other_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_link_rel_other.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://feedparser.org/rel/test', $feed->getEntryByOffset(0)->source(0, 'links->rel'));
+    }
+
+    function test_entry_source_link_rel_related_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_link_rel_related.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('related', $feed->getEntryByOffset(0)->source(0, 'links->rel'));
+    }
+
+    function test_entry_source_link_rel_self_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_link_rel_self.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('self', $feed->getEntryByOffset(0)->source(0, 'links->rel'));
+    }
+
+    function test_entry_source_link_rel_via_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_link_rel_via.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('via', $feed->getEntryByOffset(0)->source(0, 'links->rel'));
+    }
+
+    function test_entry_source_link_title_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_link_title.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example title', $feed->getEntryByOffset(0)->source(0, 'links->title'));
+    }
+
+    function test_entry_source_link_type_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_link_type.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/html', $feed->getEntryByOffset(0)->source(0, 'links->type'));
+    }
+
+    function test_entry_source_logo_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_logo.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/logo.jpg', $feed->getEntryByOffset(0)->source(0, 'logo'));
+    }
+
+    function test_entry_source_rights_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_rights.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->getEntryByOffset(0)->source(0, 'rights'));
+    }
+
+    function test_entry_source_rights_base64_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_rights_base64.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->getEntryByOffset(0)->source(0, 'rights'));
+    }
+
+    function test_entry_source_rights_base64_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_rights_base64_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<p>History of the &lt;blink&gt; tag</p>', $feed->getEntryByOffset(0)->source(0, 'rights'));
+    }
+
+    function test_entry_source_rights_content_type_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_rights_content_type.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->getEntryByOffset(0)->source(0, 'rights(0, 'type')'));
+    }
+
+    function test_entry_source_rights_content_type_text_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_rights_content_type_text.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->getEntryByOffset(0)->source(0, 'rights(0, 'type')'));
+    }
+
+    function test_entry_source_rights_content_value_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_rights_content_value.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->getEntryByOffset(0)->source(0, 'rights'));
+    }
+
+    function test_entry_source_rights_escaped_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_rights_escaped_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->getEntryByOffset(0)->source(0, 'rights'));
+    }
+
+    function test_entry_source_rights_inline_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_rights_inline_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>Example <b>Atom</b></div>', $feed->getEntryByOffset(0)->source(0, 'rights'));
+    }
+
+    function test_entry_source_rights_inline_markup_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_rights_inline_markup_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>History of the &lt;blink&gt; tag</div>', $feed->getEntryByOffset(0)->source(0, 'rights'));
+    }
+
+    function test_entry_source_rights_text_plain_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_rights_text_plain.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->getEntryByOffset(0)->source(0, 'rights'));
+    }
+
+    function test_entry_source_subittle_content_type_text_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_subittle_content_type_text.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->getEntryByOffset(0)->source(0, 'subtitle(0, 'type')'));
+    }
+
+    function test_entry_source_subtitle_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_subtitle.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->getEntryByOffset(0)->source(0, 'subtitle'));
+    }
+
+    function test_entry_source_subtitle_base64_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_subtitle_base64.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->getEntryByOffset(0)->source(0, 'subtitle'));
+    }
+
+    function test_entry_source_subtitle_base64_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_subtitle_base64_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<p>History of the &lt;blink&gt; tag</p>', $feed->getEntryByOffset(0)->source(0, 'subtitle'));
+    }
+
+    function test_entry_source_subtitle_content_type_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_subtitle_content_type.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->getEntryByOffset(0)->source(0, 'subtitle(0, 'type')'));
+    }
+
+    function test_entry_source_subtitle_content_value_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_subtitle_content_value.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->getEntryByOffset(0)->source(0, 'subtitle'));
+    }
+
+    function test_entry_source_subtitle_escaped_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_subtitle_escaped_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->getEntryByOffset(0)->source(0, 'subtitle'));
+    }
+
+    function test_entry_source_subtitle_inline_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_subtitle_inline_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>Example <b>Atom</b></div>', $feed->getEntryByOffset(0)->source(0, 'subtitle'));
+    }
+
+    function test_entry_source_subtitle_inline_markup_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_subtitle_inline_markup_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>History of the &lt;blink&gt; tag</div>', $feed->getEntryByOffset(0)->source(0, 'subtitle'));
+    }
+
+    function test_entry_source_subtitle_text_plain_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_subtitle_text_plain.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->getEntryByOffset(0)->source(0, 'subtitle'));
+    }
+
+    function test_entry_source_title_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_title.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->getEntryByOffset(0)->source(0, 'title'));
+    }
+
+    function test_entry_source_title_base64_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_title_base64.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->getEntryByOffset(0)->source(0, 'title'));
+    }
+
+    function test_entry_source_title_base64_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_title_base64_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<p>History of the &lt;blink&gt; tag</p>', $feed->getEntryByOffset(0)->source(0, 'title'));
+    }
+
+    function test_entry_source_title_content_type_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_title_content_type.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->getEntryByOffset(0)->source(0, 'title(0, 'type')'));
+    }
+
+    function test_entry_source_title_content_type_text_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_title_content_type_text.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->getEntryByOffset(0)->source(0, 'title(0, 'type')'));
+    }
+
+    function test_entry_source_title_content_value_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_title_content_value.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->getEntryByOffset(0)->source(0, 'title'));
+    }
+
+    function test_entry_source_title_escaped_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_title_escaped_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->getEntryByOffset(0)->source(0, 'title'));
+    }
+
+    function test_entry_source_title_inline_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_title_inline_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>Example <b>Atom</b></div>', $feed->getEntryByOffset(0)->source(0, 'title'));
+    }
+
+    function test_entry_source_title_inline_markup_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_title_inline_markup_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>History of the &lt;blink&gt; tag</div>', $feed->getEntryByOffset(0)->source(0, 'title'));
+    }
+
+    function test_entry_source_title_text_plain_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_source_title_text_plain.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->getEntryByOffset(0)->source(0, 'title'));
+    }
+
+    function test_entry_summary_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_summary.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_base64_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_summary_base64.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_base64_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_summary_base64_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<p>History of the &lt;blink&gt; tag</p>', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_content_value_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_summary_content_value.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_escaped_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_summary_escaped_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_inline_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_summary_inline_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>Example <b>Atom</b></div>', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_inline_markup_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_summary_inline_markup_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>History of the &lt;blink&gt; tag</div>', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_text_plain_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_summary_text_plain.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_type_default_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_summary_type_default.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->getEntryByOffset(0)->summary(0, 'type'));
+    }
+
+    function test_entry_summary_type_text_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_summary_type_text.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->getEntryByOffset(0)->summary(0, 'type'));
+    }
+
+    function test_entry_title_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_title.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_base64_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_title_base64.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_base64_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_title_base64_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<p>History of the &lt;blink&gt; tag</p>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_content_value_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_title_content_value.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_escaped_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_title_escaped_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_inline_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_title_inline_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>Example <b>Atom</b></div>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_inline_markup_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_title_inline_markup_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>History of the &lt;blink&gt; tag</div>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_text_plain_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_title_text_plain.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_text_plain_brackets_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_title_text_plain_brackets.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('History of the <blink> tag', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_type_default_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_title_type_default.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->getEntryByOffset(0)->title(0, 'type'));
+    }
+
+    function test_entry_title_type_text_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/entry_title_type_text.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->getEntryByOffset(0)->title(0, 'type'));
+    }
+
+    function test_feed_author_email_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_author_email.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('me@example.com', $feed->author(0, 'email'));
+    }
+
+    function test_feed_author_map_author_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_author_map_author.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example author (me@example.com)', $feed->author);
+    }
+
+    function test_feed_author_map_author_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_author_map_author_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example author', $feed->author);
+    }
+
+    function test_feed_author_name_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_author_name.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example author', $feed->author(0, 'name'));
+    }
+
+    function test_feed_author_uri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_author_uri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->author(0, 'url'));
+    }
+
+    function test_feed_author_url_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_author_url.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->author(0, 'url'));
+    }
+
+    function test_feed_contributor_email_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_contributor_email.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('me@example.com', $feed->contributors(0, 'email'));
+    }
+
+    function test_feed_contributor_multiple_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_contributor_multiple.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(array('name' => 'Contributor 1', 'email' => 'me@example.com', 'href' => 'http://example.com/'), array('name' => 'Contributor 2', 'email' => 'you@example.com', 'href' => 'http://two.example.com/')), $feed->contributors);
+    }
+
+    function test_feed_contributor_name_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_contributor_name.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example contributor', $feed->contributors(0, 'name'));
+    }
+
+    function test_feed_contributor_uri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_contributor_uri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->contributors(0, 'url'));
+    }
+
+    function test_feed_contributor_url_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_contributor_url.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->contributors(0, 'url'));
+    }
+
+    function test_feed_generator_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_generator.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example generator', $feed->generator);
+    }
+
+    function test_feed_generator_name_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_generator_name.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example generator', $feed->generator(0, 'name'));
+    }
+
+    function test_feed_generator_url_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_generator_url.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->generator(0, 'href'));
+    }
+
+    function test_feed_generator_version_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_generator_version.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('2.65', $feed->generator(0, 'version'));
+    }
+
+    function test_feed_icon_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_icon.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/favicon.ico', $feed->icon);
+    }
+
+    function test_feed_id_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_id.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->id);
+    }
+
+    function test_feed_id_map_guid_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_id_map_guid.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->guid);
+    }
+
+    function test_feed_link_alternate_map_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_link_alternate_map_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.com/', $feed->link);
+    }
+
+    function test_feed_link_alternate_map_link_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_link_alternate_map_link_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.com/', $feed->link);
+    }
+
+    function test_feed_link_href_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_link_href.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.com/', $feed->links(0, 'href'));
+    }
+
+    function test_feed_link_hreflang_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_link_hreflang.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->links(0, 'hreflang'));
+    }
+
+    function test_feed_link_length_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_link_length.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('42301', $feed->links(0, 'length'));
+    }
+
+    function test_feed_link_multiple_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_link_multiple.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array(array('rel' => 'alternate', 'type' => 'application/xhtml+xml', 'href' => 'http://www.example.com/'), array('rel' => 'service.post', 'type' => 'application/atom+xml', 'href' => 'http://www.example.com/post')), $feed->links);
+    }
+
+    function test_feed_link_no_rel_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_link_no_rel.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('alternate', $feed->links(0, 'rel'));
+    }
+
+    function test_feed_link_rel_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_link_rel.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('alternate', $feed->links(0, 'rel'));
+    }
+
+    function test_feed_link_rel_other_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_link_rel_other.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://feedparser.org/rel/test', $feed->links(0, 'rel'));
+    }
+
+    function test_feed_link_rel_related_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_link_rel_related.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('related', $feed->links(0, 'rel'));
+    }
+
+    function test_feed_link_rel_self_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_link_rel_self.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('self', $feed->links(0, 'rel'));
+    }
+
+    function test_feed_link_rel_via_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_link_rel_via.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('via', $feed->links(0, 'rel'));
+    }
+
+    function test_feed_link_title_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_link_title.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example title', $feed->links(0, 'title'));
+    }
+
+    function test_feed_link_type_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_link_type.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/html', $feed->links(0, 'type'));
+    }
+
+    function test_feed_logo_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_logo.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/logo.jpg', $feed->logo);
+    }
+
+    function test_feed_rights_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_rights.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->rights);
+    }
+
+    function test_feed_rights_base64_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_rights_base64.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->rights);
+    }
+
+    function test_feed_rights_base64_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_rights_base64_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<p>History of the &lt;blink&gt; tag</p>', $feed->rights);
+    }
+
+    function test_feed_rights_content_type_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_rights_content_type.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->rights(0, 'type'));
+    }
+
+    function test_feed_rights_content_type_text_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_rights_content_type_text.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->rights(0, 'type'));
+    }
+
+    function test_feed_rights_content_value_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_rights_content_value.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->rights);
+    }
+
+    function test_feed_rights_escaped_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_rights_escaped_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->rights);
+    }
+
+    function test_feed_rights_inline_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_rights_inline_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>Example <b>Atom</b></div>', $feed->rights);
+    }
+
+    function test_feed_rights_inline_markup_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_rights_inline_markup_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>History of the &lt;blink&gt; tag</div>', $feed->rights);
+    }
+
+    function test_feed_rights_text_plain_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_rights_text_plain.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->rights);
+    }
+
+    function test_feed_subtitle_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_subtitle.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->subtitle);
+    }
+
+    function test_feed_subtitle_base64_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_subtitle_base64.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->subtitle);
+    }
+
+    function test_feed_subtitle_base64_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_subtitle_base64_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<p>History of the &lt;blink&gt; tag</p>', $feed->subtitle);
+    }
+
+    function test_feed_subtitle_content_type_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_subtitle_content_type.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->subtitle(0, 'type'));
+    }
+
+    function test_feed_subtitle_content_type_text_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_subtitle_content_type_text.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->subtitle(0, 'type'));
+    }
+
+    function test_feed_subtitle_content_value_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_subtitle_content_value.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->subtitle);
+    }
+
+    function test_feed_subtitle_escaped_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_subtitle_escaped_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->subtitle);
+    }
+
+    function test_feed_subtitle_inline_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_subtitle_inline_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>Example <b>Atom</b></div>', $feed->subtitle);
+    }
+
+    function test_feed_subtitle_inline_markup_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_subtitle_inline_markup_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>History of the &lt;blink&gt; tag</div>', $feed->subtitle);
+    }
+
+    function test_feed_subtitle_text_plain_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_subtitle_text_plain.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->subtitle);
+    }
+
+    function test_feed_title_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_title.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->title);
+    }
+
+    function test_feed_title_base64_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_title_base64.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->title);
+    }
+
+    function test_feed_title_base64_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_title_base64_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<p>History of the &lt;blink&gt; tag</p>', $feed->title);
+    }
+
+    function test_feed_title_content_type_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_title_content_type.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->title(0, 'type'));
+    }
+
+    function test_feed_title_content_type_text_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_title_content_type_text.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/plain', $feed->title(0, 'type'));
+    }
+
+    function test_feed_title_content_value_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_title_content_value.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->title);
+    }
+
+    function test_feed_title_escaped_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_title_escaped_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example <b>Atom</b>', $feed->title);
+    }
+
+    function test_feed_title_inline_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_title_inline_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>Example <b>Atom</b></div>', $feed->title);
+    }
+
+    function test_feed_title_inline_markup_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_title_inline_markup_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>History of the &lt;blink&gt; tag</div>', $feed->title);
+    }
+
+    function test_feed_title_text_plain_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/feed_title_text_plain.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example Atom', $feed->title);
+    }
+
+    function test_relative_uri_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/relative_uri.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>Example <a href="http://example.com/test/test.html">test</a></div>', $feed->title);
+    }
+
+    function test_relative_uri_inherit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/relative_uri_inherit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>Example <a href="http://example.com/test/test.html">test</a></div>', $feed->title);
+    }
+
+    function test_relative_uri_inherit_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/atom10/relative_uri_inherit_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>Example <a href="http://example.com/test/test.html">test</a></div>', $feed->title);
+    }
+}
+
+$suite = new PHPUnit_TestSuite('atom10_TestCase');
+$result = PHPUnit::run($suite, '123');
+echo $result->toString();
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/feedburner.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/feedburner.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/feedburner.php	(revision 14612)
@@ -0,0 +1,23 @@
+<?php
+
+require_once 'XML_Feed_Parser_TestCase.php';
+
+class feedburner_TestCase extends XML_Feed_Parser_Converted_TestCase {
+
+    function test_feedburner_browserfriendly_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/feedburner/feedburner_browserfriendly.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('This is an XML content feed. It is intended to be viewed in a newsreader or syndicated to another site.', $feed->info);
+    }
+}
+
+$suite = new PHPUnit_TestSuite('feedburner_TestCase');
+$result = PHPUnit::run($suite, '123');
+echo $result->toString();
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/lang.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/lang.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/lang.php	(revision 14612)
@@ -0,0 +1,705 @@
+<?php
+
+require_once 'XML_Feed_Parser_TestCase.php';
+
+class lang_TestCase extends XML_Feed_Parser_Converted_TestCase {
+
+    function test_channel_dc_language_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/channel_dc_language.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->language);
+    }
+
+    function test_channel_language_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/channel_language.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en-us', $feed->language);
+    }
+
+    function test_entry_content_xml_lang_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/entry_content_xml_lang.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->getEntryByOffset(0)->content(0, 'language'));
+    }
+
+    function test_entry_content_xml_lang_blank_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/entry_content_xml_lang_blank.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(None, $feed->getEntryByOffset(0)->content(0, 'language'));
+    }
+
+    function test_entry_content_xml_lang_blank_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/entry_content_xml_lang_blank_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(None, $feed->getEntryByOffset(0)->content(0, 'language'));
+    }
+
+    function test_entry_content_xml_lang_blank_3_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/entry_content_xml_lang_blank_3.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->getEntryByOffset(1)->content->language);
+    }
+
+    function test_entry_content_xml_lang_inherit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/entry_content_xml_lang_inherit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->getEntryByOffset(0)->content(0, 'language'));
+    }
+
+    function test_entry_content_xml_lang_inherit_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/entry_content_xml_lang_inherit_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->getEntryByOffset(0)->content(0, 'language'));
+    }
+
+    function test_entry_content_xml_lang_inherit_3_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/entry_content_xml_lang_inherit_3.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->getEntryByOffset(0)->content(0, 'language'));
+    }
+
+    function test_entry_content_xml_lang_inherit_4_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/entry_content_xml_lang_inherit_4.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->getEntryByOffset(0)->content(0, 'language'));
+    }
+
+    function test_entry_summary_xml_lang_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/entry_summary_xml_lang.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->getEntryByOffset(0)->summary(0, 'language'));
+    }
+
+    function test_entry_summary_xml_lang_blank_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/entry_summary_xml_lang_blank.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(None, $feed->getEntryByOffset(0)->summary(0, 'language'));
+    }
+
+    function test_entry_summary_xml_lang_inherit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/entry_summary_xml_lang_inherit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->getEntryByOffset(0)->summary(0, 'language'));
+    }
+
+    function test_entry_summary_xml_lang_inherit_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/entry_summary_xml_lang_inherit_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->getEntryByOffset(0)->summary(0, 'language'));
+    }
+
+    function test_entry_summary_xml_lang_inherit_3_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/entry_summary_xml_lang_inherit_3.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->getEntryByOffset(0)->summary(0, 'language'));
+    }
+
+    function test_entry_summary_xml_lang_inherit_4_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/entry_summary_xml_lang_inherit_4.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->getEntryByOffset(0)->summary(0, 'language'));
+    }
+
+    function test_entry_title_xml_lang_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/entry_title_xml_lang.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->getEntryByOffset(0)->title(0, 'language'));
+    }
+
+    function test_entry_title_xml_lang_blank_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/entry_title_xml_lang_blank.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(None, $feed->getEntryByOffset(0)->title(0, 'language'));
+    }
+
+    function test_entry_title_xml_lang_inherit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/entry_title_xml_lang_inherit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->getEntryByOffset(0)->title(0, 'language'));
+    }
+
+    function test_entry_title_xml_lang_inherit_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/entry_title_xml_lang_inherit_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->getEntryByOffset(0)->title(0, 'language'));
+    }
+
+    function test_entry_title_xml_lang_inherit_3_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/entry_title_xml_lang_inherit_3.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->getEntryByOffset(0)->title(0, 'language'));
+    }
+
+    function test_entry_title_xml_lang_inherit_4_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/entry_title_xml_lang_inherit_4.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->getEntryByOffset(0)->title(0, 'language'));
+    }
+
+    function test_feed_copyright_xml_lang_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_copyright_xml_lang.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->copyright(0, 'language'));
+    }
+
+    function test_feed_copyright_xml_lang_blank_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_copyright_xml_lang_blank.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(None, $feed->copyright(0, 'language'));
+    }
+
+    function test_feed_copyright_xml_lang_inherit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_copyright_xml_lang_inherit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->copyright(0, 'language'));
+    }
+
+    function test_feed_copyright_xml_lang_inherit_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_copyright_xml_lang_inherit_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->copyright(0, 'language'));
+    }
+
+    function test_feed_copyright_xml_lang_inherit_3_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_copyright_xml_lang_inherit_3.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->copyright(0, 'language'));
+    }
+
+    function test_feed_copyright_xml_lang_inherit_4_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_copyright_xml_lang_inherit_4.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->copyright(0, 'language'));
+    }
+
+    function test_feed_info_xml_lang_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_info_xml_lang.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->info(0, 'language'));
+    }
+
+    function test_feed_info_xml_lang_blank_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_info_xml_lang_blank.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(None, $feed->info(0, 'language'));
+    }
+
+    function test_feed_info_xml_lang_inherit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_info_xml_lang_inherit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->info(0, 'language'));
+    }
+
+    function test_feed_info_xml_lang_inherit_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_info_xml_lang_inherit_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->info(0, 'language'));
+    }
+
+    function test_feed_info_xml_lang_inherit_3_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_info_xml_lang_inherit_3.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->info(0, 'language'));
+    }
+
+    function test_feed_info_xml_lang_inherit_4_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_info_xml_lang_inherit_4.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->info(0, 'language'));
+    }
+
+    function test_feed_language_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_language.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->language);
+    }
+
+    function test_feed_language_override_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_language_override.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->language);
+    }
+
+    function test_feed_not_xml_lang_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_not_xml_lang.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->language);
+    }
+
+    function test_feed_not_xml_lang_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_not_xml_lang_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, ! $feed.has_key(->));
+    }
+
+    function test_feed_tagline_xml_lang_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_tagline_xml_lang.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->tagline(0, 'language'));
+    }
+
+    function test_feed_tagline_xml_lang_blank_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_tagline_xml_lang_blank.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(None, $feed->tagline(0, 'language'));
+    }
+
+    function test_feed_tagline_xml_lang_inherit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_tagline_xml_lang_inherit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->tagline(0, 'language'));
+    }
+
+    function test_feed_tagline_xml_lang_inherit_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_tagline_xml_lang_inherit_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('fr', $feed->tagline(0, 'language'));
+    }
+
+    function test_feed_tagline_xml_lang_inherit_3_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_tagline_xml_lang_inherit_3.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('de', $feed->tagline(0, 'language'));
+    }
+
+    function test_feed_tagline_xml_lang_inherit_4_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_tagline_xml_lang_inherit_4.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->tagline(0, 'language'));
+    }
+
+    function test_feed_title_xml_lang_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_title_xml_lang.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->title(0, 'language'));
+    }
+
+    function test_feed_title_xml_lang_blank_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_title_xml_lang_blank.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(None, $feed->title(0, 'language'));
+    }
+
+    function test_feed_title_xml_lang_inherit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_title_xml_lang_inherit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('de', $feed->title(0, 'language'));
+    }
+
+    function test_feed_title_xml_lang_inherit_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_title_xml_lang_inherit_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('de', $feed->title(0, 'language'));
+    }
+
+    function test_feed_title_xml_lang_inherit_3_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_title_xml_lang_inherit_3.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('de', $feed->title(0, 'language'));
+    }
+
+    function test_feed_title_xml_lang_inherit_4_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_title_xml_lang_inherit_4.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->title(0, 'language'));
+    }
+
+    function test_feed_xml_lang_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/feed_xml_lang.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->language);
+    }
+
+    function test_http_content_language_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/http_content_language.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->language);
+    }
+
+    function test_http_content_language_entry_title_inherit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/http_content_language_entry_title_inherit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->getEntryByOffset(0)->title(0, 'language'));
+    }
+
+    function test_http_content_language_entry_title_inherit_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/http_content_language_entry_title_inherit_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->getEntryByOffset(0)->title(0, 'language'));
+    }
+
+    function test_http_content_language_feed_language_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/http_content_language_feed_language.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('fr', $feed->language);
+    }
+
+    function test_http_content_language_feed_xml_lang_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/http_content_language_feed_xml_lang.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('fr', $feed->language);
+    }
+
+    function test_item_content_encoded_xml_lang_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/item_content_encoded_xml_lang.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->getEntryByOffset(0)->content(0, 'language'));
+    }
+
+    function test_item_content_encoded_xml_lang_inherit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/item_content_encoded_xml_lang_inherit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->getEntryByOffset(0)->content(0, 'language'));
+    }
+
+    function test_item_dc_language_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/item_dc_language.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->getEntryByOffset(0)->language);
+    }
+
+    function test_item_fullitem_xml_lang_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/item_fullitem_xml_lang.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->getEntryByOffset(0)->content(0, 'language'));
+    }
+
+    function test_item_fullitem_xml_lang_inherit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/item_fullitem_xml_lang_inherit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->getEntryByOffset(0)->content(0, 'language'));
+    }
+
+    function test_item_xhtml_body_xml_lang_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/item_xhtml_body_xml_lang.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->getEntryByOffset(0)->content(0, 'language'));
+    }
+
+    function test_item_xhtml_body_xml_lang_inherit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/lang/item_xhtml_body_xml_lang_inherit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('en', $feed->getEntryByOffset(0)->content(0, 'language'));
+    }
+}
+
+$suite = new PHPUnit_TestSuite('lang_TestCase');
+$result = PHPUnit::run($suite, '123');
+echo $result->toString();
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/encoding.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/encoding.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/encoding.php	(revision 14612)
@@ -0,0 +1,1772 @@
+<?php
+
+require_once 'XML_Feed_Parser_TestCase.php';
+
+class encoding_TestCase extends XML_Feed_Parser_Converted_TestCase {
+
+    function test_csucs4_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/csucs4.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_csunicode_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/csunicode.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_encoding_attribute_crash_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/encoding_attribute_crash.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, 1);
+    }
+
+    function test_encoding_attribute_crash_2_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/encoding_attribute_crash_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, 1);
+    }
+
+    function test_euc-kr-attribute_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/euc-kr-attribute.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img alt="\ub144" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_euc-kr-item_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/euc-kr-item.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\ub144', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_euc-kr_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/euc-kr.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\ub144', $feed->title);
+    }
+
+    function test_http_text_xml_charset_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/http_text_xml_charset_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('This is a \xa3\u201ctest.\u201d', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_http_text_xml_charset_overrides_encoding_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/http_text_xml_charset_overrides_encoding_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('This is a \xa3\u201ctest.\u201d', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_iso-10646-ucs-2_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/iso-10646-ucs-2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_iso-10646-ucs-4_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/iso-10646-ucs-4.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_u16_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/u16.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_ucs-2_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/ucs-2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_ucs-4_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/ucs-4.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_utf-16be-autodetect_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-16be-autodetect.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_utf-16be-bom_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-16be-bom.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_utf-16be_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-16be.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_utf-16le-autodetect_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-16le-autodetect.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_utf-16le-bom_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-16le-bom.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_utf-16le_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-16le.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_utf-32be-autodetect_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-32be-autodetect.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_utf-32be-bom_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-32be-bom.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_utf-32be_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-32be.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_utf-32le-autodetect_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-32le-autodetect.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_utf-32le-bom_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-32le-bom.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_utf-32le_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-32le.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_utf16_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf16.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_utf_16_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf_16.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_utf_32_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf_32.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_x80_437_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_437.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_850_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_850.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_852_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_852.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_855_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_855.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u0452', $feed->title);
+    }
+
+    function test_x80_857_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_857.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_860_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_860.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_861_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_861.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_862_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_862.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u05d0', $feed->title);
+    }
+
+    function test_x80_863_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_863.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_865_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_865.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_866_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_866.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u0410', $feed->title);
+    }
+
+    function test_x80_cp037_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp037.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_x80_cp1125_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp1125.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u0410', $feed->title);
+    }
+
+    function test_x80_cp1250_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp1250.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_cp1251_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp1251.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u0402', $feed->title);
+    }
+
+    function test_x80_cp1252_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp1252.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_cp1253_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp1253.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_cp1254_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp1254.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_cp1255_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp1255.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_cp1256_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp1256.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_cp1257_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp1257.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_cp1258_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp1258.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_cp437_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp437.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_cp500_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp500.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_x80_cp737_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp737.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u0391', $feed->title);
+    }
+
+    function test_x80_cp775_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp775.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u0106', $feed->title);
+    }
+
+    function test_x80_cp850_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp850.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_cp852_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp852.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_cp855_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp855.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u0452', $feed->title);
+    }
+
+    function test_x80_cp856_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp856.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u05d0', $feed->title);
+    }
+
+    function test_x80_cp857_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp857.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_cp860_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp860.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_cp861_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp861.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_cp862_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp862.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u05d0', $feed->title);
+    }
+
+    function test_x80_cp863_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp863.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_cp864_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp864.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xb0', $feed->title);
+    }
+
+    function test_x80_cp865_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp865.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_cp866_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp866.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u0410', $feed->title);
+    }
+
+    function test_x80_cp874_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp874.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_cp875_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp875.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_x80_cp_is_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp_is.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_csibm037_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csibm037.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_x80_csibm500_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csibm500.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_x80_csibm855_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csibm855.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u0452', $feed->title);
+    }
+
+    function test_x80_csibm857_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csibm857.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_csibm860_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csibm860.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_csibm861_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csibm861.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_csibm863_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csibm863.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_csibm864_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csibm864.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xb0', $feed->title);
+    }
+
+    function test_x80_csibm865_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csibm865.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_csibm866_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csibm866.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u0410', $feed->title);
+    }
+
+    function test_x80_cskoi8r_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cskoi8r.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u2500', $feed->title);
+    }
+
+    function test_x80_csmacintosh_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csmacintosh.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc4', $feed->title);
+    }
+
+    function test_x80_cspc775baltic_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cspc775baltic.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u0106', $feed->title);
+    }
+
+    function test_x80_cspc850multilingual_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cspc850multilingual.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_cspc862latinhebrew_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cspc862latinhebrew.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u05d0', $feed->title);
+    }
+
+    function test_x80_cspc8codepage437_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cspc8codepage437.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_cspcp852_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cspcp852.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_dbcs_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_dbcs.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_ebcdic-cp-be_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ebcdic-cp-be.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_x80_ebcdic-cp-ca_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ebcdic-cp-ca.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_x80_ebcdic-cp-ch_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ebcdic-cp-ch.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_x80_ebcdic-cp-nl_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ebcdic-cp-nl.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_x80_ebcdic-cp-us_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ebcdic-cp-us.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_x80_ebcdic-cp-wt_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ebcdic-cp-wt.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_x80_ebcdic_cp_be_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ebcdic_cp_be.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_x80_ebcdic_cp_ca_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ebcdic_cp_ca.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_x80_ebcdic_cp_ch_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ebcdic_cp_ch.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_x80_ebcdic_cp_nl_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ebcdic_cp_nl.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_x80_ebcdic_cp_us_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ebcdic_cp_us.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_x80_ebcdic_cp_wt_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ebcdic_cp_wt.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_x80_ibm037_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm037.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_x80_ibm039_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm039.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_x80_ibm1140_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm1140.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_x80_ibm437_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm437.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_ibm500_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm500.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, );
+    }
+
+    function test_x80_ibm775_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm775.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u0106', $feed->title);
+    }
+
+    function test_x80_ibm850_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm850.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_ibm852_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm852.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_ibm855_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm855.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u0452', $feed->title);
+    }
+
+    function test_x80_ibm857_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm857.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_ibm860_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm860.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_ibm861_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm861.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_ibm862_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm862.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u05d0', $feed->title);
+    }
+
+    function test_x80_ibm863_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm863.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_ibm864_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm864.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xb0', $feed->title);
+    }
+
+    function test_x80_ibm865_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm865.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc7', $feed->title);
+    }
+
+    function test_x80_ibm866_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm866.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u0410', $feed->title);
+    }
+
+    function test_x80_koi8-r_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_koi8-r.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u2500', $feed->title);
+    }
+
+    function test_x80_koi8-t_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_koi8-t.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u049b', $feed->title);
+    }
+
+    function test_x80_koi8-u_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_koi8-u.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u2500', $feed->title);
+    }
+
+    function test_x80_mac-cyrillic_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_mac-cyrillic.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u0410', $feed->title);
+    }
+
+    function test_x80_mac_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_mac.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc4', $feed->title);
+    }
+
+    function test_x80_maccentraleurope_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_maccentraleurope.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc4', $feed->title);
+    }
+
+    function test_x80_maccyrillic_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_maccyrillic.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u0410', $feed->title);
+    }
+
+    function test_x80_macgreek_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_macgreek.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc4', $feed->title);
+    }
+
+    function test_x80_maciceland_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_maciceland.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc4', $feed->title);
+    }
+
+    function test_x80_macintosh_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_macintosh.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc4', $feed->title);
+    }
+
+    function test_x80_maclatin2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_maclatin2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc4', $feed->title);
+    }
+
+    function test_x80_macroman_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_macroman.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc4', $feed->title);
+    }
+
+    function test_x80_macturkish_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_macturkish.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc4', $feed->title);
+    }
+
+    function test_x80_ms-ansi_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ms-ansi.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_ms-arab_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ms-arab.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_ms-cyrl_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ms-cyrl.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u0402', $feed->title);
+    }
+
+    function test_x80_ms-ee_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ms-ee.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_ms-greek_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ms-greek.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_ms-hebr_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ms-hebr.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_ms-turk_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ms-turk.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_tcvn-5712_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_tcvn-5712.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc0', $feed->title);
+    }
+
+    function test_x80_tcvn_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_tcvn.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc0', $feed->title);
+    }
+
+    function test_x80_tcvn5712-1_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_tcvn5712-1.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\xc0', $feed->title);
+    }
+
+    function test_x80_viscii_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_viscii.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u1ea0', $feed->title);
+    }
+
+    function test_x80_winbaltrim_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_winbaltrim.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_windows-1250_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows-1250.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_windows-1251_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows-1251.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u0402', $feed->title);
+    }
+
+    function test_x80_windows-1252_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows-1252.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_windows-1253_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows-1253.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_windows-1254_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows-1254.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_windows-1255_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows-1255.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_windows-1256_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows-1256.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_windows-1257_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows-1257.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_windows-1258_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows-1258.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_windows_1250_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows_1250.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_windows_1251_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows_1251.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u0402', $feed->title);
+    }
+
+    function test_x80_windows_1252_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows_1252.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_windows_1253_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows_1253.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_windows_1254_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows_1254.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_windows_1255_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows_1255.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_windows_1256_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows_1256.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_windows_1257_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows_1257.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+
+    function test_x80_windows_1258_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows_1258.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('\u20ac', $feed->title);
+    }
+}
+
+$suite = new PHPUnit_TestSuite('encoding_TestCase');
+$result = PHPUnit::run($suite, '123');
+echo $result->toString();
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/sanitize.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/sanitize.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/sanitize.php	(revision 14612)
@@ -0,0 +1,4599 @@
+<?php
+
+require_once 'XML_Feed_Parser_TestCase.php';
+
+class sanitize_TestCase extends XML_Feed_Parser_Converted_TestCase {
+
+    function test_entry_content_applet_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_applet.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe <b>description</b>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_blink_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_blink.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_crazy_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_crazy.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Crazy HTML -' + '- Can Your Regex Parse This?\n\n\n\n<!-' + '- <script> -' + '->\n\n<!-' + '- \n\t<script> \n-' + '->\n\n\n\nfunction executeMe()\n{\n\n\n\n\n/* \n<h1>Did The Javascript Execute?</h1>\n<div>\nI will execute here, too, if you mouse over me\n</div>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_embed_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_embed.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe <b>description</b>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_frame_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_frame.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe <b>description</b>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_iframe_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_iframe.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe <b>description</b>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe <b>description</b>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_meta_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_meta.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe <b>description</b>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_object_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_object.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe <b>description</b>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_onabort_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_onabort.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_onblur_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_onblur.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_onchange_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_onchange.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_onclick_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_onclick.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_ondblclick_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_ondblclick.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_onerror_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_onerror.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_onfocus_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_onfocus.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_onkeydown_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_onkeydown.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_onkeypress_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_onkeypress.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_onkeyup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_onkeyup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_onload_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_onload.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_onmousedown_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_onmousedown.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_onmouseout_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_onmouseout.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_onmouseover_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_onmouseover.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_onmouseup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_onmouseup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_onreset_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_onreset.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_onresize_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_onresize.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_onsubmit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_onsubmit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_onunload_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_onunload.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_script_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_script.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_script_base64_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_script_base64.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_script_cdata_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_script_cdata.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_script_inline_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_script_inline.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>safe description</div>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_content_style_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_content_style.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<a href="http://www.ragingplatypus.com/">never trust your upstream platypus</a>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_entry_summary_applet_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_applet.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_blink_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_blink.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_crazy_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_crazy.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Crazy HTML -' + '- Can Your Regex Parse This?\n\n\n\n<!-' + '- <script> -' + '->\n\n<!-' + '- \n\t<script> \n-' + '->\n\n\n\nfunction executeMe()\n{\n\n\n\n\n/* \n<h1>Did The Javascript Execute?</h1>\n<div>\nI will execute here, too, if you mouse over me\n</div>', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_embed_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_embed.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_frame_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_frame.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_iframe_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_iframe.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_meta_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_meta.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_object_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_object.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_onabort_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_onabort.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_onblur_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_onblur.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_onchange_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_onchange.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_onclick_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_onclick.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_ondblclick_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_ondblclick.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_onerror_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_onerror.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_onfocus_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_onfocus.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_onkeydown_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_onkeydown.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_onkeypress_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_onkeypress.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_onkeyup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_onkeyup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_onload_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_onload.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_onmousedown_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_onmousedown.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_onmouseout_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_onmouseout.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_onmouseover_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_onmouseover.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_onmouseup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_onmouseup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_onreset_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_onreset.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_onresize_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_onresize.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_onsubmit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_onsubmit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_onunload_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_onunload.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_script_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_script.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_script_base64_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_script_base64.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_script_cdata_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_script_cdata.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_script_inline_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_script_inline.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>safe description</div>', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_summary_script_map_description_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_script_map_description.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_entry_summary_style_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_summary_style.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<a href="http://www.ragingplatypus.com/">never trust your upstream platypus</a>', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_entry_title_applet_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_applet.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_blink_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_blink.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_crazy_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_crazy.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Crazy HTML -' + '- Can Your Regex Parse This?\n\n\n\n<!-' + '- <script> -' + '->\n\n<!-' + '- \n\t<script> \n-' + '->\n\n\n\nfunction executeMe()\n{\n\n\n\n\n/* \n<h1>Did The Javascript Execute?</h1>\n<div>\nI will execute here, too, if you mouse over me\n</div>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_embed_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_embed.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_frame_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_frame.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_iframe_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_iframe.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_meta_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_meta.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_object_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_object.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_onabort_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_onabort.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_onblur_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_onblur.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_onchange_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_onchange.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_onclick_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_onclick.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_ondblclick_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_ondblclick.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_onerror_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_onerror.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_onfocus_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_onfocus.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_onkeydown_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_onkeydown.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_onkeypress_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_onkeypress.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_onkeyup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_onkeyup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_onload_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_onload.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_onmousedown_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_onmousedown.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_onmouseout_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_onmouseout.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_onmouseover_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_onmouseover.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_onmouseup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_onmouseup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_onreset_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_onreset.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_onresize_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_onresize.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_onsubmit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_onsubmit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_onunload_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_onunload.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_script_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_script.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_script_cdata_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_script_cdata.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_script_inline_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_script_inline.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>safe description</div>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_entry_title_style_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/entry_title_style.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<a href="http://www.ragingplatypus.com/">never trust your upstream platypus</a>', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_feed_copyright_applet_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_applet.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->copyright);
+    }
+
+    function test_feed_copyright_blink_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_blink.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->copyright);
+    }
+
+    function test_feed_copyright_crazy_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_crazy.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Crazy HTML -' + '- Can Your Regex Parse This?\n\n\n\n<!-' + '- <script> -' + '->\n\n<!-' + '- \n\t<script> \n-' + '->\n\n\n\nfunction executeMe()\n{\n\n\n\n\n/* \n<h1>Did The Javascript Execute?</h1>\n<div>\nI will execute here, too, if you mouse over me\n</div>', $feed->copyright);
+    }
+
+    function test_feed_copyright_embed_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_embed.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->copyright);
+    }
+
+    function test_feed_copyright_frame_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_frame.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->copyright);
+    }
+
+    function test_feed_copyright_iframe_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_iframe.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->copyright);
+    }
+
+    function test_feed_copyright_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->copyright);
+    }
+
+    function test_feed_copyright_meta_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_meta.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->copyright);
+    }
+
+    function test_feed_copyright_object_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_object.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->copyright);
+    }
+
+    function test_feed_copyright_onabort_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_onabort.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->copyright);
+    }
+
+    function test_feed_copyright_onblur_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_onblur.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->copyright);
+    }
+
+    function test_feed_copyright_onchange_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_onchange.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->copyright);
+    }
+
+    function test_feed_copyright_onclick_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_onclick.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->copyright);
+    }
+
+    function test_feed_copyright_ondblclick_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_ondblclick.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->copyright);
+    }
+
+    function test_feed_copyright_onerror_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_onerror.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->copyright);
+    }
+
+    function test_feed_copyright_onfocus_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_onfocus.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->copyright);
+    }
+
+    function test_feed_copyright_onkeydown_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_onkeydown.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->copyright);
+    }
+
+    function test_feed_copyright_onkeypress_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_onkeypress.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->copyright);
+    }
+
+    function test_feed_copyright_onkeyup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_onkeyup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->copyright);
+    }
+
+    function test_feed_copyright_onload_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_onload.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->copyright);
+    }
+
+    function test_feed_copyright_onmousedown_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_onmousedown.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->copyright);
+    }
+
+    function test_feed_copyright_onmouseout_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_onmouseout.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->copyright);
+    }
+
+    function test_feed_copyright_onmouseover_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_onmouseover.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->copyright);
+    }
+
+    function test_feed_copyright_onmouseup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_onmouseup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->copyright);
+    }
+
+    function test_feed_copyright_onreset_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_onreset.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->copyright);
+    }
+
+    function test_feed_copyright_onresize_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_onresize.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->copyright);
+    }
+
+    function test_feed_copyright_onsubmit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_onsubmit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->copyright);
+    }
+
+    function test_feed_copyright_onunload_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_onunload.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->copyright);
+    }
+
+    function test_feed_copyright_script_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_script.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->copyright);
+    }
+
+    function test_feed_copyright_script_cdata_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_script_cdata.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->copyright);
+    }
+
+    function test_feed_copyright_script_inline_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_script_inline.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>safe description</div>', $feed->copyright);
+    }
+
+    function test_feed_copyright_style_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_copyright_style.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<a href="http://www.ragingplatypus.com/">never trust your upstream platypus</a>', $feed->copyright);
+    }
+
+    function test_feed_info_applet_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_applet.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->info);
+    }
+
+    function test_feed_info_blink_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_blink.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->info);
+    }
+
+    function test_feed_info_crazy_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_crazy.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Crazy HTML -' + '- Can Your Regex Parse This?\n\n\n\n<!-' + '- <script> -' + '->\n\n<!-' + '- \n\t<script> \n-' + '->\n\n\n\nfunction executeMe()\n{\n\n\n\n\n/* \n<h1>Did The Javascript Execute?</h1>\n<div>\nI will execute here, too, if you mouse over me\n</div>', $feed->info);
+    }
+
+    function test_feed_info_embed_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_embed.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->info);
+    }
+
+    function test_feed_info_frame_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_frame.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->info);
+    }
+
+    function test_feed_info_iframe_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_iframe.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->info);
+    }
+
+    function test_feed_info_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->info);
+    }
+
+    function test_feed_info_meta_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_meta.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->info);
+    }
+
+    function test_feed_info_object_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_object.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->info);
+    }
+
+    function test_feed_info_onabort_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_onabort.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->info);
+    }
+
+    function test_feed_info_onblur_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_onblur.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->info);
+    }
+
+    function test_feed_info_onchange_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_onchange.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->info);
+    }
+
+    function test_feed_info_onclick_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_onclick.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->info);
+    }
+
+    function test_feed_info_ondblclick_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_ondblclick.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->info);
+    }
+
+    function test_feed_info_onerror_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_onerror.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->info);
+    }
+
+    function test_feed_info_onfocus_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_onfocus.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->info);
+    }
+
+    function test_feed_info_onkeydown_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_onkeydown.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->info);
+    }
+
+    function test_feed_info_onkeypress_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_onkeypress.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->info);
+    }
+
+    function test_feed_info_onkeyup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_onkeyup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->info);
+    }
+
+    function test_feed_info_onload_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_onload.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->info);
+    }
+
+    function test_feed_info_onmousedown_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_onmousedown.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->info);
+    }
+
+    function test_feed_info_onmouseout_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_onmouseout.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->info);
+    }
+
+    function test_feed_info_onmouseover_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_onmouseover.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->info);
+    }
+
+    function test_feed_info_onmouseup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_onmouseup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->info);
+    }
+
+    function test_feed_info_onreset_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_onreset.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->info);
+    }
+
+    function test_feed_info_onresize_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_onresize.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->info);
+    }
+
+    function test_feed_info_onsubmit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_onsubmit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->info);
+    }
+
+    function test_feed_info_onunload_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_onunload.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->info);
+    }
+
+    function test_feed_info_script_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_script.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->info);
+    }
+
+    function test_feed_info_script_cdata_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_script_cdata.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->info);
+    }
+
+    function test_feed_info_script_inline_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_script_inline.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>safe description</div>', $feed->info);
+    }
+
+    function test_feed_info_style_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_info_style.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<a href="http://www.ragingplatypus.com/">never trust your upstream platypus</a>', $feed->info);
+    }
+
+    function test_feed_subtitle_applet_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_applet.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->tagline);
+    }
+
+    function test_feed_subtitle_blink_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_blink.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->tagline);
+    }
+
+    function test_feed_subtitle_crazy_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_crazy.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Crazy HTML -' + '- Can Your Regex Parse This?\n\n\n\n<!-' + '- <script> -' + '->\n\n<!-' + '- \n\t<script> \n-' + '->\n\n\n\nfunction executeMe()\n{\n\n\n\n\n/* \n<h1>Did The Javascript Execute?</h1>\n<div>\nI will execute here, too, if you mouse over me\n</div>', $feed->tagline);
+    }
+
+    function test_feed_subtitle_embed_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_embed.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->tagline);
+    }
+
+    function test_feed_subtitle_frame_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_frame.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->tagline);
+    }
+
+    function test_feed_subtitle_iframe_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_iframe.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->tagline);
+    }
+
+    function test_feed_subtitle_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->tagline);
+    }
+
+    function test_feed_subtitle_meta_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_meta.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->tagline);
+    }
+
+    function test_feed_subtitle_object_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_object.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->tagline);
+    }
+
+    function test_feed_subtitle_onabort_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_onabort.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_subtitle_onblur_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_onblur.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_subtitle_onchange_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_onchange.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_subtitle_onclick_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_onclick.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_subtitle_ondblclick_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_ondblclick.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_subtitle_onerror_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_onerror.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_subtitle_onfocus_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_onfocus.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_subtitle_onkeydown_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_onkeydown.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_subtitle_onkeypress_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_onkeypress.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_subtitle_onkeyup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_onkeyup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_subtitle_onload_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_onload.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_subtitle_onmousedown_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_onmousedown.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_subtitle_onmouseout_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_onmouseout.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_subtitle_onmouseover_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_onmouseover.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_subtitle_onmouseup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_onmouseup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_subtitle_onreset_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_onreset.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_subtitle_onresize_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_onresize.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_subtitle_onsubmit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_onsubmit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_subtitle_onunload_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_onunload.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_subtitle_script_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_script.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->tagline);
+    }
+
+    function test_feed_subtitle_script_cdata_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_script_cdata.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->tagline);
+    }
+
+    function test_feed_subtitle_script_inline_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_script_inline.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>safe description</div>', $feed->tagline);
+    }
+
+    function test_feed_subtitle_style_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_subtitle_style.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<a href="http://www.ragingplatypus.com/">never trust your upstream platypus</a>', $feed->tagline);
+    }
+
+    function test_feed_tagline_applet_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_applet.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->tagline);
+    }
+
+    function test_feed_tagline_blink_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_blink.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->tagline);
+    }
+
+    function test_feed_tagline_crazy_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_crazy.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Crazy HTML -' + '- Can Your Regex Parse This?\n\n\n\n<!-' + '- <script> -' + '->\n\n<!-' + '- \n\t<script> \n-' + '->\n\n\n\nfunction executeMe()\n{\n\n\n\n\n/* \n<h1>Did The Javascript Execute?</h1>\n<div>\nI will execute here, too, if you mouse over me\n</div>', $feed->tagline);
+    }
+
+    function test_feed_tagline_embed_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_embed.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->tagline);
+    }
+
+    function test_feed_tagline_frame_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_frame.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->tagline);
+    }
+
+    function test_feed_tagline_iframe_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_iframe.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->tagline);
+    }
+
+    function test_feed_tagline_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->tagline);
+    }
+
+    function test_feed_tagline_meta_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_meta.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->tagline);
+    }
+
+    function test_feed_tagline_object_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_object.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->tagline);
+    }
+
+    function test_feed_tagline_onabort_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_onabort.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_tagline_onblur_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_onblur.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_tagline_onchange_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_onchange.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_tagline_onclick_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_onclick.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_tagline_ondblclick_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_ondblclick.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_tagline_onerror_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_onerror.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_tagline_onfocus_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_onfocus.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_tagline_onkeydown_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_onkeydown.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_tagline_onkeypress_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_onkeypress.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_tagline_onkeyup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_onkeyup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_tagline_onload_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_onload.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_tagline_onmousedown_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_onmousedown.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_tagline_onmouseout_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_onmouseout.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_tagline_onmouseover_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_onmouseover.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_tagline_onmouseup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_onmouseup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_tagline_onreset_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_onreset.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_tagline_onresize_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_onresize.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_tagline_onsubmit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_onsubmit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_tagline_onunload_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_onunload.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->tagline);
+    }
+
+    function test_feed_tagline_script_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_script.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->tagline);
+    }
+
+    function test_feed_tagline_script_cdata_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_script_cdata.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->tagline);
+    }
+
+    function test_feed_tagline_script_inline_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_script_inline.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>safe description</div>', $feed->tagline);
+    }
+
+    function test_feed_tagline_script_map_description_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_script_map_description.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->description);
+    }
+
+    function test_feed_tagline_style_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_tagline_style.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<a href="http://www.ragingplatypus.com/">never trust your upstream platypus</a>', $feed->tagline);
+    }
+
+    function test_feed_title_applet_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_applet.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->title);
+    }
+
+    function test_feed_title_blink_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_blink.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->title);
+    }
+
+    function test_feed_title_crazy_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_crazy.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Crazy HTML -' + '- Can Your Regex Parse This?\n\n\n\n<!-' + '- <script> -' + '->\n\n<!-' + '- \n\t<script> \n-' + '->\n\n\n\nfunction executeMe()\n{\n\n\n\n\n/* \n<h1>Did The Javascript Execute?</h1>\n<div>\nI will execute here, too, if you mouse over me\n</div>', $feed->title);
+    }
+
+    function test_feed_title_embed_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_embed.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->title);
+    }
+
+    function test_feed_title_frame_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_frame.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->title);
+    }
+
+    function test_feed_title_iframe_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_iframe.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->title);
+    }
+
+    function test_feed_title_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->title);
+    }
+
+    function test_feed_title_meta_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_meta.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->title);
+    }
+
+    function test_feed_title_object_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_object.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->title);
+    }
+
+    function test_feed_title_onabort_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_onabort.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->title);
+    }
+
+    function test_feed_title_onblur_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_onblur.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->title);
+    }
+
+    function test_feed_title_onchange_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_onchange.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->title);
+    }
+
+    function test_feed_title_onclick_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_onclick.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->title);
+    }
+
+    function test_feed_title_ondblclick_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_ondblclick.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->title);
+    }
+
+    function test_feed_title_onerror_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_onerror.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->title);
+    }
+
+    function test_feed_title_onfocus_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_onfocus.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->title);
+    }
+
+    function test_feed_title_onkeydown_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_onkeydown.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->title);
+    }
+
+    function test_feed_title_onkeypress_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_onkeypress.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->title);
+    }
+
+    function test_feed_title_onkeyup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_onkeyup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->title);
+    }
+
+    function test_feed_title_onload_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_onload.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->title);
+    }
+
+    function test_feed_title_onmousedown_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_onmousedown.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->title);
+    }
+
+    function test_feed_title_onmouseout_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_onmouseout.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->title);
+    }
+
+    function test_feed_title_onmouseover_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_onmouseover.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->title);
+    }
+
+    function test_feed_title_onmouseup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_onmouseup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->title);
+    }
+
+    function test_feed_title_onreset_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_onreset.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->title);
+    }
+
+    function test_feed_title_onresize_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_onresize.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->title);
+    }
+
+    function test_feed_title_onsubmit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_onsubmit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->title);
+    }
+
+    function test_feed_title_onunload_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_onunload.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->title);
+    }
+
+    function test_feed_title_script_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_script.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->title);
+    }
+
+    function test_feed_title_script_cdata_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_script_cdata.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->title);
+    }
+
+    function test_feed_title_script_inline_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_script_inline.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<div>safe description</div>', $feed->title);
+    }
+
+    function test_feed_title_style_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/feed_title_style.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<a href="http://www.ragingplatypus.com/">never trust your upstream platypus</a>', $feed->title);
+    }
+
+    function test_item_body_applet_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_body_applet.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_body_blink_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_body_blink.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_body_embed_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_body_embed.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_body_frame_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_body_frame.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_body_iframe_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_body_iframe.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_body_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_body_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_body_meta_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_body_meta.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_body_object_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_body_object.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_body_onabort_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_body_onabort.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_body_onblur_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_body_onblur.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_body_onchange_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_body_onchange.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_body_onclick_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_body_onclick.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_body_ondblclick_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_body_ondblclick.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_body_onerror_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_body_onerror.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_body_onfocus_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_body_onfocus.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_body_onkeydown_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_body_onkeydown.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_body_onkeypress_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_body_onkeypress.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_body_onkeyup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_body_onkeyup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_body_onload_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_body_onload.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_body_onmousedown_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_body_onmousedown.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_body_onmouseout_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_body_onmouseout.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_body_onmouseover_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_body_onmouseover.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_body_onmouseup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_body_onmouseup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_body_onreset_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_body_onreset.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_body_onresize_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_body_onresize.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_body_onsubmit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_body_onsubmit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_body_onunload_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_body_onunload.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_body_script_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_body_script.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_body_script_map_content_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_body_script_map_content.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_item_body_style_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_body_style.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<a href="http://www.ragingplatypus.com/">never trust your upstream platypus</a>', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_applet_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_applet.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_blink_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_blink.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_crazy_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_crazy.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Crazy HTML -' + '- Can Your Regex Parse This?\n\n\n\n<!-' + '- <script> -' + '->\n\n<!-' + '- \n\t<script> \n-' + '->\n\n\n\nfunction executeMe()\n{\n\n\n\n\n/* \n<h1>Did The Javascript Execute?</h1>\n<div>\nI will execute here, too, if you mouse over me\n</div>', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_embed_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_embed.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_frame_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_frame.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_iframe_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_iframe.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_map_content_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_map_content.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_item_content_encoded_meta_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_meta.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_object_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_object.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_onabort_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_onabort.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_onblur_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_onblur.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_onchange_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_onchange.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_onclick_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_onclick.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_ondblclick_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_ondblclick.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_onerror_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_onerror.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_onfocus_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_onfocus.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_onkeydown_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_onkeydown.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_onkeypress_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_onkeypress.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_onkeyup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_onkeyup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_onload_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_onload.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_onmousedown_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_onmousedown.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_onmouseout_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_onmouseout.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_onmouseover_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_onmouseover.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_onmouseup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_onmouseup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_onreset_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_onreset.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_onresize_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_onresize.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_onsubmit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_onsubmit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_onunload_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_onunload.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_script_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_script.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_script_cdata_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_script_cdata.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_content_encoded_script_map_content_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_script_map_content.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_item_content_encoded_style_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_content_encoded_style.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<a href="http://www.ragingplatypus.com/">never trust your upstream platypus</a>', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_applet_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_applet.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_blink_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_blink.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_crazy_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_crazy.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Crazy HTML -' + '- Can Your Regex Parse This?\n\n\n\n<!-' + '- <script> -' + '->\n\n<!-' + '- \n\t<script> \n-' + '->\n\n\n\nfunction executeMe()\n{\n\n\n\n\n/* \n<h1>Did The Javascript Execute?</h1>\n<div>\nI will execute here, too, if you mouse over me\n</div>', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_embed_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_embed.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_frame_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_frame.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_iframe_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_iframe.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_meta_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_meta.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_object_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_object.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_onabort_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_onabort.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_onblur_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_onblur.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_onchange_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_onchange.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_onclick_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_onclick.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_ondblclick_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_ondblclick.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_onerror_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_onerror.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_onfocus_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_onfocus.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_onkeydown_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_onkeydown.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_onkeypress_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_onkeypress.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_onkeyup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_onkeyup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_onload_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_onload.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_onmousedown_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_onmousedown.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_onmouseout_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_onmouseout.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_onmouseover_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_onmouseover.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_onmouseup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_onmouseup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_onreset_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_onreset.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_onresize_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_onresize.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_onsubmit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_onsubmit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_onunload_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_onunload.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_script_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_script.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_script_cdata_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_script_cdata.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_script_map_summary_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_script_map_summary.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_item_description_style_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_description_style.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<a href="http://www.ragingplatypus.com/">never trust your upstream platypus</a>', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_applet_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_applet.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_blink_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_blink.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_crazy_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_crazy.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Crazy HTML -' + '- Can Your Regex Parse This?\n\n\n\n<!-' + '- <script> -' + '->\n\n<!-' + '- \n\t<script> \n-' + '->\n\n\n\nfunction executeMe()\n{\n\n\n\n\n/* \n<h1>Did The Javascript Execute?</h1>\n<div>\nI will execute here, too, if you mouse over me\n</div>', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_embed_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_embed.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_frame_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_frame.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_iframe_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_iframe.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_meta_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_meta.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_object_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_object.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_onabort_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_onabort.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_onblur_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_onblur.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_onchange_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_onchange.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_onclick_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_onclick.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_ondblclick_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_ondblclick.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_onerror_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_onerror.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_onfocus_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_onfocus.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_onkeydown_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_onkeydown.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_onkeypress_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_onkeypress.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_onkeyup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_onkeyup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_onload_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_onload.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_onmousedown_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_onmousedown.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_onmouseout_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_onmouseout.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_onmouseover_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_onmouseover.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_onmouseup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_onmouseup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_onreset_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_onreset.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_onresize_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_onresize.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_onsubmit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_onsubmit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_onunload_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_onunload.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_script_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_script.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_script_cdata_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_script_cdata.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_fullitem_script_map_summary_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_script_map_summary.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_item_fullitem_style_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_fullitem_style.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<a href="http://www.ragingplatypus.com/">never trust your upstream platypus</a>', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_xhtml_body_applet_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_xhtml_body_applet.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_xhtml_body_blink_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_xhtml_body_blink.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_xhtml_body_embed_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_xhtml_body_embed.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_xhtml_body_frame_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_xhtml_body_frame.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_xhtml_body_iframe_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_xhtml_body_iframe.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_xhtml_body_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_xhtml_body_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_xhtml_body_meta_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_xhtml_body_meta.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_xhtml_body_object_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_xhtml_body_object.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_xhtml_body_onabort_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_xhtml_body_onabort.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_xhtml_body_onblur_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_xhtml_body_onblur.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_xhtml_body_onchange_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_xhtml_body_onchange.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_xhtml_body_onclick_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_xhtml_body_onclick.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_xhtml_body_ondblclick_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_xhtml_body_ondblclick.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_xhtml_body_onerror_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_xhtml_body_onerror.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_xhtml_body_onfocus_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_xhtml_body_onfocus.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_xhtml_body_onkeydown_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_xhtml_body_onkeydown.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_xhtml_body_onkeypress_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_xhtml_body_onkeypress.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_xhtml_body_onkeyup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_xhtml_body_onkeyup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_xhtml_body_onload_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_xhtml_body_onload.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_xhtml_body_onmousedown_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_xhtml_body_onmousedown.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_xhtml_body_onmouseout_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_xhtml_body_onmouseout.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_xhtml_body_onmouseover_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_xhtml_body_onmouseover.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_xhtml_body_onmouseup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_xhtml_body_onmouseup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_xhtml_body_onreset_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_xhtml_body_onreset.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_xhtml_body_onresize_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_xhtml_body_onresize.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_xhtml_body_onsubmit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_xhtml_body_onsubmit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_xhtml_body_onunload_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_xhtml_body_onunload.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<img src="http://www.ragingplatypus.com/i/cam-full.jpg" />', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_xhtml_body_script_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_xhtml_body_script.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_xhtml_body_script_map_content_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_xhtml_body_script_map_content.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('safe description', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_item_xhtml_body_style_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/sanitize/item_xhtml_body_style.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<a href="http://www.ragingplatypus.com/">never trust your upstream platypus</a>', $feed->getEntryByOffset(0)->description);
+    }
+}
+
+$suite = new PHPUnit_TestSuite('sanitize_TestCase');
+$result = PHPUnit::run($suite, '123');
+echo $result->toString();
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/itunes.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/itunes.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/itunes.php	(revision 14612)
@@ -0,0 +1,617 @@
+<?php
+
+require_once 'XML_Feed_Parser_TestCase.php';
+
+class itunes_TestCase extends XML_Feed_Parser_Converted_TestCase {
+
+    function test_itunes_channel_block_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_channel_block.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(1, $feed->itunes_block);
+    }
+
+    function test_itunes_channel_block_false_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_channel_block_false.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(0, $feed->itunes_block);
+    }
+
+    function test_itunes_channel_block_no_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_channel_block_no.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(0, $feed->itunes_block);
+    }
+
+    function test_itunes_channel_block_true_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_channel_block_true.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(0, $feed->itunes_block);
+    }
+
+    function test_itunes_channel_block_uppercase_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_channel_block_uppercase.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(0, $feed->itunes_block);
+    }
+
+    function test_itunes_channel_block_whitespace_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_channel_block_whitespace.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(0, $feed->itunes_block);
+    }
+
+    function test_itunes_channel_category_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_channel_category.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Technology', $feed->tags(0, 'term'));
+    }
+
+    function test_itunes_channel_category_nested_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_channel_category_nested.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Gadgets', $feed->tags(0, 'term'));
+    }
+
+    function test_itunes_channel_category_scheme_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_channel_category_scheme.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.itunes.com/', $feed->tags(0, 'scheme'));
+    }
+
+    function test_itunes_channel_explicit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_channel_explicit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(1, $feed->itunes_explicit);
+    }
+
+    function test_itunes_channel_explicit_false_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_channel_explicit_false.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(0, $feed->itunes_explicit);
+    }
+
+    function test_itunes_channel_explicit_no_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_channel_explicit_no.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(0, $feed->itunes_explicit);
+    }
+
+    function test_itunes_channel_explicit_true_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_channel_explicit_true.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(0, $feed->itunes_explicit);
+    }
+
+    function test_itunes_channel_explicit_uppercase_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_channel_explicit_uppercase.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(0, $feed->itunes_explicit);
+    }
+
+    function test_itunes_channel_explicit_whitespace_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_channel_explicit_whitespace.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(0, $feed->itunes_explicit);
+    }
+
+    function test_itunes_channel_image_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_channel_image.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/logo.jpg', $feed->image(0, 'href'));
+    }
+
+    function test_itunes_channel_keywords_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_channel_keywords.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Technology', $feed->tags(0, 'term'));
+    }
+
+    function test_itunes_channel_keywords_duplicate_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_channel_keywords_duplicate.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(1, len(feed->tags));
+    }
+
+    function test_itunes_channel_keywords_duplicate_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_channel_keywords_duplicate_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(1, len(feed->tags));
+    }
+
+    function test_itunes_channel_keywords_multiple_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_channel_keywords_multiple.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Gadgets', $feed->tags(0, 'term'));
+    }
+
+    function test_itunes_channel_link_image_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_channel_link_image.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/logo.jpg', $feed->image(0, 'href'));
+    }
+
+    function test_itunes_channel_owner_email_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_channel_owner_email.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('mark@example.com', $feed->publisher(0, 'email'));
+    }
+
+    function test_itunes_channel_owner_name_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_channel_owner_name.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Mark Pilgrim', $feed->publisher(0, 'name'));
+    }
+
+    function test_itunes_channel_subtitle_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_channel_subtitle.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example subtitle', $feed->subtitle);
+    }
+
+    function test_itunes_channel_summary_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_channel_summary.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example summary', $feed->description);
+    }
+
+    function test_itunes_core_element_uppercase_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_core_element_uppercase.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example title', $feed->title);
+    }
+
+    function test_itunes_enclosure_url_maps_id_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_enclosure_url_maps_id.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/movie.mp4', $feed->getEntryByOffset(0)->id);
+    }
+
+    function test_itunes_enclosure_url_maps_id_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_enclosure_url_maps_id_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/id', $feed->getEntryByOffset(0)->id);
+    }
+
+    function test_itunes_item_author_map_author_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_item_author_map_author.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Mark Pilgrim', $feed->getEntryByOffset(0)->author);
+    }
+
+    function test_itunes_item_block_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_item_block.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(1, $feed->getEntryByOffset(0)->itunes_block);
+    }
+
+    function test_itunes_item_block_false_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_item_block_false.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(0, $feed->getEntryByOffset(0)->itunes_block);
+    }
+
+    function test_itunes_item_block_no_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_item_block_no.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(0, $feed->getEntryByOffset(0)->itunes_block);
+    }
+
+    function test_itunes_item_block_true_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_item_block_true.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(0, $feed->getEntryByOffset(0)->itunes_block);
+    }
+
+    function test_itunes_item_block_uppercase_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_item_block_uppercase.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(0, $feed->getEntryByOffset(0)->itunes_block);
+    }
+
+    function test_itunes_item_block_whitespace_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_item_block_whitespace.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(0, $feed->getEntryByOffset(0)->itunes_block);
+    }
+
+    function test_itunes_item_category_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_item_category.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Technology', $feed->getEntryByOffset(0)->tags(0, 'term'));
+    }
+
+    function test_itunes_item_category_nested_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_item_category_nested.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Gadgets', $feed->getEntryByOffset(0)->tags(0, 'term'));
+    }
+
+    function test_itunes_item_category_scheme_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_item_category_scheme.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.itunes.com/', $feed->getEntryByOffset(0)->tags(0, 'scheme'));
+    }
+
+    function test_itunes_item_duration_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_item_duration.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('3:00', $feed->getEntryByOffset(0)->itunes_duration);
+    }
+
+    function test_itunes_item_explicit_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_item_explicit.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(1, $feed->getEntryByOffset(0)->itunes_explicit);
+    }
+
+    function test_itunes_item_explicit_false_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_item_explicit_false.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(0, $feed->getEntryByOffset(0)->itunes_explicit);
+    }
+
+    function test_itunes_item_explicit_no_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_item_explicit_no.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(0, $feed->getEntryByOffset(0)->itunes_explicit);
+    }
+
+    function test_itunes_item_explicit_true_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_item_explicit_true.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(0, $feed->getEntryByOffset(0)->itunes_explicit);
+    }
+
+    function test_itunes_item_explicit_uppercase_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_item_explicit_uppercase.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(0, $feed->getEntryByOffset(0)->itunes_explicit);
+    }
+
+    function test_itunes_item_explicit_whitespace_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_item_explicit_whitespace.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(0, $feed->getEntryByOffset(0)->itunes_explicit);
+    }
+
+    function test_itunes_item_image_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_item_image.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/logo.jpg', $feed->getEntryByOffset(0)->image(0, 'href'));
+    }
+
+    function test_itunes_item_link_image_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_item_link_image.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/logo.jpg', $feed->getEntryByOffset(0)->image(0, 'href'));
+    }
+
+    function test_itunes_item_subtitle_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_item_subtitle.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example subtitle', $feed->getEntryByOffset(0)->subtitle);
+    }
+
+    function test_itunes_item_summary_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_item_summary.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example summary', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_itunes_link_enclosure_maps_id_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_link_enclosure_maps_id.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/movie.mp4', $feed->getEntryByOffset(0)->id);
+    }
+
+    function test_itunes_link_enclosure_maps_id_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_link_enclosure_maps_id_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/id', $feed->getEntryByOffset(0)->id);
+    }
+
+    function test_itunes_namespace_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_namespace.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(1, $feed->itunes_block);
+    }
+
+    function test_itunes_namespace_example_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_namespace_example.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(1, $feed->itunes_block);
+    }
+
+    function test_itunes_namespace_lowercase_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_namespace_lowercase.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(1, $feed->itunes_block);
+    }
+
+    function test_itunes_namespace_uppercase_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/itunes/itunes_namespace_uppercase.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(1, $feed->itunes_block);
+    }
+}
+
+$suite = new PHPUnit_TestSuite('itunes_TestCase');
+$result = PHPUnit::run($suite, '123');
+echo $result->toString();
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/rss.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/rss.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convertedtests/rss.php	(revision 14612)
@@ -0,0 +1,1574 @@
+<?php
+
+require_once 'XML_Feed_Parser_TestCase.php';
+
+class rss_TestCase extends XML_Feed_Parser_Converted_TestCase {
+
+    function test_channel_author_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_author.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example editor (me@example.com)', $feed->author);
+    }
+
+    function test_channel_author_map_author_detail_email_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_author_map_author_detail_email.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('me@example.com', $feed->author(0, 'email'));
+    }
+
+    function test_channel_author_map_author_detail_email_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_author_map_author_detail_email_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('me+spam@example.com', $feed->author(0, 'email'));
+    }
+
+    function test_channel_author_map_author_detail_email_3_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_author_map_author_detail_email_3.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('me@example.com', $feed->author(0, 'email'));
+    }
+
+    function test_channel_author_map_author_detail_name_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_author_map_author_detail_name.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example editor', $feed->author(0, 'name'));
+    }
+
+    function test_channel_author_map_author_detail_name_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_author_map_author_detail_name_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example editor', $feed->author(0, 'name'));
+    }
+
+    function test_channel_category_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_category.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example category', $feed->category);
+    }
+
+    function test_channel_category_domain_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_category_domain.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.com/', $feed->categories[0][0]);
+    }
+
+    function test_channel_category_multiple_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_category_multiple.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.com/2', $feed->categories[1][0]);
+    }
+
+    function test_channel_category_multiple_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_category_multiple_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example category 2', $feed->categories[1][1]);
+    }
+
+    function test_channel_cloud_domain_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_cloud_domain.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('rpc.sys.com', $feed->cloud(0, 'domain'));
+    }
+
+    function test_channel_cloud_path_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_cloud_path.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('/RPC2', $feed->cloud(0, 'path'));
+    }
+
+    function test_channel_cloud_port_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_cloud_port.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('80', $feed->cloud(0, 'port'));
+    }
+
+    function test_channel_cloud_protocol_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_cloud_protocol.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('xml-rpc', $feed->cloud(0, 'protocol'));
+    }
+
+    function test_channel_cloud_registerProcedure_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_cloud_registerProcedure.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('myCloud.rssPleaseNotify', $feed->cloud(0, 'registerprocedure'));
+    }
+
+    function test_channel_copyright_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_copyright.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example copyright', $feed->copyright);
+    }
+
+    function test_channel_dc_author_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_dc_author.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example editor', $feed->author);
+    }
+
+    function test_channel_dc_author_map_author_detail_email_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_dc_author_map_author_detail_email.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('me@example.com', $feed->author(0, 'email'));
+    }
+
+    function test_channel_dc_author_map_author_detail_name_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_dc_author_map_author_detail_name.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example editor', $feed->author(0, 'name'));
+    }
+
+    function test_channel_dc_contributor_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_dc_contributor.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example contributor', $feed->contributors(0, 'name'));
+    }
+
+    function test_channel_dc_creator_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_dc_creator.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example editor', $feed->author);
+    }
+
+    function test_channel_dc_creator_map_author_detail_email_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_dc_creator_map_author_detail_email.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('me@example.com', $feed->author(0, 'email'));
+    }
+
+    function test_channel_dc_creator_map_author_detail_name_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_dc_creator_map_author_detail_name.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example editor', $feed->author(0, 'name'));
+    }
+
+    function test_channel_dc_publisher_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_dc_publisher.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example editor', $feed->publisher);
+    }
+
+    function test_channel_dc_publisher_email_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_dc_publisher_email.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('me@example.com', $feed->publisher(0, 'email'));
+    }
+
+    function test_channel_dc_publisher_name_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_dc_publisher_name.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example editor', $feed->publisher(0, 'name'));
+    }
+
+    function test_channel_dc_rights_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_dc_rights.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example copyright', $feed->copyright);
+    }
+
+    function test_channel_dc_subject_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_dc_subject.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example category', $feed->category);
+    }
+
+    function test_channel_dc_subject_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_dc_subject_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example category', $feed->categories[0][1]);
+    }
+
+    function test_channel_dc_subject_multiple_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_dc_subject_multiple.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example category 2', $feed->categories[1][1]);
+    }
+
+    function test_channel_dc_title_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_dc_title.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example title', $feed->title);
+    }
+
+    function test_channel_description_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_description.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example description', $feed->description);
+    }
+
+    function test_channel_description_escaped_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_description_escaped_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<p>Example description</p>', $feed->description);
+    }
+
+    function test_channel_description_map_tagline_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_description_map_tagline.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example description', $feed->tagline);
+    }
+
+    function test_channel_description_naked_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_description_naked_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<p>Example description</p>', $feed->description);
+    }
+
+    function test_channel_description_shorttag_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_description_shorttag.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('', $feed->description);
+    }
+
+    function test_channel_description_shorttag_2 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_description_shorttag.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->link);
+    }
+
+    function test_channel_docs_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_docs.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.com/', $feed->docs);
+    }
+
+    function test_channel_generator_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_generator.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example generator', $feed->generator);
+    }
+
+    function test_channel_image_description_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_image_description.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Available in Netscape RSS 0.91', $feed->image(0, 'description'));
+    }
+
+    function test_channel_image_height_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_image_height.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(15, $feed->image(0, 'height'));
+    }
+
+    function test_channel_image_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_image_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.org/link', $feed->image(0, 'link'));
+    }
+
+    function test_channel_image_link_conflict_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_image_link_conflict.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://channel.example.com/', $feed->link);
+    }
+
+    function test_channel_image_title_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_image_title.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Sample image', $feed->image(0, 'title'));
+    }
+
+    function test_channel_image_title_conflict_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_image_title_conflict.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Real title', $feed->title);
+    }
+
+    function test_channel_image_url_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_image_url.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.org/url', $feed->image(0, 'url'));
+    }
+
+    function test_channel_image_width_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_image_width.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(80, $feed->image(0, 'width'));
+    }
+
+    function test_channel_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->link);
+    }
+
+    function test_channel_managingEditor_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_managingEditor.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example editor', $feed->author);
+    }
+
+    function test_channel_managingEditor_map_author_detail_email_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_managingEditor_map_author_detail_email.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('me@example.com', $feed->author(0, 'email'));
+    }
+
+    function test_channel_managingEditor_map_author_detail_name_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_managingEditor_map_author_detail_name.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example editor', $feed->author(0, 'name'));
+    }
+
+    function test_channel_textInput_description_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_textInput_description.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('textInput description', $feed->textinput(0, 'description'));
+    }
+
+    function test_channel_textInput_description_conflict_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_textInput_description_conflict.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Real description', $feed->description);
+    }
+
+    function test_channel_textInput_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_textInput_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://textinput.example.com/', $feed->textinput(0, 'link'));
+    }
+
+    function test_channel_textInput_link_conflict_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_textInput_link_conflict.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://channel.example.com/', $feed->link);
+    }
+
+    function test_channel_textInput_name_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_textInput_name.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('textinput name', $feed->textinput(0, 'name'));
+    }
+
+    function test_channel_textInput_title_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_textInput_title.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('textInput title', $feed->textinput(0, 'title'));
+    }
+
+    function test_channel_textInput_title_conflict_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_textInput_title_conflict.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Real title', $feed->title);
+    }
+
+    function test_channel_title_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_title.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example feed', $feed->title);
+    }
+
+    function test_channel_title_apos_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_title_apos.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(u"Mark's title", $feed->title);
+    }
+
+    function test_channel_title_gt_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_title_gt.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('2 > 1', $feed->title);
+    }
+
+    function test_channel_title_lt_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_title_lt.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('1 < 2', $feed->title);
+    }
+
+    function test_channel_ttl_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_ttl.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('60', $feed->ttl);
+    }
+
+    function test_channel_webMaster_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_webMaster.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example editor', $feed->publisher);
+    }
+
+    function test_channel_webMaster_email_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_webMaster_email.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('me@example.com', $feed->publisher(0, 'email'));
+    }
+
+    function test_channel_webMaster_name_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/channel_webMaster_name.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example editor', $feed->publisher(0, 'name'));
+    }
+
+    function test_item_author_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_author.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example editor', $feed->getEntryByOffset(0)->author);
+    }
+
+    function test_item_author_map_author_detail_email_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_author_map_author_detail_email.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('me@example.com', $feed->getEntryByOffset(0)->author(0, 'email'));
+    }
+
+    function test_item_author_map_author_detail_name_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_author_map_author_detail_name.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example editor', $feed->getEntryByOffset(0)->author(0, 'name'));
+    }
+
+    function test_item_category_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_category.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example category', $feed->getEntryByOffset(0)->category);
+    }
+
+    function test_item_category_domain_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_category_domain.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.com/', $feed->getEntryByOffset(0)->categories[0][0]);
+    }
+
+    function test_item_category_multiple_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_category_multiple.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://www.example.com/2', $feed->getEntryByOffset(0)->categories[1][0]);
+    }
+
+    function test_item_category_multiple_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_category_multiple_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example category 2', $feed->getEntryByOffset(0)->categories[1][1]);
+    }
+
+    function test_item_comments_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_comments.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->getEntryByOffset(0)->comments);
+    }
+
+    function test_item_content_encoded_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_content_encoded.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<p>Example content</p>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_item_content_encoded_mode_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_content_encoded_mode.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, 1);
+    }
+
+    function test_item_content_encoded_type_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_content_encoded_type.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/html', $feed->getEntryByOffset(0)->content(0, 'type'));
+    }
+
+    function test_item_dc_author_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_dc_author.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example editor', $feed->getEntryByOffset(0)->author);
+    }
+
+    function test_item_dc_author_map_author_detail_email_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_dc_author_map_author_detail_email.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('me@example.com', $feed->getEntryByOffset(0)->author(0, 'email'));
+    }
+
+    function test_item_dc_author_map_author_detail_name_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_dc_author_map_author_detail_name.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example editor', $feed->getEntryByOffset(0)->author(0, 'name'));
+    }
+
+    function test_item_dc_contributor_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_dc_contributor.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example contributor', $feed->getEntryByOffset(0)->contributors(0, 'name'));
+    }
+
+    function test_item_dc_creator_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_dc_creator.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example editor', $feed->getEntryByOffset(0)->author);
+    }
+
+    function test_item_dc_creator_map_author_detail_email_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_dc_creator_map_author_detail_email.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('me@example.com', $feed->getEntryByOffset(0)->author(0, 'email'));
+    }
+
+    function test_item_dc_creator_map_author_detail_name_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_dc_creator_map_author_detail_name.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example editor', $feed->getEntryByOffset(0)->author(0, 'name'));
+    }
+
+    function test_item_dc_publisher_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_dc_publisher.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example editor', $feed->getEntryByOffset(0)->publisher);
+    }
+
+    function test_item_dc_publisher_email_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_dc_publisher_email.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('me@example.com', $feed->getEntryByOffset(0)->publisher(0, 'email'));
+    }
+
+    function test_item_dc_publisher_name_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_dc_publisher_name.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example editor', $feed->getEntryByOffset(0)->publisher(0, 'name'));
+    }
+
+    function test_item_dc_rights_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_dc_rights.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example copyright', $feed->getEntryByOffset(0)->copyright);
+    }
+
+    function test_item_dc_subject_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_dc_subject.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example category', $feed->getEntryByOffset(0)->category);
+    }
+
+    function test_item_dc_subject_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_dc_subject_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example category', $feed->getEntryByOffset(0)->categories[0][1]);
+    }
+
+    function test_item_dc_subject_multiple_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_dc_subject_multiple.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example category 2', $feed->getEntryByOffset(0)->categories[1][1]);
+    }
+
+    function test_item_dc_title_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_dc_title.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example title', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_item_description_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_description.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_and_summary_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_description_and_summary.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example description', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_and_summary_2 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_description_and_summary.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example summary', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_item_description_br_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_description_br.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('article title<br /><br /> article byline<br /><br />text of article', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_escaped_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_description_escaped_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<p>Example description</p>', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_map_summary_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_description_map_summary.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example description', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_item_description_naked_markup_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_description_naked_markup.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<p>Example description</p>', $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_description_not_a_doctype_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_description_not_a_doctype.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals("""&lt;!' <a href="foo">""", $feed->getEntryByOffset(0)->description);
+    }
+
+    function test_item_enclosure_length_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_enclosure_length.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('100000', $feed->getEntryByOffset(0)->enclosures(0, 'length'));
+    }
+
+    function test_item_enclosure_multiple_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_enclosure_multiple.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(array('href' => 'http://example.com/2', 'length' => '200000', 'type' => 'image/gif'), $feed->getEntryByOffset(0)->enclosures[1]);
+    }
+
+    function test_item_enclosure_type_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_enclosure_type.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('image/jpeg', $feed->getEntryByOffset(0)->enclosures(0, 'type'));
+    }
+
+    function test_item_enclosure_url_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_enclosure_url.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->getEntryByOffset(0)->enclosures(0, 'url'));
+    }
+
+    function test_item_fullitem_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_fullitem.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<p>Example content</p>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_item_fullitem_mode_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_fullitem_mode.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, 1);
+    }
+
+    function test_item_fullitem_type_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_fullitem_type.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('text/html', $feed->getEntryByOffset(0)->content(0, 'type'));
+    }
+
+    function test_item_guid_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_guid.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://guid.example.com/', $feed->getEntryByOffset(0)->guid);
+    }
+
+    function test_item_guid_conflict_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_guid_conflict_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://link.example.com/', $feed->getEntryByOffset(0)->link);
+    }
+
+    function test_item_guid_guidislink_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_guid_guidislink.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, $feed->getEntryByOffset(0)->guidislink);
+    }
+
+    function test_item_guid_isPermaLink_conflict_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_guid_isPermaLink_conflict_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://link.example.com/', $feed->getEntryByOffset(0)->link);
+    }
+
+    function test_item_guid_isPermaLink_conflict_link_not_guidislink_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_guid_isPermaLink_conflict_link_not_guidislink.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, ! $feed->getEntryByOffset(0)->guidislink);
+    }
+
+    function test_item_guid_isPermaLink_guidislink_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_guid_isPermaLink_guidislink.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, $feed->getEntryByOffset(0)->guidislink);
+    }
+
+    function test_item_guid_isPermaLink_map_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_guid_isPermaLink_map_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://guid.example.com/', $feed->getEntryByOffset(0)->link);
+    }
+
+    function test_item_guid_map_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_guid_map_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://guid.example.com/', $feed->getEntryByOffset(0)->link);
+    }
+
+    function test_item_guid_not_permalink_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_guid_not_permalink.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, ! $feed->getEntryByOffset(0).has_key(->));
+    }
+
+    function test_item_guid_not_permalink_conflict_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_guid_not_permalink_conflict_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://link.example.com/', $feed->getEntryByOffset(0)->link);
+    }
+
+    function test_item_guid_not_permalink_not_guidislink_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_guid_not_permalink_not_guidislink.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, ! $feed->getEntryByOffset(0)->guidislink);
+    }
+
+    function test_item_guid_not_permalink_not_guidislink_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_guid_not_permalink_not_guidislink_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, ! $feed->getEntryByOffset(0)->guidislink);
+    }
+
+    function test_item_link_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_link.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('http://example.com/', $feed->getEntryByOffset(0)->link);
+    }
+
+    function test_item_source_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_source.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, 1);
+    }
+
+    function test_item_source_url_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_source_url.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, 1);
+    }
+
+    function test_item_summary_and_description_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_summary_and_description.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example summary', $feed->getEntryByOffset(0)->summary);
+    }
+
+    function test_item_summary_and_description_2 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_summary_and_description.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example description', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_item_title_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_title.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Item 1 title', $feed->getEntryByOffset(0)->title);
+    }
+
+    function test_item_xhtml_body_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_xhtml_body.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('<p>Example content</p>', $feed->getEntryByOffset(0)->content(0, 'value'));
+    }
+
+    function test_item_xhtml_body_mode_0 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_xhtml_body_mode.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(, 1);
+    }
+
+    function test_item_xhtml_body_type_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/item_xhtml_body_type.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('application/xhtml+xml', $feed->getEntryByOffset(0)->content(0, 'type'));
+    }
+
+    function test_rss_namespace_1_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/rss_namespace_1.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example description', $feed->description);
+    }
+
+    function test_rss_namespace_2_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/rss_namespace_2.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example description', $feed->description);
+    }
+
+    function test_rss_namespace_3_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/rss_namespace_3.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example description', $feed->description);
+    }
+
+    function test_rss_namespace_4_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/rss_namespace_4.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('Example description', $feed->description);
+    }
+
+    function test_rss_version_090_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/rss_version_090.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('rss090', $feed->version());
+    }
+
+    function test_rss_version_091_netscape_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/rss_version_091_netscape.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('rss091n', $feed->version());
+    }
+
+    function test_rss_version_091_userland_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/rss_version_091_userland.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('rss091', $feed->version());
+    }
+
+    function test_rss_version_092_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/rss_version_092.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('rss092', $feed->version());
+    }
+
+    function test_rss_version_093_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/rss_version_093.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('rss093', $feed->version());
+    }
+
+    function test_rss_version_094_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/rss_version_094.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('rss094', $feed->version());
+    }
+
+    function test_rss_version_20_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/rss_version_20.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('rss20', $feed->version());
+    }
+
+    function test_rss_version_201_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/rss_version_201.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('rss20', $feed->version());
+    }
+
+    function test_rss_version_21_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/rss_version_21.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('rss20', $feed->version());
+    }
+
+    function test_rss_version_missing_1 () { 
+        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/rss/rss_version_missing.xml');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals('rss', $feed->version());
+    }
+}
+
+$suite = new PHPUnit_TestSuite('rss_TestCase');
+$result = PHPUnit::run($suite, '123');
+echo $result->toString();
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/japanese.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/japanese.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/japanese.php	(revision 14612)
@@ -0,0 +1,44 @@
+<?php
+
+require_once 'XML_Feed_Parser_TestCase.php';
+
+class XML_Feed_Parser_Japanese_TestCase extends XML_Feed_Parser_TestCase
+{
+    function __construct($name)
+    {
+        $this->PHPUnit_TestCase($name);
+        $sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
+        $this->file = file_get_contents($sample_dir . DIRECTORY_SEPARATOR . "sixapart-jp.xml");
+        $this->feed = new XML_Feed_Parser($this->file);
+        $this->entry = $this->feed->getEntryByOffset(0);
+    }
+
+    function test_itemTitleJapanese()
+    {
+        $value = "ファイブ・ディーが、Movable Typeでブログプロモーションをスタート";
+        $this->assertEquals($value, $this->entry->title);
+    }
+    
+    function test_itemDescriptionJapanese()
+    {
+        $value = "<p><img alt=\"MIYAZAWAblog_banner.jpg\" src=\"http://www.sixapart.jp/MIYAZAWAblog_banner.jpg\" width=\"200\" height=\"88\" align=\"right\" /><br />
+ファイブ・ディーは、Movable Typeで構築したプロモーション ブログ『宮沢和史 中南米ツアーblog Latin America 2005』を開設しました。</p>
+
+<p>9月21日に開設されたこのブログは、ブラジル、ホンジュラス、ニカラグア、メキシコ、キューバの5か国を巡る「Latin America 2005」ツアーに合わせ、そのツアーの模様を同行マネージャーがレポートしていきます。<br />
+さらに今月2日からは宮沢和史自身が日々録音した声をPodcastingするという点でも、ブログを使ったユニークなプロモーションとなっています。</p>
+
+<p><a href=\"http://www.five-d.co.jp/miyazawa/jp/blog/la2005/\">「宮沢和史 中南米ツアーblog Latin America 2005」</a></p>
+
+<p>※シックス・アパートではこうしたブログを使ったプロモーションに最適な製品をご用意しております。<br />
+<ul><li><a href=\"/movabletype/\">Movable Type</a><br />
+<li><a href=\"/typepad/typepad_promotion.html\">TypePad Promotion</a><br />
+</ul></p>";
+        $this->assertEquals($value, $this->entry->description);
+    }
+}
+
+$suite = new PHPUnit_TestSuite("XML_Feed_Parser_Japanese_TestCase");
+$result = PHPUnit::run($suite, "123");
+echo $result->toString();
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/XML_Feed_Parser_TestCase.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/XML_Feed_Parser_TestCase.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/XML_Feed_Parser_TestCase.php	(revision 14612)
@@ -0,0 +1,25 @@
+<?php
+set_include_path('/Users/james/Projects/PEAR' . PATH_SEPARATOR . get_include_path());
+require_once 'PEAR/Config.php';
+require_once 'XML/Feed/Parser.php';
+require_once 'PHPUnit.php';
+
+abstract class XML_Feed_Parser_TestCase extends PHPUnit_Testcase {
+    static function getSampleDir() {
+        $config = new PEAR_Config;
+        return $config->get('data_dir') . '/XML_Feed_Parser/samples';
+    }
+}
+
+abstract class XML_Feed_Parser_Converted_TestCase extends XML_Feed_Parser_TestCase {
+    function setup() {
+        $this->fp_test_dir = XML_Feed_Parser_TestCase::getSampleDir() . 
+            DIRECTORY_SEPARATOR . 'feedparsertests';
+        if (! is_dir($fp_test_dir)) {
+            throw new Exception('Feed parser tests must be unpacked into the folder ' . 
+                $this->fp_test_dir);
+        }
+    }
+}
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/atomCompliance.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/atomCompliance.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/atomCompliance.php	(revision 14612)
@@ -0,0 +1,226 @@
+<?php
+
+require_once 'XML_Feed_Parser_TestCase.php';
+
+/**
+ * This test is to make sure that we get sane values back for all
+ * elements specified by the atom specification. It is okay for a feed
+ * to not have some of these, but if they're not present we should
+ * get a null or false return rather than an error. This test begins
+ * to ensure consistency of our API.
+ */
+class XML_Feed_Parser_AtomCompat1_TestCase extends XML_Feed_Parser_TestCase
+{
+    
+    function __construct($name)
+    {
+        $this->PHPUnit_TestCase($name);
+        $sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
+        $this->file = file_get_contents($sample_dir . DIRECTORY_SEPARATOR . 'atom10-example1.xml');
+        $this->parser = new XML_Feed_Parser($this->file);
+        $this->entry = $this->parser->getEntryByOffset(0);
+    }
+    
+    function setUp() {
+    }
+    
+    function tearDown() {
+    }
+    
+    function checkString($attribute, $entry = false) {
+        if ($entry) {
+            $author = $this->entry->$attribute;            
+        } else {
+            $author = $this->parser->$attribute;
+        }
+        if (is_string($author) or $author === false) {
+            $test = true;
+        }
+        return $test;
+    }
+
+    function checkNumeric($attribute, $entry = false) {
+        if ($entry) {
+            $author = $this->entry->$attribute;            
+        } else {
+            $author = $this->parser->$attribute;
+        }
+        if (is_numeric($author)) {
+            $test = true;
+        } else if ($author === false) {
+            $test = true;
+        }
+        return $test;
+    }
+
+    function test_feedAuthor() {
+        $this->assertTrue($this->checkString('author'));
+    }
+
+    function test_feedContributor()
+    {
+        $this->assertTrue($this->checkString('contributor'));
+    }
+
+    function test_feedIcon() {
+        $this->assertTrue($this->checkString('icon'));
+    }
+    
+    function test_feedId() {
+        $this->assertTrue($this->checkString('id'));
+    }
+    
+    function test_feedRights() {
+        $this->assertTrue($this->checkString('rights'));
+    }
+    
+    function test_feedTitle() {
+        $this->assertTrue($this->checkString('title'));
+    }
+    
+    function test_feedSubtitle() {
+        $this->assertTrue($this->checkString('subtitle'));
+    }
+    
+    function test_feedUpdated() {
+        $this->assertTrue($this->checkNumeric('updated'));
+    }
+    
+    function test_feedLink() {
+        $this->assertTrue($this->checkString('link'));
+    }
+    
+    function test_entryAuthor() {
+        $this->assertTrue($this->checkString('author', true));
+    }
+
+    function test_entryContributor()
+    {
+        $this->assertTrue($this->checkString('contributor', true));
+    }
+
+    function test_entryId() {
+        $this->assertTrue($this->checkString('id', true));
+    }
+    
+    function test_entryPublished() {
+        $this->assertTrue($this->checkNumeric('published', true));
+    }
+    
+    function testEntryTitle() {
+        $this->assertTrue($this->checkString('title', true));
+    }
+    
+    function testEntryRights() {
+        $this->assertTrue($this->checkString('rights', true));
+    }
+    
+    function testEntrySummary() {
+        $this->assertTrue($this->checkString('summary', true));
+    }
+    
+    function testEntryContent() {
+        $this->assertTrue($this->checkString('content', true));
+    }
+    
+    function testEntryLink() {
+        $this->assertTrue($this->checkString('link', true));
+    }
+}
+
+class XML_Feed_Parser_AtomCompat2_TestCase extends XML_Feed_Parser_AtomCompat1_TestCase
+{
+    function __construct($name)
+    {
+        $this->PHPUnit_TestCase($name);
+        $sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
+        $this->file = file_get_contents($sample_dir . DIRECTORY_SEPARATOR . 'atom10-example2.xml');
+        $this->parser = new XML_Feed_Parser($this->file);
+        $this->entry = $this->parser->getEntryByOffset(0);
+    }
+}
+
+class XML_Feed_Parser_AtomCompat3_TestCase extends XML_Feed_Parser_AtomCompat1_TestCase
+{
+    function __construct($name)
+    {
+        $this->PHPUnit_TestCase($name);
+        $sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
+        $this->file = file_get_contents($sample_dir . DIRECTORY_SEPARATOR . 'rss10-example1.xml');
+        $this->parser = new XML_Feed_Parser($this->file);
+        $this->entry = $this->parser->getEntryByOffset(0);
+    }
+}
+
+class XML_Feed_Parser_AtomCompat4_TestCase extends XML_Feed_Parser_AtomCompat1_TestCase
+{
+    function __construct($name)
+    {
+        $this->PHPUnit_TestCase($name);
+        $sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
+        $this->file = file_get_contents($sample_dir . DIRECTORY_SEPARATOR . 'rss10-example2.xml');
+        $this->parser = new XML_Feed_Parser($this->file);
+        $this->entry = $this->parser->getEntryByOffset(0);
+    }
+}
+
+class XML_Feed_Parser_AtomCompat5_TestCase extends XML_Feed_Parser_AtomCompat1_TestCase
+{
+    function __construct($name)
+    {
+        $this->PHPUnit_TestCase($name);
+        $sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
+        $this->file = file_get_contents($sample_dir . DIRECTORY_SEPARATOR . 'rss2sample.xml');
+        $this->parser = new XML_Feed_Parser($this->file);
+        $this->entry = $this->parser->getEntryByOffset(0);
+    }
+}
+
+class XML_Feed_Parser_AtomCompat6_TestCase extends XML_Feed_Parser_AtomCompat1_TestCase
+{
+    function __construct($name)
+    {
+        $this->PHPUnit_TestCase($name);
+        $sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
+        $this->file = file_get_contents($sample_dir . DIRECTORY_SEPARATOR . 'delicious.feed');
+        $this->parser = new XML_Feed_Parser($this->file);
+        $this->entry = $this->parser->getEntryByOffset(0);
+    }
+}
+
+class XML_Feed_Parser_AtomCompat7_TestCase extends XML_Feed_Parser_AtomCompat1_TestCase
+{
+    function __construct($name)
+    {
+        $this->PHPUnit_TestCase($name);
+        $sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
+        $this->file = file_get_contents($sample_dir . DIRECTORY_SEPARATOR . 'technorati.feed');
+        $this->parser = new XML_Feed_Parser($this->file);
+        $this->entry = $this->parser->getEntryByOffset(0);
+    }
+}
+
+class XML_Feed_Parser_AtomCompat8_TestCase extends XML_Feed_Parser_AtomCompat1_TestCase
+{
+    function __construct($name)
+    {
+        $this->PHPUnit_TestCase($name);
+        $sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
+        $this->file = file_get_contents($sample_dir . DIRECTORY_SEPARATOR . 'grwifi-atom.xml');
+        $this->parser = new XML_Feed_Parser($this->file);
+        $this->entry = $this->parser->getEntryByOffset(0);
+    }
+}
+
+$suite = new PHPUnit_TestSuite;
+$suite->addTestSuite('XML_Feed_Parser_AtomCompat1_TestCase');
+$suite->addTestSuite('XML_Feed_Parser_AtomCompat2_TestCase');
+$suite->addTestSuite('XML_Feed_Parser_AtomCompat3_TestCase');
+$suite->addTestSuite('XML_Feed_Parser_AtomCompat4_TestCase');
+$suite->addTestSuite('XML_Feed_Parser_AtomCompat5_TestCase');
+$suite->addTestSuite('XML_Feed_Parser_AtomCompat6_TestCase');
+$suite->addTestSuite('XML_Feed_Parser_AtomCompat7_TestCase');
+$suite->addTestSuite('XML_Feed_Parser_AtomCompat8_TestCase');
+$result = PHPUnit::run($suite, '123');
+echo $result->toString();
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/iteration.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/iteration.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/iteration.php	(revision 14612)
@@ -0,0 +1,53 @@
+<?php
+
+require_once 'XML_Feed_Parser_TestCase.php';
+
+class XML_Feed_Parser_Iteration_TestCase extends XML_Feed_Parser_TestCase
+{
+    function __construct($name)
+    {
+        $this->PHPUnit_TestCase($name);
+        $this->sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
+    }
+    
+    function setUp() {
+    }
+    
+    function tearDown() {
+    }
+    
+    function test_Atom() {
+        $sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
+        $feed = new XML_Feed_Parser(file_get_contents($this->sample_dir . "/grwifi-atom.xml"));
+        $entries = array();
+        foreach ($feed as $entry) {
+            array_push($entries, $entry);
+        }
+        $this->assertNotSame($entries[0], $entries[1]);
+    }
+
+    function test_RSS1() {
+        $feed = new XML_Feed_Parser(file_get_contents($this->sample_dir . "/delicious.feed"));
+        $entries = array();
+        foreach ($feed as $entry) {
+            array_push($entries, $entry);
+        }
+        $this->assertNotSame($entries[0], $entries[1]);
+    }
+    
+    function test_RSS2() {
+        $feed = new XML_Feed_Parser(file_get_contents($this->sample_dir . "/rss2sample.xml"));
+        $entries = array();
+        foreach ($feed as $entry) {
+            array_push($entries, $entry);
+        }
+        $this->assertNotSame($entries[0], $entries[1]);
+    }
+}
+
+$suite = new PHPUnit_TestSuite;
+$suite->addTestSuite("XML_Feed_Parser_Iteration_TestCase");
+$result = PHPUnit::run($suite, "123");
+echo $result->toString();
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/farsi.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/farsi.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/farsi.php	(revision 14612)
@@ -0,0 +1,27 @@
+<?php
+
+require_once 'XML_Feed_Parser_TestCase.php';
+
+class XML_Feed_Parser_Farsi_TestCase extends XML_Feed_Parser_TestCase
+{
+    function __construct($name)
+    {
+        $this->PHPUnit_TestCase($name);
+        $sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
+        $this->file = file_get_contents($sample_dir . DIRECTORY_SEPARATOR . 'hoder.xml');
+        $this->feed = new XML_Feed_Parser($this->file);
+        $this->entry = $this->feed->getEntryByOffset(0);
+    }
+
+    function test_itemTitleFarsi()
+    {
+        $value = 'لينکدونی‌ | جلسه‌ی امریکن انترپرایز برای تقسیم قومی ایران';
+        $this->assertEquals($value, $this->entry->title);
+    }
+}
+
+$suite = new PHPUnit_TestSuite('XML_Feed_Parser_Farsi_TestCase');
+$result = PHPUnit::run($suite, '123');
+echo $result->toString();
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/rss1Values.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/rss1Values.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/rss1Values.php	(revision 14612)
@@ -0,0 +1,189 @@
+<?php
+
+require_once 'XML_Feed_Parser_TestCase.php';
+
+class XML_Feed_Parser_RSS1_valueValidity_TestCase extends XML_Feed_Parser_TestCase
+{
+    function __construct($name)
+    {
+        $this->PHPUnit_TestCase($name);
+        $sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
+        $this->file = file_get_contents($sample_dir . DIRECTORY_SEPARATOR . "rss10-example2.xml");
+        $this->feed = new XML_Feed_Parser($this->file);
+        $this->entry = $this->feed->getEntryByOffset(0);
+    }
+
+    function setup()
+    {
+    }
+
+    function test_feedNumberItems()
+    {
+        $value = 1;
+        $this->assertEquals($value, $this->feed->numberEntries);
+    }
+    function test_feedTitle()
+    {
+        $value = "Meerkat";
+        $this->assertEquals($value, $this->feed->title);
+    }
+    
+    function test_feedLink()
+    {
+        $value = "http://meerkat.oreillynet.com";
+        $this->assertEquals($value, $this->feed->link);
+    }
+    
+    function test_feedDescription()
+    {
+        $value = "Meerkat: An Open Wire Service";
+        $this->assertEquals($value, $this->feed->description);
+    }
+    
+    function test_feedSubtitleEquivalence()
+    {
+        $value = "Meerkat: An Open Wire Service";
+        $this->assertEquals($value, $this->feed->subtitle);
+    }
+    
+    function test_feedPublisher()
+    {
+        $value = "The O'Reilly Network";
+        $this->assertEquals($value, $this->feed->publisher);
+    }
+    
+    function test_feedCreator()
+    {
+        $value = "Rael Dornfest (mailto:rael@oreilly.com)";
+        $this->assertEquals($value, $this->feed->creator);
+    }
+    
+    function test_feedAuthorEquivalence()
+    {
+        $value = "Rael Dornfest (mailto:rael@oreilly.com)"; 
+        $this->assertEquals($value, $this->feed->author);
+    }
+    
+    function test_feedRights()
+    {
+        $value = "Copyright &copy; 2000 O'Reilly &amp; Associates, Inc.";
+        $this->assertEquals($value, htmlentities(utf8_decode($this->feed->rights)));
+    }
+    
+    function test_feedDate()
+    {
+        $value = strtotime("2000-01-01T12:00+00:00");
+        $this->assertEquals($value, $this->feed->date);
+    }
+    
+    function test_feedUpdatedEquivalence()
+    {
+        $value = strtotime("2000-01-01T12:00+00:00");
+        $this->assertEquals($value, $this->feed->updated);
+    }
+    
+    function test_feedUpdatePeriod()
+    {
+        $value = 'hourly';
+        $this->assertEquals($value, $this->feed->updatePeriod);
+    }
+    
+    function test_feedUpdateFrequency()
+    {
+        $value = "2";
+        $this->assertEquals($value, $this->feed->updateFrequency);
+    }
+    
+    function test_feedUpdateBase()
+    {
+        $value = strtotime("2000-01-01T12:00+00:00");
+        $this->assertEquals($value, $this->feed->updateBase);
+    }
+    
+    function test_feedImage()
+    {
+        $value = array(
+            'title' => false,
+            'link' => false,
+            'url' => "http://meerkat.oreillynet.com/icons/meerkat-powered.jpg",
+            'description' => false,
+            'height' => false,
+            'width' => false);
+        $this->assertEquals($value, $this->feed->image);
+    }
+    
+    function test_entryTitle()
+    {
+        $value = "XML: A Disruptive Technology";
+        $this->assertEquals($value, $this->entry->title);
+    }
+    
+    function test_entryLink()
+    {
+        $value = "http://c.moreover.com/click/here.pl?r123";
+        $this->assertEquals($value, $this->entry->link);
+    }
+    
+    function test_entryDescription()
+    {
+        $value  = "XML is placing increasingly heavy loads on the existing technical infrastructure of the Internet.";
+        $description = trim($this->entry->description);
+        $description = preg_replace("/\t/", " ", $description);
+        $description = preg_replace("/(\s\s)+/", " ", $description);
+        $description = preg_replace("/(\s\s)+/", " ", $description);
+        $this->assertEquals($value, $description);
+    }
+    
+    function test_entryRights()
+    {
+        $value = "Copyright &copy; 2000 O'Reilly &amp; Associates, Inc.";
+        $this->assertEquals($value, htmlentities(utf8_decode($this->feed->rights)));
+    }
+    
+    function test_entryCreator()
+    {
+        $value = "Simon St.Laurent (mailto:simonstl@simonstl.com)";
+        $this->assertEquals($value, $this->entry->creator);
+    }
+    
+    function test_entryAuthorEquivalence()
+    {
+        $value = "Simon St.Laurent (mailto:simonstl@simonstl.com)";
+        $this->assertEquals($value, $this->entry->author);
+    }
+    
+    function test_entryPublisher()
+    {
+        $value = "The O'Reilly Network";
+        $this->assertEquals($value, $this->entry->publisher);
+    }
+    
+    function test_entryCategory()
+    {
+        $value = "XML";
+        $this->assertEquals($value, $this->entry->category);
+    }
+    
+    function test_entryIdEquivalence()
+    {
+        $value = "http://c.moreover.com/click/here.pl?r123";
+        $this->assertEquals($value, $this->entry->id);
+    }
+    
+    function test_feedTextInput()
+    {
+        $value = array(
+            'title' => null,
+             'description' => null,
+             'name' => null,
+             'link' => "http://meerkat.oreillynet.com");
+        $this->assertEquals($value, $this->feed->textinput);
+    }
+}
+
+$suite = new PHPUnit_TestSuite;
+$suite->addTestSuite("XML_Feed_Parser_RSS1_valueValidity_TestCase");
+$result = PHPUnit::run($suite, "123");
+echo $result->toString();
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/rss2Values.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/rss2Values.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/rss2Values.php	(revision 14612)
@@ -0,0 +1,147 @@
+<?php
+
+require_once 'XML_Feed_Parser_TestCase.php';
+
+class XML_Feed_Parser_RSS2_valueValidity_TestCase extends XML_Feed_Parser_TestCase
+{
+    function __construct($name)
+    {
+        $this->PHPUnit_TestCase($name);
+        $sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
+        $this->file = file_get_contents($sample_dir . DIRECTORY_SEPARATOR . "rss2sample.xml");
+        $this->feed = new XML_Feed_Parser($this->file);
+        $this->entry = $this->feed->getEntryByOffset(2);
+    }
+
+    function test_feedNumberItems()
+    {
+        $value = 4;
+        $this->assertEquals($value, $this->feed->numberEntries);
+    }
+    function test_feedTitle()
+    {
+        $value = "Liftoff News";
+        $this->assertEquals($value, $this->feed->title);
+    }
+    
+    function test_feedLink()
+    {
+        $value = "http://liftoff.msfc.nasa.gov/";
+        $this->assertEquals($value, $this->feed->link);
+    }
+    
+    function test_feedDescription()
+    {
+        $value = "Liftoff to Space Exploration.";
+        $this->assertEquals($value, $this->feed->description);
+    }
+    
+    function test_feedSubtitleEquivalence()
+    {
+        $value = "Liftoff to Space Exploration.";
+        $this->assertEquals($value, $this->feed->subtitle);
+    }
+    
+    function test_feedDate()
+    {
+        $value = strtotime("Tue, 10 Jun 2003 04:00:00 GMT");
+        $this->assertEquals($value, $this->feed->date);
+    }
+    
+    function test_feedLastBuildDate()
+    {
+        $value = strtotime("Tue, 10 Jun 2003 09:41:01 GMT");
+        $this->assertEquals($value, $this->feed->lastBuildDate);
+    }
+    
+    function test_feedUpdatedEquivalence()
+    {
+        $value = strtotime("Tue, 10 Jun 2003 09:41:01 GMT");
+        $this->assertEquals($value, $this->feed->updated);
+    }
+    
+    function test_feedGenerator()
+    {
+        $value = 'Weblog Editor 2.0';
+        $this->assertEquals($value, $this->feed->generator);
+    }
+    
+    function test_feedLanguage()
+    {
+        $value = "en-us";
+        $this->assertEquals($value, $this->feed->language);
+    }
+    
+    function test_feedDocs()
+    {
+        $value = "http://blogs.law.harvard.edu/tech/rss";
+        $this->assertEquals($value, $this->feed->docs);
+    }
+    
+    function test_feedManagingEditor()
+    {
+        $value = "editor@example.com";
+        $this->assertEquals($value, $this->feed->managingEditor);
+    }
+    
+    function test_feedAuthorEquivalence()
+    {
+        $value = "editor@example.com";
+        $this->assertEquals($value, $this->feed->author);
+    }
+    
+    function test_feedWebmaster()
+    {
+        $value = "webmaster@example.com";
+        $this->assertEquals($value, $this->feed->webMaster);
+    }
+    
+    function test_entryTitle()
+    {
+        $value = "The Engine That Does More";
+        $this->assertEquals($value, $this->entry->title);
+    }
+    
+    function test_entryLink()
+    {
+        $value = "http://liftoff.msfc.nasa.gov/news/2003/news-VASIMR.asp";
+        $this->assertEquals($value, $this->entry->link);
+    }
+    
+    function test_entryDescription()
+    {
+        $value = "Before man travels to Mars, NASA hopes to design new engines that will let us fly through the Solar System more quickly.  The proposed VASIMR engine would do that.";
+        $this->assertEquals($value, $this->entry->description);
+    }
+    
+    function test_entryPubDate()
+    {
+        $value = strtotime("Tue, 27 May 2003 08:37:32 GMT");
+        $this->assertEquals($value, $this->entry->pubDate);
+    }
+    
+    function test_entryGuid()
+    {
+        $value = "http://liftoff.msfc.nasa.gov/2003/05/27.html#item571";
+        $this->assertEquals($value, $this->entry->guid);
+    }
+    
+    function test_entryIdEquivalence()
+    {
+        $value = "http://liftoff.msfc.nasa.gov/2003/05/27.html#item571";
+        $this->assertEquals($value, $this->entry->id);   
+    }
+
+	function test_entryContent()
+	{
+		$value = "<p>Test content</p>";
+		$this->assertEquals($value, $this->entry->content);
+	}
+}
+
+$suite = new PHPUnit_TestSuite;
+$suite->addTestSuite("XML_Feed_Parser_RSS2_valueValidity_TestCase");
+$result = PHPUnit::run($suite, "123");
+echo $result->toString();
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/tidy.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/tidy.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/tidy.php	(revision 14612)
@@ -0,0 +1,47 @@
+<?php
+
+require_once 'XML_Feed_Parser_TestCase.php';
+
+class XML_Feed_Parser_Tidy_TestCase extends XML_Feed_Parser_TestCase
+{
+    
+    function __construct($name)
+    {
+        $this->PHPUnit_TestCase($name);
+    }
+    
+    function setUp() {
+    }
+    
+    function tearDown() {
+    }
+
+    /**
+     * Try to work with this ill-formed feed. If the tidy extension is not installed,
+     * it expects parsing to fail. If tidy is installed and parsing fails, the test
+     * fails. If tidy is installed and it parses, then the test passes.
+     */ 
+    function test_Tidy() {
+        $sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
+        $file = file_get_contents($sample_dir . DIRECTORY_SEPARATOR . "illformed_atom10.xml");
+        try {
+            $feed = new XML_Feed_Parser($file, false, true, true);    
+        } catch (XML_Feed_Parser_Exception $e) {
+            if (extension_loaded('tidy')) {
+                $this->assertTrue(false);
+            } else {
+                $this->assertTrue(true);
+            }
+            return;
+        }
+        $entry = $feed->getEntryByOffset(0);
+        $this->assertEquals($entry->author, 'Example author');
+    }
+}
+
+$suite = new PHPUnit_TestSuite;
+$suite->addTestSuite("XML_Feed_Parser_Tidy_TestCase");
+$result = PHPUnit::run($suite, "123");
+echo $result->toString();
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/errors.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/errors.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/errors.php	(revision 14612)
@@ -0,0 +1,98 @@
+<?php
+
+require_once 'XML_Feed_Parser_TestCase.php';
+
+/**
+ * This test is to make sure that we get errors when we should. In
+ * particular we check that it throws an exception if we hand in an
+ * illegal feed type.
+ */
+class XML_Feed_Parser_ThrowErrors_TestCase extends XML_Feed_Parser_TestCase
+{
+    
+    function __construct($name)
+    {
+        $this->PHPUnit_TestCase($name);
+    }
+    
+    function setUp() {
+    }
+    
+    function tearDown() {
+    }
+    
+    function test_fakeFeedType()
+    {
+        $file = "<myfeed><myitem /></myfeed>";
+        try {
+            $feed = new XML_Feed_Parser($file, false, true);
+        } catch (Exception $e) {
+            $this->assertTrue($e instanceof XML_Feed_Parser_Exception);
+        }
+    }
+    
+    function test_badRSSVersion()
+    {
+        $file = "<?xml version=\"1.0\"?>
+        <rss version=\"0.8\">
+           <channel></channel></rss>";
+       try {
+           $feed = new XML_Feed_Parser($file, false, true);
+       } catch (Exception $e) {
+           $this->assertTrue($e instanceof XML_Feed_Parser_Exception);
+       }
+    }
+    
+    function test_emptyInput()
+    {
+        $file = null;
+        try {
+            $feed = new XML_Feed_Parser($file, false, true);
+        } catch (Exception $e) {
+            $this->assertTrue($e instanceof XML_Feed_Parser_Exception);
+        }
+    }
+
+    function test_nonXMLInput()
+    {
+        $file = "My string";
+        try {
+            $feed = new XML_Feed_Parser($file, false, true);
+        } catch (Exception $e) {
+            $this->assertTrue($e instanceof XML_Feed_Parser_Exception);
+        }
+    }
+    
+    function test_missingElement() {
+        $file = '<?xml version="1.0" encoding="utf-8"?>
+        <rss version="2.0">
+           <channel>
+              <title>sample blog</title>
+              <link>http://www.example.com/</link>
+              <description>sample rss2 feed</description>
+              <language>en</language>
+              <copyright>Copyright 2006</copyright>
+              <lastBuildDate>Tue, 25 Jul 2006 11:53:38 -0500</lastBuildDate>
+              <generator>http://www.sixapart.com/movabletype/?v=3.31</generator>
+              <docs>http://blogs.law.harvard.edu/tech/rss</docs> 
+              <item>
+                 <title>A sample entry</title>
+                 <description>Sample content</description>
+                 <link>http://www.example.com/archives/2006/07</link>
+                 <guid>http://www.example.com/archives/2006/07</guid>
+                 <category>Examples</category>
+                 <pubDate>Tue, 25 Jul 2006 11:53:38 -0500</pubDate>
+              </item>
+            </channel></rss>';
+          $feed = new XML_Feed_Parser($file, false, true);
+          $entry = $feed->getEntryByOffset(0);
+          $this->assertFalse($entry->enclosure());
+    }
+}
+
+$suite = new PHPUnit_TestSuite;
+$suite->addTestSuite("XML_Feed_Parser_ThrowErrors_TestCase");
+$result = PHPUnit::run($suite, "123");
+echo $result->toString();
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/atomValues.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/atomValues.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/atomValues.php	(revision 14612)
@@ -0,0 +1,161 @@
+<?php
+
+require_once 'XML_Feed_Parser_TestCase.php';
+
+class XML_Feed_Parser_Atom_valueValidity_TestCase extends XML_Feed_Parser_TestCase
+{
+    function __construct($name)
+    {
+        $this->PHPUnit_TestCase($name);
+        $sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
+        $this->file = file_get_contents($sample_dir . DIRECTORY_SEPARATOR . 'atom10-example2.xml');
+        $this->feed = new XML_Feed_Parser($this->file);
+        $this->entry = $this->feed->getEntryByOffset(0);
+    }
+
+    function test_feedNumberItems()
+    {
+        $value = 1;
+        $this->assertEquals($value, $this->feed->numberEntries);
+    }
+
+    function test_FeedTitle()
+    {
+        $value = 'dive into mark';
+        $this->assertEquals($value, $this->feed->title);
+    }
+    
+    function test_feedSubtitle()
+    {
+        $value = 'A <em>lot</em> of effort
+  went into making this effortless';
+        $content = trim($this->feed->subtitle);
+        $content = preg_replace('/\t/', ' ', $content);
+        $content = preg_replace('/(  )+/', ' ', $content);
+        $this->assertEquals($content, $value);
+    }
+    
+    function test_feedUpdated()
+    {
+        $value = strtotime('2005-07-31T12:29:29Z');
+        $this->assertEquals($this->feed->updated, $value);
+    }
+    
+    function test_feedId()
+    {
+        $value = 'tag:example.org,2003:3';
+        $this->assertEquals($this->feed->id, $value);
+    }
+    
+    function test_feedRights()
+    {
+        $value = 'Copyright (c) 2003, Mark Pilgrim';
+        $this->assertEquals($this->feed->rights, $value);
+    }
+    
+    function test_feedLinkPlain()
+    {
+        $value = 'http://example.org/';
+        $this->assertEquals($this->feed->link, $value);
+    }
+
+    function test_feedLinkAttributes()
+    {
+        $value = 'self';
+        $link = $this->feed->link(0, 'rel', array('type' => 'application/atom+xml'));
+        $this->assertEquals($link, $value);
+    }
+    
+    function test_feedGenerator()
+    {
+        $value = 'Example Toolkit';
+        $this->assertEquals($value, trim($this->feed->generator));
+    }
+    
+    function test_entryTitle()
+    {
+        $value = 'Atom draft-07 snapshot';
+        $this->assertEquals($value, trim($this->entry->title));
+    }
+    
+    function test_entryLink()
+    {
+        $value = 'http://example.org/2005/04/02/atom';
+        $this->assertEquals($value, trim($this->entry->link));
+    }
+    
+    function test_entryId()
+    {
+        $value = 'tag:example.org,2003:3.2397';
+        $this->assertEquals($value, trim($this->entry->id));
+    }
+    function test_entryUpdated()
+    {
+        $value = strtotime('2005-07-31T12:29:29Z');
+        $this->assertEquals($value, $this->entry->updated);
+    }
+    
+    function test_entryPublished()
+    {
+        $value = strtotime('2003-12-13T08:29:29-04:00');
+        $this->assertEquals($value, $this->entry->published);
+    }
+    
+    function test_entryContent()
+    {
+        $value = '<p><i>[Update: The Atom draft is finished.]</i></p>';
+        $content = trim($this->entry->content);
+        $content = preg_replace('/\t/', ' ', $content);
+        $content = preg_replace('/(  )+/', ' ', $content);
+        $this->assertEquals($value, $content);
+    }
+    
+    function test_entryAuthorURL()
+    {
+        $value = 'http://example.org/';
+        $name = $this->entry->author(false, array('param' => 'uri'));
+        $this->assertEquals($value, $name);
+    }
+    
+    function test_entryAuthorName()
+    {
+        $value = 'Mark Pilgrim';
+        $this->assertEquals($value, $this->entry->author);
+    }
+    
+    function test_entryContributor()
+    {
+        $value = 'Sam Ruby';
+        $this->assertEquals($value, $this->entry->contributor);
+    }
+    
+    function test_entryContributorOffset()
+    {
+        $value = 'Joe Gregorio';
+        $this->assertEquals($value, $this->entry->contributor(1));
+    }
+    
+    # According to RFC4287 section 4.2.7.2:
+    # [..]If the 'rel' attribute is not present, the link element MUST be
+    # interpreted as if the link relation type is "alternate".
+    function test_getsLinkWithoutRel()
+    {
+        $source = '<?xml version="1.0" ?>
+        <entry xmlns="http://www.w3.org/2005/Atom">
+        <link href="http://example.org/2005/04/02/atom" />
+        </entry>
+        ';
+        $feed = new XML_Feed_Parser($source);
+        $entry = $feed->getEntryByOffset(0);
+
+        // Output
+        $this->assertEquals( "http://example.org/2005/04/02/atom", 
+            $entry->link(0, 'href', array('rel'=>'alternate')));
+    }
+}
+
+$suite = new PHPUnit_TestSuite('XML_Feed_Parser_Atom_valueValidity_TestCase');
+$result = PHPUnit::run($suite, '123');
+echo $result->toString();
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convert-tests.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convert-tests.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/convert-tests.php	(revision 14612)
@@ -0,0 +1,148 @@
+<?php
+
+$template = '<?php
+require_once \'PHPUnit.php\';
+require_once \'XML/Feed/Parser.php\';
+class ';
+
+$endTemplate = '
+$result = PHPUnit::run($suite, \'123\');
+echo $result->toString();
+
+?>
+';
+error_reporting(E_ERROR);
+
+function applyFilters(&$test)
+{
+    if (! strstr($test, 'bozo') and ! preg_match('/^encoding/', $test)
+        and ! preg_match('/^header/', $test))
+    {
+        $testparts = explode(' == ', $test);
+        $testparts[0] = preg_replace('/^not/', '!', $testparts[0]);
+        $testparts[0] = preg_replace('/(^|\s)feed/', '$1\$feed', $testparts[0]);
+        $testparts[0] = preg_replace('/entries\[(\d+)\]/', '\$feed->getEntryByOffset($1)', $testparts[0]);
+        $testparts[0] = preg_replace('/\[\'(.*)\'\]/', '->$1', $testparts[0]);
+        $testparts[0] = preg_replace('/\'.*?\'/', '->', $testparts[0]);
+        $testparts[0] = preg_replace('/^version$/', '\$feed->version()', $testparts[0]);
+        $testparts[0] = preg_replace('/_detail->value/', '', $testparts[0]);
+        $testparts[0] = preg_replace('/_detail->(.*)/', '(0, \'$1\')', $testparts[0]);
+        $testparts[0] = preg_replace('/getEntryByOffset\(0\)->(.*?)->(.*)/', 
+            'getEntryByOffset(0)->$1(0, \'$2\')', $testparts[0]);
+
+        if (! preg_match('/feed->getEntry/', $testparts[0])) {
+            $testparts[0] = preg_replace('/feed->(.*?)->(.*)/', 'feed->$1(0, \'$2\')', $testparts[0]);
+        }
+
+        $testparts[1] = preg_replace('/u\'/', '\'', $testparts[1]);
+        $testparts[1] = preg_replace('/\'(.*?)\': \'(.*?)\'/', '\'$1\' => \'$2\'', $testparts[1]);
+        $testparts[1] = preg_replace('/{(.*?)}/', 'array($1)', $testparts[1]);
+        $testparts[1] = preg_replace('/\[(.*?)\]/', 'array($1)', $testparts[1]);
+        $testparts[1] = preg_replace('/^\((.*)\)$/', 'array($1)', $testparts[1]);
+        $testparts[1] = preg_replace('/^<div>(.*)<\/div>$/', '$1', $testparts[1]);
+
+        $test = implode(' == ', $testparts);
+        return $test;
+    }
+}
+
+function testToPHP($test)
+{
+    $tests = explode(' and ', $test);
+    return $tests;
+}
+
+function extractTest($path)
+{
+    $data = array();
+    $f = fopen('./feedparsertests/wellformed/' . $path, 'r');
+    while ($line = fgets($f))
+    {
+        $line = trim($line);
+        if (preg_match('/^Description:/', $line))
+        {
+            $data['description'] = trim(preg_replace('/Description:/', '', $line));
+        } else if (preg_match('/^Expect:/', $line))
+        {
+            $data['expect'] = trim(preg_replace('/Expect:/', '', $line));
+        }
+        if (!empty($data['expect']) and !empty($data['description']))
+        {
+            break;
+        }
+    }
+    fclose($f);
+    return $data;
+}
+
+$handle = opendir('./feedparsertests/wellformed/');
+$tests_passed = array();
+$tests_failed = array();
+$all_tests = array();
+while (false !== ($dir = readdir($handle)))
+{
+    if (! preg_match('/^\./', $dir) and is_dir('./feedparsertests/wellformed/' . $dir))
+    {
+        $tests_passed[$dir] = array();
+        $tests_failed[$dir] = array();
+        $allTests[$dir] = array();
+        $innerHandle = opendir('feedparsertests/wellformed/' . $dir);
+        while (false !== ($file = readdir($innerHandle)))
+        {
+            if (preg_match('/.xml$/', $file))
+            {
+                $parts = extractTest($dir . '/' . $file);
+                $theseTests = testToPHP($parts['expect']);
+                foreach ($theseTests as $thisKey => $thisTest)
+                {
+                    $allTests[$dir][$file . '_' . $thisKey] = $thisTest;
+                }
+            }
+        }
+        $iterTests = array_filter($allTests[$dir], 'applyFilters');
+        $fw = fopen('./convertedtests/' . $dir . '.php', 'w');
+        fwrite($fw, $template . $dir . "_TestCase extends XML_Feed_Parser_TestCase {\n");
+        foreach($iterTests as $key => $test)
+        {
+            $funcname = str_replace('.xml', '', $key);
+            $funcname = str_replace('.', '_', $funcname);
+            $file = preg_replace('/(.*)_.*/', '$1', $key);
+            fwrite($fw, '
+    function test_' . $funcname . ' () { 
+        $content = file_get_contents(\'../feedparsertests/wellformed/' . $dir . '/' . $file . '\');
+        try {
+            $feed = new XML_Feed_Parser($content);
+        } catch (XML_Feed_Parser_Exception $e) {
+            $this->assertTrue(false);
+            return;
+        }
+        $this->assertEquals(' . implode(', ', array_reverse(explode(' == ', $test))) .');
+    }
+');
+        }
+        fwrite($fw, '}
+
+$suite = new PHPUnit_TestSuite(\'' . $dir . '_TestCase\');');
+        fwrite($fw, $endTemplate);
+        fclose($fw);
+        $all_tests = array_merge($all_tests, $allTests[$dir]);
+    }
+}
+
+$total_tests = 0;
+$total_passed = 0;
+$total_failed = 0;
+
+foreach($tests_passed as $test)
+{
+    $total_tests += count($test);
+    $total_passed += count($test);
+}
+
+foreach ($tests_failed as $testf)
+{
+    $total_tests += count($testf);
+    $total_failed += count($testf);
+}
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/rss091Values.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/rss091Values.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/rss091Values.php	(revision 14612)
@@ -0,0 +1,149 @@
+<?php
+
+require_once 'XML_Feed_Parser_TestCase.php';
+
+class XML_Feed_Parser_RSS091_valueValidity_TestCase extends XML_Feed_Parser_TestCase
+{
+    function __construct($name)
+    {
+        $this->PHPUnit_TestCase($name);
+        $sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
+        $this->file = file_get_contents($sample_dir . DIRECTORY_SEPARATOR . "rss091-complete.xml");
+        $this->feed = new XML_Feed_Parser($this->file, false, true);
+        $this->entry = $this->feed->getEntryByOffset(0);
+    }
+
+    function test_feedRights()
+    {
+        $value = "Copyright 1997-1999 UserLand Software, Inc.";
+        $this->assertEquals($value, $this->feed->rights);
+        $this->assertEquals($value, $this->feed->copyright);
+    }
+
+    function test_feedNumberItems()
+    {
+        $value = 1;
+        $this->assertEquals($value, $this->feed->numberEntries);
+    }
+
+    function test_feedTitle()
+    {
+        $value = "Scripting News";
+        $this->assertEquals($value, $this->feed->title);
+    }
+    
+    function test_feedLink()
+    {
+        $value = "http://www.scripting.com/";
+        $this->assertEquals($value, $this->feed->link);
+    }
+    
+    function test_feedImage()
+    {
+        $value = array(
+            "title" => "Scripting News",
+            "link" => "http://www.scripting.com/",
+            "url" => "http://www.scripting.com/gifs/tinyScriptingNews.gif",
+            "description" => "What is this used for?",
+            'height' => "40",
+            'width' => "78");
+        $this->assertEquals($value, $this->feed->image);
+    }
+
+    function test_feedDescription()
+    {
+        $value = "News and commentary from the cross-platform scripting community.";
+        $this->assertEquals($value, $this->feed->description);
+    }
+    
+    function test_feedSubtitleEquivalence()
+    {
+        $value = "News and commentary from the cross-platform scripting community.";
+        $this->assertEquals($value, $this->feed->subtitle);
+    }
+    
+    function test_feedDate()
+    {
+        $value = strtotime("Thu, 08 Jul 1999 07:00:00 GMT");
+        $this->assertEquals($value, $this->feed->date);
+    }
+    
+    function test_feedLastBuildDate()
+    {
+        $value = strtotime("Thu, 08 Jul 1999 16:20:26 GMT");
+        $this->assertEquals($value, $this->feed->lastBuildDate);
+    }
+    
+    function test_feedUpdatedEquivalence()
+    {
+        $value = strtotime("Thu, 08 Jul 1999 16:20:26 GMT");
+        $this->assertEquals($value, $this->feed->updated);
+    }
+    
+    function test_feedLanguage()
+    {
+        $value = "en-us";
+        $this->assertEquals($value, $this->feed->language);
+    }
+    
+    function test_feedSkipHours()
+    {
+        $value = array("6", "7", "8", "9", "10", "11");
+        $this->assertEquals($value, $this->feed->skipHours);
+    }
+
+    function test_feedSkipDays()
+    {
+        $value = array("Sunday");
+        $this->assertEquals($value, $this->feed->skipDays);
+    }
+
+    function test_feedDocs()
+    {
+        $value = "http://my.userland.com/stories/storyReader$11";
+        $this->assertEquals($value, $this->feed->docs);
+    }
+    
+    function test_feedManagingEditor()
+    {
+        $value = "dave@userland.com (Dave Winer)";
+        $this->assertEquals($value, $this->feed->managingEditor);
+    }
+    
+    function test_feedAuthorEquivalence()
+    {
+        $value = "dave@userland.com (Dave Winer)";
+        $this->assertEquals($value, $this->feed->author);
+    }
+    
+    function test_feedWebmaster()
+    {
+        $value = "dave@userland.com (Dave Winer)";
+        $this->assertEquals($value, $this->feed->webMaster);
+    }
+    
+    function test_entryTitle()
+    {
+        $value = "stuff";
+        $this->assertEquals($value, $this->entry->title);
+    }
+    
+    function test_entryLink()
+    {
+        $value = "http://bar";
+        $this->assertEquals($value, $this->entry->link);
+    }
+    
+    function test_entryDescription()
+    {
+        $value = "This is an article about some stuff";
+        $this->assertEquals($value, $this->entry->description);
+    }
+}
+
+$suite = new PHPUnit_TestSuite;
+$suite->addTestSuite("XML_Feed_Parser_RSS091_valueValidity_TestCase");
+$result = PHPUnit::run($suite, "123");
+echo $result->toString();
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/rss092Values.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/rss092Values.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/rss092Values.php	(revision 14612)
@@ -0,0 +1,103 @@
+<?php
+
+require_once 'XML_Feed_Parser_TestCase.php';
+
+class XML_Feed_Parser_RSS092_valueValidity_TestCase extends XML_Feed_Parser_TestCase
+{
+    function __construct($name)
+    {
+        $this->PHPUnit_TestCase($name);
+        $sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
+        $this->file = file_get_contents($sample_dir . DIRECTORY_SEPARATOR . "rss092-sample.xml");
+        $this->feed = new XML_Feed_Parser($this->file, false, true);
+        $this->entry = $this->feed->getEntryByOffset(0);
+    }
+
+    function test_feedNumberItems()
+    {
+        $value = 22;
+        $this->assertEquals($value, $this->feed->numberEntries);
+    }
+
+    function test_feedTitle()
+    {
+        $value = "Dave Winer: Grateful Dead";
+        $this->assertEquals($value, $this->feed->title);
+    }
+    
+    function test_feedLink()
+    {
+        $value = "http://www.scripting.com/blog/categories/gratefulDead.html";
+        $this->assertEquals($value, $this->feed->link);
+    }
+
+    function test_feedDescription()
+    {
+        $value = "A high-fidelity Grateful Dead song every day. This is where we're experimenting with enclosures on RSS news items that download when you're not using your computer. If it works (it will) it will be the end of the Click-And-Wait multimedia experience on the Internet. ";
+        $this->assertEquals($value, $this->feed->description);
+    }
+    
+    function test_feedSubtitleEquivalence()
+    {
+        $value = "A high-fidelity Grateful Dead song every day. This is where we're experimenting with enclosures on RSS news items that download when you're not using your computer. If it works (it will) it will be the end of the Click-And-Wait multimedia experience on the Internet. ";
+        $this->assertEquals($value, $this->feed->subtitle);
+    }
+    
+    function test_feedLastBuildDate()
+    {
+        $value = strtotime("Fri, 13 Apr 2001 19:23:02 GMT");
+        $this->assertEquals($value, $this->feed->lastBuildDate);
+    }
+    
+    function test_feedUpdatedEquivalence()
+    {
+        $value = strtotime("Fri, 13 Apr 2001 19:23:02 GMT");
+        $this->assertEquals($value, $this->feed->updated);
+    }
+    
+    function test_feedDocs()
+    {
+        $value = "http://backend.userland.com/rss092";
+        $this->assertEquals($value, $this->feed->docs);
+    }
+    
+    function test_feedManagingEditor()
+    {
+        $value = "dave@userland.com (Dave Winer)";
+        $this->assertEquals($value, $this->feed->managingEditor);
+    }
+    
+    function test_feedAuthorEquivalence()
+    {
+        $value = "dave@userland.com (Dave Winer)";
+        $this->assertEquals($value, $this->feed->author);
+    }
+    
+    function test_feedWebmaster()
+    {
+        $value = "dave@userland.com (Dave Winer)";
+        $this->assertEquals($value, $this->feed->webMaster);
+    }
+    
+    function test_entryDescription()
+    {
+        $value = "It's been a few days since I added a song to the Grateful Dead channel. Now that there are all these new Radio users, many of whom are tuned into this channel (it's #16 on the hotlist of upstreaming Radio users, there's no way of knowing how many non-upstreaming users are subscribing, have to do something about this..). Anyway, tonight's song is a live version of Weather Report Suite from Dick's Picks Volume 7. It's wistful music. Of course a beautiful song, oft-quoted here on Scripting News. <i>A little change, the wind and rain.</i>";
+        $this->assertEquals($value, trim($this->entry->description));
+    }
+    
+    function test_entryEnclosure()
+    {
+        $value = array(
+            'url' =>  'http://www.scripting.com/mp3s/weatherReportDicksPicsVol7.mp3',
+            'length' => '6182912',
+            'type' => 'audio/mpeg');
+        $this->assertEquals($value, $this->entry->enclosure);
+    }
+}
+
+$suite = new PHPUnit_TestSuite;
+$suite->addTestSuite("XML_Feed_Parser_RSS092_valueValidity_TestCase");
+$result = PHPUnit::run($suite, "123");
+echo $result->toString();
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/atomEntryOnly.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/atomEntryOnly.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/tests/atomEntryOnly.php	(revision 14612)
@@ -0,0 +1,93 @@
+<?php
+
+require_once 'XML_Feed_Parser_TestCase.php';
+
+class XML_Feed_Parser_AtomEntryOnly_TestCase extends XML_Feed_Parser_TestCase
+{
+    function __construct($name)
+    {
+        $this->PHPUnit_TestCase($name);
+        $sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
+        $this->feed = new XML_Feed_Parser(file_get_contents($sample_dir . DIRECTORY_SEPARATOR . 'atom10-entryonly.xml'));
+        $this->entry = $this->feed->getEntryByOffset(0);
+    }
+
+    function test_Title()
+    {
+        $value = 'Atom draft-07 snapshot';
+        $this->assertEquals($this->entry->title, $value);
+    }
+
+    function test_Id()
+    {
+        $value = 'tag:example.org,2003:3.2397';
+        $this->assertEquals($this->entry->id, $value);
+    }
+
+    function test_Updated()
+    {
+        $value = strtotime('2005-07-10T12:29:29Z');
+        $this->assertEquals($this->entry->updated, $value);
+    }
+
+    function test_Published()
+    {
+        $value = strtotime('2003-12-13T08:29:29-04:00');
+        $this->assertEquals($this->entry->published, $value);
+    }
+    
+    function test_AuthorURI()
+    {
+        $value = 'http://example.org/';
+        $this->assertEquals($value, $this->entry->author(null, array('param' => 'uri')));
+    }
+
+    function test_Contributor()
+    {
+        $value = 'Sam Ruby';
+        $this->assertEquals($this->entry->contributor, $value);
+    }
+
+    function test_Contributor2()
+    {
+        $value = 'Joe Gregorio';
+        $this->assertEquals($this->entry->contributor(1), $value);
+    }
+
+    function test_Content()
+    {
+        $value = '<p><i>[Update: The Atom draft is finished.]</i></p>';
+        $content = trim(preg_replace('/\t/', ' ', $this->entry->content));
+        $content = preg_replace('/(\s\s)+/', ' ', $content);
+        $this->assertEquals($value, $content);
+    }
+
+    function test_Link()
+    {
+        $value = 'http://example.org/2005/04/02/atom';
+        $this->assertEquals($this->entry->link, $value);
+    }
+    
+    function test_Enclosure()
+    {
+        $value = array (
+           'url' => 'http://example.org/audio/ph34r_my_podcast.mp3',
+           'type' => 'audio/mpeg',
+           'length' => '1337');
+        $this->assertEquals($this->entry->enclosure, $value);
+    }
+    
+    
+    function test_entryXPath()
+    {
+        $this->assertEquals('http://example.org/2005/04/02/atom', 
+            $this->entry->link(0, 'href', array('rel'=>'alternate')));
+    }
+}
+
+$suite = new PHPUnit_TestSuite;
+$suite->addTestSuite('XML_Feed_Parser_AtomEntryOnly_TestCase');
+$result = PHPUnit::run($suite, '123');
+echo $result->toString();
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/schemas/atom.rnc
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/schemas/atom.rnc	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/schemas/atom.rnc	(revision 14612)
@@ -0,0 +1,338 @@
+# -*- rnc -*-
+# RELAX NG Compact Syntax Grammar for the
+# Atom Format Specification Version 11
+
+namespace atom = "http://www.w3.org/2005/Atom"
+namespace xhtml = "http://www.w3.org/1999/xhtml"
+namespace s = "http://www.ascc.net/xml/schematron"
+namespace local = ""
+
+start = atomFeed | atomEntry
+
+# Common attributes
+
+atomCommonAttributes =
+   attribute xml:base { atomUri }?,
+   attribute xml:lang { atomLanguageTag }?,
+   undefinedAttribute*
+
+# Text Constructs
+
+atomPlainTextConstruct =
+   atomCommonAttributes,
+   attribute type { "text" | "html" }?,
+   text
+
+atomXHTMLTextConstruct =
+   atomCommonAttributes,
+   attribute type { "xhtml" },
+   xhtmlDiv
+
+atomTextConstruct = atomPlainTextConstruct | atomXHTMLTextConstruct
+
+# Person Construct
+
+atomPersonConstruct =
+   atomCommonAttributes,
+   (element atom:name { text }
+    & element atom:uri { atomUri }?
+    & element atom:email { atomEmailAddress }?
+    & extensionElement*)
+
+# Date Construct
+
+atomDateConstruct =
+   atomCommonAttributes,
+   xsd:dateTime
+
+# atom:feed
+
+atomFeed =
+   [
+      s:rule [
+         context = "atom:feed"
+         s:assert [
+            test = "atom:author or not(atom:entry[not(atom:author)])"
+            "An atom:feed must have an atom:author unless all "
+            ~ "of its atom:entry children have an atom:author."
+         ]
+      ]
+   ]
+   element atom:feed {
+      atomCommonAttributes,
+      (atomAuthor*
+       & atomCategory*
+       & atomContributor*
+       & atomGenerator?
+       & atomIcon?
+       & atomId
+       & atomLink*
+       & atomLogo?
+       & atomRights?
+       & atomSubtitle?
+       & atomTitle
+       & atomUpdated
+       & extensionElement*),
+      atomEntry*
+   }
+
+# atom:entry
+
+atomEntry =
+   [
+      s:rule [
+         context = "atom:entry"
+         s:assert [
+            test = "atom:link[@rel='alternate'] "
+            ~ "or atom:link[not(@rel)] "
+            ~ "or atom:content"
+            "An atom:entry must have at least one atom:link element "
+            ~ "with a rel attribute of 'alternate' "
+            ~ "or an atom:content."
+         ]
+      ]
+      s:rule [
+         context = "atom:entry"
+         s:assert [
+            test = "atom:author or "
+            ~ "../atom:author or atom:source/atom:author"
+            "An atom:entry must have an atom:author "
+            ~ "if its feed does not."
+         ]
+      ]
+   ]
+   element atom:entry {
+      atomCommonAttributes,
+      (atomAuthor*
+       & atomCategory*
+       & atomContent?
+       & atomContributor*
+       & atomId
+       & atomLink*
+       & atomPublished?
+       & atomRights?
+       & atomSource?
+       & atomSummary?
+       & atomTitle
+       & atomUpdated
+       & extensionElement*)
+   }
+
+# atom:content
+
+atomInlineTextContent =
+   element atom:content {
+      atomCommonAttributes,
+      attribute type { "text" | "html" }?,
+      (text)*
+   }
+
+atomInlineXHTMLContent =
+   element atom:content {
+      atomCommonAttributes,
+      attribute type { "xhtml" },
+      xhtmlDiv
+   }
+
+atomInlineOtherContent =
+   element atom:content {
+      atomCommonAttributes,
+      attribute type { atomMediaType }?,
+      (text|anyElement)*
+   }
+
+atomOutOfLineContent =
+   element atom:content {
+      atomCommonAttributes,
+      attribute type { atomMediaType }?,
+      attribute src { atomUri },
+      empty
+   }
+
+atomContent = atomInlineTextContent
+ | atomInlineXHTMLContent
+ | atomInlineOtherContent
+ | atomOutOfLineContent
+
+# atom:author
+
+atomAuthor = element atom:author { atomPersonConstruct }
+
+# atom:category
+
+atomCategory =
+   element atom:category {
+      atomCommonAttributes,
+      attribute term { text },
+      attribute scheme { atomUri }?,
+      attribute label { text }?,
+      undefinedContent
+   }
+
+# atom:contributor
+
+atomContributor = element atom:contributor { atomPersonConstruct }
+
+# atom:generator
+
+atomGenerator = element atom:generator {
+   atomCommonAttributes,
+   attribute uri { atomUri }?,
+   attribute version { text }?,
+   text
+}
+
+# atom:icon
+
+atomIcon = element atom:icon {
+   atomCommonAttributes,
+   (atomUri)
+}
+
+# atom:id
+
+atomId = element atom:id {
+   atomCommonAttributes,
+   (atomUri)
+}
+
+# atom:logo
+
+atomLogo = element atom:logo {
+   atomCommonAttributes,
+   (atomUri)
+}
+
+# atom:link
+
+atomLink =
+   element atom:link {
+      atomCommonAttributes,
+      attribute href { atomUri },
+      attribute rel { atomNCName | atomUri }?,
+      attribute type { atomMediaType }?,
+      attribute hreflang { atomLanguageTag }?,
+      attribute title { text }?,
+      attribute length { text }?,
+      undefinedContent
+   }
+
+# atom:published
+
+atomPublished = element atom:published { atomDateConstruct }
+
+# atom:rights
+
+atomRights = element atom:rights { atomTextConstruct }
+
+# atom:source
+
+atomSource =
+   element atom:source {
+      atomCommonAttributes,
+      (atomAuthor*
+       & atomCategory*
+       & atomContributor*
+       & atomGenerator?
+       & atomIcon?
+       & atomId?
+       & atomLink*
+       & atomLogo?
+       & atomRights?
+       & atomSubtitle?
+       & atomTitle?
+       & atomUpdated?
+       & extensionElement*)
+   }
+
+# atom:subtitle
+
+atomSubtitle = element atom:subtitle { atomTextConstruct }
+
+# atom:summary
+
+atomSummary = element atom:summary { atomTextConstruct }
+
+# atom:title
+
+atomTitle = element atom:title { atomTextConstruct }
+
+# atom:updated
+
+atomUpdated = element atom:updated { atomDateConstruct }
+
+# Low-level simple types
+
+atomNCName = xsd:string { minLength = "1" pattern = "[^:]*" }
+
+# Whatever a media type is, it contains at least one slash
+atomMediaType = xsd:string { pattern = ".+/.+" }
+
+# As defined in RFC 3066
+atomLanguageTag = xsd:string {
+   pattern = "[A-Za-z]{1,8}(-[A-Za-z0-9]{1,8})*"
+}
+
+# Unconstrained; it's not entirely clear how IRI fit into
+# xsd:anyURI so let's not try to constrain it here
+atomUri = text
+
+# Whatever an email address is, it contains at least one @
+atomEmailAddress = xsd:string { pattern = ".+@.+" }
+
+# Simple Extension
+
+simpleExtensionElement =
+   element * - atom:* {
+      text
+   }
+
+# Structured Extension
+
+structuredExtensionElement =
+   element * - atom:* {
+      (attribute * { text }+,
+         (text|anyElement)*)
+    | (attribute * { text }*,
+       (text?, anyElement+, (text|anyElement)*))
+   }
+
+# Other Extensibility
+
+extensionElement =
+   simpleExtensionElement | structuredExtensionElement
+
+undefinedAttribute =
+  attribute * - (xml:base | xml:lang | local:*) { text }
+
+undefinedContent = (text|anyForeignElement)*
+
+anyElement =
+   element * {
+      (attribute * { text }
+       | text
+       | anyElement)*
+   }
+
+anyForeignElement =
+   element * - atom:* {
+      (attribute * { text }
+       | text
+       | anyElement)*
+   }
+
+# XHTML
+
+anyXHTML = element xhtml:* {
+   (attribute * { text }
+    | text
+    | anyXHTML)*
+}
+
+xhtmlDiv = element xhtml:div {
+   (attribute * { text }
+    | text
+    | anyXHTML)*
+}
+
+# EOF
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/schemas/rss10.rnc
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/schemas/rss10.rnc	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/schemas/rss10.rnc	(revision 14612)
@@ -0,0 +1,113 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- http://www.xml.com/lpt/a/2002/01/23/relaxng.html -->
+<!-- http://www.oasis-open.org/committees/relax-ng/tutorial-20011203.html -->
+<!-- http://www.zvon.org/xxl/XMLSchemaTutorial/Output/ser_wildcards_st8.html -->
+
+<grammar xmlns='http://relaxng.org/ns/structure/1.0'
+        xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
+        xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
+        ns='http://purl.org/rss/1.0/'
+        datatypeLibrary='http://www.w3.org/2001/XMLSchema-datatypes'>
+
+    <start>
+        <element name='RDF' ns='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
+            <ref name='RDFContent'/>
+        </element>
+    </start>   
+
+    <define name='RDFContent' ns='http://purl.org/rss/1.0/'>
+        <interleave>
+            <element name='channel'>
+                <ref name='channelContent'/>
+            </element>
+            <optional>
+                <element name='image'><ref name='imageContent'/></element>
+            </optional>
+            <oneOrMore>
+                <element name='item'><ref name='itemContent'/></element>
+            </oneOrMore>
+        </interleave>
+    </define>
+
+     <define name='channelContent' combine="interleave">
+        <interleave>
+            <element name='title'><data type='string'/></element>
+            <element name='link'><data type='anyURI'/></element>
+            <element name='description'><data type='string'/></element>
+            <element name='image'>
+                <attribute name='resource' ns='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
+                    <data type='anyURI'/>
+                </attribute>
+            </element>
+            <element name='items'>
+                    <ref name='itemsContent'/>
+            </element>
+            <attribute name='about' ns='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
+                <data type='anyURI'/>
+            </attribute>
+        </interleave>
+    </define>
+    
+        <define name="itemsContent">
+            <element name="Seq" ns='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
+                <oneOrMore>
+                    <element name="li" ns='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
+                        <choice>
+                            <attribute name='resource'>    <!-- Why doesn't RDF/RSS1.0 ns qualify this attribute? -->
+                                <data type='anyURI'/>
+                            </attribute>
+                            <attribute name='resource' ns='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
+                                <data type='anyURI'/>
+                            </attribute>
+                        </choice>
+                    </element>
+                </oneOrMore>
+            </element>
+        </define>
+        
+    <define name='imageContent'>
+        <interleave>
+            <element name='title'><data type='string'/></element>
+            <element name='link'><data type='anyURI'/></element>
+            <element name='url'><data type='anyURI'/></element>
+            <attribute name='about' ns='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
+                <data type='anyURI'/>
+            </attribute>
+        </interleave>
+    </define>
+
+    <define name='itemContent'>
+        <interleave>
+            <element name='title'><data type='string'/></element>
+            <element name='link'><data type='anyURI'/></element>
+            <optional><element name='description'><data type='string'/></element></optional>
+            <ref name="anyThing"/>
+            <attribute name='about' ns='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
+                <data type='anyURI'/>
+            </attribute>
+        </interleave>
+    </define>            
+            
+
+        <define name='anyThing'>
+            <zeroOrMore>
+                <choice>
+                    <text/>
+                    <element>
+                        <anyName>
+                            <except>
+                                <nsName/>
+                            </except>
+                        </anyName>
+                        <ref name='anyThing'/>
+                        <zeroOrMore>
+                            <attribute>
+                              <anyName/>
+                            </attribute>
+                        </zeroOrMore>
+                    </element>
+                </choice>
+            </zeroOrMore>
+            </define>
+            
+</grammar>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/schemas/rss11.rnc
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/schemas/rss11.rnc	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/schemas/rss11.rnc	(revision 14612)
@@ -0,0 +1,218 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  RELAX NG Compact Schema for RSS 1.1
+  Sean B. Palmer, inamidst.com
+  Christopher Schmidt, crschmidt.net
+  License: This schema is in the public domain
+-->
+<grammar xmlns:rss="http://purl.org/net/rss1.1#" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" ns="http://purl.org/net/rss1.1#" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
+  <start>
+    <ref name="Channel"/>
+  </start>
+  <define name="Channel">
+    <a:documentation>http://purl.org/net/rss1.1#Channel</a:documentation>
+    <element name="Channel">
+      <ref name="Channel.content"/>
+
+    </element>
+  </define>
+  <define name="Channel.content">
+    <optional>
+      <ref name="AttrXMLLang"/>
+    </optional>
+    <optional>
+      <ref name="AttrXMLBase"/>
+    </optional>
+
+    <ref name="AttrRDFAbout"/>
+    <interleave>
+      <ref name="title"/>
+      <ref name="link"/>
+      <ref name="description"/>
+      <optional>
+        <ref name="image"/>
+      </optional>
+      <zeroOrMore>
+
+        <ref name="Any"/>
+      </zeroOrMore>
+      <ref name="items"/>
+    </interleave>
+  </define>
+  <define name="title">
+    <a:documentation>http://purl.org/net/rss1.1#title</a:documentation>
+    <element name="title">
+
+      <ref name="title.content"/>
+    </element>
+  </define>
+  <define name="title.content">
+    <optional>
+      <ref name="AttrXMLLang"/>
+    </optional>
+    <text/>
+  </define>
+
+  <define name="link">
+    <a:documentation>http://purl.org/net/rss1.1#link</a:documentation>
+    <element name="link">
+      <ref name="link.content"/>
+    </element>
+  </define>
+  <define name="link.content">
+    <data type="anyURI"/>
+
+  </define>
+  <define name="description">
+    <a:documentation>http://purl.org/net/rss1.1#description</a:documentation>
+    <element name="description">
+      <ref name="description.content"/>
+    </element>
+  </define>
+  <define name="description.content">
+
+    <optional>
+      <ref name="AttrXMLLang"/>
+    </optional>
+    <text/>
+  </define>
+  <define name="image">
+    <a:documentation>http://purl.org/net/rss1.1#image</a:documentation>
+    <element name="image">
+
+      <ref name="image.content"/>
+    </element>
+  </define>
+  <define name="image.content">
+    <optional>
+      <ref name="AttrXMLLang"/>
+    </optional>
+    <ref name="AttrRDFResource"/>
+    <interleave>
+
+      <ref name="title"/>
+      <optional>
+        <ref name="link"/>
+      </optional>
+      <ref name="url"/>
+      <zeroOrMore>
+        <ref name="Any"/>
+      </zeroOrMore>
+    </interleave>
+
+  </define>
+  <define name="url">
+    <a:documentation>http://purl.org/net/rss1.1#url</a:documentation>
+    <element name="url">
+      <ref name="url.content"/>
+    </element>
+  </define>
+  <define name="url.content">
+
+    <data type="anyURI"/>
+  </define>
+  <define name="items">
+    <a:documentation>http://purl.org/net/rss1.1#items</a:documentation>
+    <element name="items">
+      <ref name="items.content"/>
+    </element>
+  </define>
+
+  <define name="items.content">
+    <optional>
+      <ref name="AttrXMLLang"/>
+    </optional>
+    <ref name="AttrRDFCollection"/>
+    <zeroOrMore>
+      <ref name="item"/>
+    </zeroOrMore>
+  </define>
+
+  <define name="item">
+    <a:documentation>http://purl.org/net/rss1.1#item</a:documentation>
+    <element name="item">
+      <ref name="item.content"/>
+    </element>
+  </define>
+  <define name="item.content">
+    <optional>
+
+      <ref name="AttrXMLLang"/>
+    </optional>
+    <ref name="AttrRDFAbout"/>
+    <interleave>
+      <ref name="title"/>
+      <ref name="link"/>
+      <optional>
+        <ref name="description"/>
+      </optional>
+
+      <optional>
+        <ref name="image"/>
+      </optional>
+      <zeroOrMore>
+        <ref name="Any"/>
+      </zeroOrMore>
+    </interleave>
+  </define>
+  <define name="Any">
+
+    <a:documentation>http://purl.org/net/rss1.1#Any</a:documentation>
+    <element>
+      <anyName>
+        <except>
+          <nsName/>
+        </except>
+      </anyName>
+      <ref name="Any.content"/>
+
+    </element>
+  </define>
+  <define name="Any.content">
+    <zeroOrMore>
+      <attribute>
+        <anyName>
+          <except>
+            <nsName/>
+            <nsName ns=""/>
+
+          </except>
+        </anyName>
+      </attribute>
+    </zeroOrMore>
+    <mixed>
+      <zeroOrMore>
+        <ref name="Any"/>
+      </zeroOrMore>
+    </mixed>
+
+  </define>
+  <define name="AttrXMLLang">
+    <attribute name="xml:lang">
+      <data type="language"/>
+    </attribute>
+  </define>
+  <define name="AttrXMLBase">
+    <attribute name="xml:base">
+      <data type="anyURI"/>
+
+    </attribute>
+  </define>
+  <define name="AttrRDFAbout">
+    <attribute name="rdf:about">
+      <data type="anyURI"/>
+    </attribute>
+  </define>
+  <define name="AttrRDFResource">
+    <attribute name="rdf:parseType">
+
+      <value>Resource</value>
+    </attribute>
+  </define>
+  <define name="AttrRDFCollection">
+    <attribute name="rdf:parseType">
+      <value>Collection</value>
+    </attribute>
+  </define>
+
+</grammar>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/hoder.xml
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/hoder.xml	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/hoder.xml	(revision 14612)
@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="utf-8"?>
+<rss version="2.0" 
+  xmlns:dc="http://purl.org/dc/elements/1.1/"
+  xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
+  xmlns:admin="http://webns.net/mvcb/"
+  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+
+<channel>
+<title>Editor: Myself (Persian)</title>
+<link>http://editormyself.info</link>
+<description>This is a Persian (Farsi) weblog, written by Hossein Derakhshan (aka, Hoder), an Iranian Multimedia designer and a journalist who lives in Toronto since Dec 2000. He also keeps an English weblog with the same name.</description>
+<dc:language>en-us</dc:language>
+<dc:creator>hoder@hotmail.com</dc:creator>
+<dc:date>2005-10-12T19:45:32-05:00</dc:date>
+<admin:generatorAgent rdf:resource="http://www.movabletype.org/?v=3.15" />
+<sy:updatePeriod>hourly</sy:updatePeriod>
+<sy:updateFrequency>1</sy:updateFrequency>
+<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
+
+
+<item>
+<title>لينکدونی‌ | جلسه‌ی امریکن انترپرایز برای تقسیم قومی ایران</title>
+<link>http://www.aei.org/events/type.upcoming,eventID.1166,filter.all/event_detail.asp</link>
+<description>چطور بعضی‌ها فکر می‌کنند دست راستی‌های آمریکا از خامنه‌ای ملی‌گراترند</description>
+<guid isPermaLink="false">14645@http://i.hoder.com/</guid>
+<dc:subject>iran</dc:subject>
+<dc:date>2005-10-12T19:45:32-05:00</dc:date>
+</item>
+
+<item>
+<title>لينکدونی‌ | به صبحانه آگهی بدهید</title>
+<link>http://www.adbrite.com/mb/commerce/purchase_form.php?opid=24346&amp;afsid=1</link>
+<description>خیلی ارزان و راحت است</description>
+<guid isPermaLink="false">14644@http://i.hoder.com/</guid>
+<dc:subject>media/journalism</dc:subject>
+<dc:date>2005-10-12T17:23:15-05:00</dc:date>
+</item>
+
+<item>
+<title>لينکدونی‌ | نیروی انتظامی چگونه تابوهای هم‌جنس‌گرایانه را می‌شکند؛ فرنگوپولیس</title>
+<link>http://farangeopolis.blogspot.com/2005/10/blog-post_08.html</link>
+<description>از پس و پیش و حاشیه‌ی این ماجرا می‌توان یک مستند بی‌نظیر ساخت</description>
+<guid isPermaLink="false">14643@http://i.hoder.com/</guid>
+<dc:subject>soc_popculture</dc:subject>
+<dc:date>2005-10-12T17:06:40-05:00</dc:date>
+</item>
+
+<item>
+<title>لينکدونی‌ | بازتاب توقیف شد</title>
+<link>http://www.baztab.com/news/30201.php</link>
+<description>اگر گفتید یک وب‌سایت را چطور توقیف می‌کنند؟ لابد ماوس‌شان را قایم می‌کنند.</description>
+<guid isPermaLink="false">14642@http://i.hoder.com/</guid>
+<dc:subject>media/journalism</dc:subject>
+<dc:date>2005-10-12T14:41:57-05:00</dc:date>
+</item>
+
+<item>
+<title>لينکدونی‌ | رشد وب در سال 2005 از همیشه بیشتر بوده است&quot; بی.بی.سی</title>
+<link>http://news.bbc.co.uk/2/hi/technology/4325918.stm</link>
+<description></description>
+<guid isPermaLink="false">14640@http://i.hoder.com/</guid>
+<dc:subject>tech</dc:subject>
+<dc:date>2005-10-12T13:04:46-05:00</dc:date>
+</item>
+
+
+
+<item>
+<title>==قرعه کشی گرین کارد به زودی شروع می‌شود==</title>
+<link>http://nice.newsxphotos.biz/05/09/2007_dv_lottery_registration_to_begin_oct_5_14589.php</link>
+<description></description>
+<guid isPermaLink="false">14613@http://vagrantly.com</guid>
+<dc:subject>ads03</dc:subject>
+<dc:date>2005-09-27T04:49:22-05:00</dc:date>
+</item>
+
+
+
+
+
+
+<item>
+<title>پروژه‌ی هاروارد، قدم دوم</title>
+<link>http://editormyself.info/archives/2005/10/051012_014641.shtml</link>
+<description><![CDATA[<p>اگر یادتان باشد <a href="/archives/2005/09/050906_014504.shtml">چند وقت پیش نوشتم</a> که دانشگاه هاروارد پروژه‌ای دارد با نام آواهای جهانی که در آن به وبلاگ‌های غیر انگلیسی‌زبان می‌پردازد. خواشتم که اگر کسی علاقه دارد ایمیل بزند. تعداد زیادی جواب دادند و ابراز علاقه کردند. حالا وقت قدم دوم است.</p>
+
+<p>قدم دوم این است که برای اینکه مسوولین پروژه بتوانند تصمیم بگیرند که با چه کسی کار کنند، می‌خواهند نمونه‌ی کارهای علاقمندان مشارکت در این پرزو‌ه را ببینند.</p>
+
+<p>برای همین از همه‌ی علاقماندان، حتی کسانی که قبلا اعلام آمادگی نکرده بودند، می‌‌خواهم که یک موضوع رایج این روزهای وبلاگستان فارسی را انتخاب کنند و در هفتصد کلمه، به انگلیسی، بنویسند که وبلاگ‌دارهای درباره‌اش چه می‌گویند. لینک به پنج، شش وبلاگ و بازنویسی آنچه آنها از جنبه‌های گوناگون درباره‌ی آن موضوع نوشته‌اند با نقل قول مستقیم از آنها (البته ترجمه شده از فارسی) کافی است. دو سه جمله هم اول کار توضیح دهید که چرا این موضوع مهم است.</p>
+
+<p>متن نمونه را به آدرس ایمیل من hoder@hoder.com و نیز برای افراد زیر تا روز دوشنبه بفرستید:<br />
+ربکا : rmackinnon@cyber.law.harvard.edu<br />
+هیثم: haitham.sabbah@gmail.com</p>]]></description>
+<guid isPermaLink="false">14641@http://editormyself.info</guid>
+<dc:subject>weblog</dc:subject>
+<dc:date>2005-10-12T14:04:23-05:00</dc:date>
+</item>
+
+
+
+</channel>
+</rss>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/atom10-entryonly.xml
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/atom10-entryonly.xml	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/atom10-entryonly.xml	(revision 14612)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<entry xmlns="http://www.w3.org/2005/Atom">
+    <title>Atom draft-07 snapshot</title>
+    <link rel="alternate" type="text/html" 
+     href="http://example.org/2005/04/02/atom"/>
+    <link rel='enclosure' type="audio/mpeg" length="1337"
+     href="http://example.org/audio/ph34r_my_podcast.mp3"/>
+    <id>tag:example.org,2003:3.2397</id>
+    <updated>2005-07-10T12:29:29Z</updated>
+    <published>2003-12-13T08:29:29-04:00</published>
+    <author>
+      <name>Mark Pilgrim</name>
+      <uri>http://example.org/</uri>
+      <email>f8dy@example.com</email>
+    </author>
+    <contributor>
+      <name>Sam Ruby</name>
+    </contributor>
+    <contributor>
+      <name>Joe Gregorio</name>
+    </contributor>
+    <content type="xhtml" xml:lang="en" 
+     xml:base="http://diveintomark.org/">
+      <div xmlns="http://www.w3.org/1999/xhtml">
+        <p><i>[Update: The Atom draft is finished.]</i></p>
+      </div>
+    </content>
+  </entry>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/sixapart-jp.xml
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/sixapart-jp.xml	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/sixapart-jp.xml	(revision 14612)
@@ -0,0 +1,226 @@
+<?xml version="1.0" encoding="utf-8"?>
+<rss version="2.0">
+<channel>
+<title>Six Apart - News</title>
+<link>http://www.sixapart.jp/</link>
+<description></description>
+<language>ja</language>
+<copyright>Copyright 2005</copyright>
+<lastBuildDate>Fri, 07 Oct 2005 19:09:34 +0900</lastBuildDate>
+<generator>http://www.movabletype.org/?v=3.2-ja</generator>
+<docs>http://blogs.law.harvard.edu/tech/rss</docs> 
+
+<item>
+<title>ファイブ・ディーが、Movable Typeでブログプロモーションをスタート</title>
+<description><![CDATA[<p><img alt="MIYAZAWAblog_banner.jpg" src="http://www.sixapart.jp/MIYAZAWAblog_banner.jpg" width="200" height="88" align="right" /><br />
+ファイブ・ディーは、Movable Typeで構築したプロモーション ブログ『宮沢和史 中南米ツアーblog Latin America 2005』を開設しました。</p>
+
+<p>9月21日に開設されたこのブログは、ブラジル、ホンジュラス、ニカラグア、メキシコ、キューバの5か国を巡る「Latin America 2005」ツアーに合わせ、そのツアーの模様を同行マネージャーがレポートしていきます。<br />
+さらに今月2日からは宮沢和史自身が日々録音した声をPodcastingするという点でも、ブログを使ったユニークなプロモーションとなっています。</p>
+
+<p><a href="http://www.five-d.co.jp/miyazawa/jp/blog/la2005/">「宮沢和史 中南米ツアーblog Latin America 2005」</a></p>
+
+<p>※シックス・アパートではこうしたブログを使ったプロモーションに最適な製品をご用意しております。<br />
+<ul><li><a href="/movabletype/">Movable Type</a><br />
+<li><a href="/typepad/typepad_promotion.html">TypePad Promotion</a><br />
+</ul></p>]]></description>
+<link>http://www.sixapart.jp/news/2005/10/07-1909.html</link>
+<guid>http://www.sixapart.jp/news/2005/10/07-1909.html</guid>
+<category>news</category>
+<pubDate>Fri, 07 Oct 2005 19:09:34 +0900</pubDate>
+</item>
+<item>
+<title>Movable Type 3.2日本語版の提供を開始</title>
+<description><![CDATA[<p><img alt="Movable Type Logo" src="/images/mt3-logo-small.gif" width="151" height="37"/></p>
+<p>シックス・アパートは、Movable Type 3.2日本語版の提供を開始いたしました。<br />
+ベータテストにご協力いただいた多くの皆様に、スタッフ一同、心から感謝いたします。</p>
+<p>製品概要など、詳しくは<a href="http://www.sixapart.jp/press_releases/2005/09/29-1529.html" title="Six Apart - News: シックス・アパートが、スパム対策強化の「Movable Type 3.2 日本語版」を提供開始">プレスリリース</a>をご参照下さい。</p>
+<p>ご購入のご検討は、<a href="http://www.sixapart.jp/movabletype/purchase-mt.html">Movable Typeのご購入</a>からどうぞ。</p>]]></description>
+<link>http://www.sixapart.jp/news/2005/09/29-1530.html</link>
+<guid>http://www.sixapart.jp/news/2005/09/29-1530.html</guid>
+<category>news</category>
+<pubDate>Thu, 29 Sep 2005 15:30:00 +0900</pubDate>
+</item>
+<item>
+<title>シックス・アパートが、スパム対策強化の「Movable Type 3.2 日本語版」を提供開始</title>
+<description><![CDATA[<p>＜プレスリリース資料＞</p>
+<ul>
+  <li><a href="http://www.sixapart.jp/sixapart20050929.pdf">印刷用（PDF版）</a></li>
+</ul>
+<p><strong>シックス・アパートが、スパム対策強化の「Movable Type 3.2 日本語版」を提供開始 ～ スパムの自動判別機能や新ユーザー・インターフェースで、運用管理の機能を強化 ～</strong></p>
+<p>2005年9月29日<br />
+シックス・アパート株式会社</p>
+<p>ブログ・ソフトウェア大手のシックス・アパート株式会社（本社：東京都港区、代表取締役：関 信浩）は、「Movable Type（ムーバブル・タイプ） 3.2 日本語版」(URL：<a href="http://www.sixapart.jp/movabletype/">http://www.sixapart.jp/movabletype/</a>)を9月29日より提供開始いたします。</p>]]></description>
+<link>http://www.sixapart.jp/press_releases/2005/09/29-1529.html</link>
+<guid>http://www.sixapart.jp/press_releases/2005/09/29-1529.html</guid>
+<category>Press Releases</category>
+<pubDate>Thu, 29 Sep 2005 15:29:00 +0900</pubDate>
+</item>
+<item>
+<title>スタッフを募集しています</title>
+<description><![CDATA[<p>シックス・アパートはMovable TypeやTypePadの開発エンジニアなど、スタッフを広く募集しています。具体的な募集職種は次の通りです。</p>
+
+<ul>
+<li><a href="http://www.sixapart.jp/jobs/2005/09/13-0007.html">Movable Type開発エンジニア</a></li>
+<li><a href="http://www.sixapart.jp/jobs/2005/09/13-0004.html">TypePad開発エンジニア</a></li>
+<li><a href="http://www.sixapart.jp/jobs/2005/09/13-0003.html">カスタマーサポート・ディレクター</a></li>
+<li><a href="http://www.sixapart.jp/jobs/2005/09/13-0002.html">マーケティング・広報アシスタント</a></li>
+<li><a href="http://www.sixapart.jp/jobs/2005/09/13-0001.html">開発アシスタント</a></li>
+</ul>
+
+<p>拡大を続ける、日本のブログ市場を積極的にリードする人材を、シックス・アパートは募集しています。上記以外の職種につきましても、お気軽にお問い合わせください。詳しい募集要項や応募方法については、<a href="/jobs/">求人情報のページ</a>をご覧ください。<br />
+</p>]]></description>
+<link>http://www.sixapart.jp/news/2005/09/27-0906.html</link>
+<guid>http://www.sixapart.jp/news/2005/09/27-0906.html</guid>
+<category>news</category>
+<pubDate>Tue, 27 Sep 2005 09:06:10 +0900</pubDate>
+</item>
+<item>
+<title>サイト接続不具合に関するお詫びと復旧のお知らせ</title>
+<description><![CDATA[<p>9月24日（土）の14:45ごろから、同日18:30ごろまで、シックス・アパート社のウェブサイトが不安定になっており、断続的に接続できない不具合が発生しておりました。このため、この期間中にウェブサイトの閲覧や製品のダウンロードができませんでした。</p>
+
+<p>なお現在は不具合は解消しております。みなさまにご迷惑をおかけしたことをお詫びいたします。</p>]]></description>
+<link>http://www.sixapart.jp/news/2005/09/26-1000.html</link>
+<guid>http://www.sixapart.jp/news/2005/09/26-1000.html</guid>
+<category>news</category>
+<pubDate>Mon, 26 Sep 2005 10:00:56 +0900</pubDate>
+</item>
+<item>
+<title>企業ブログ向けパッケージ「TypePad Promotion」を新発売</title>
+<description><![CDATA[<p>シックス・アパートは、ウェブログ・サービスTypePadの企業ブログ向けパッケージ「TypePad Promotion」（タイプパッド・プロモーションの発売を10月下旬から開始いたします。</p>
+
+<p>詳しくは、<a href="http://www.sixapart.jp/press_releases/2005/09/20-1500.html" title="プレスリリース: 「TypePad Promotion」新発売">プレスリリース</a>をご参照下さい。</p>]]></description>
+<link>http://www.sixapart.jp/news/2005/09/20-1500.html</link>
+<guid>http://www.sixapart.jp/news/2005/09/20-1500.html</guid>
+<category>news</category>
+<pubDate>Tue, 20 Sep 2005 15:00:01 +0900</pubDate>
+</item>
+<item>
+<title>シックス・アパートが、法人向けブログパッケージ「TypePad Promotion」を発売</title>
+<description><![CDATA[<p>＜プレスリリース資料＞<br />
+<a href="http://www.sixapart.jp/sixapart20050920.pdf">印刷用（PDF版）</a></p>
+
+<p><br />
+<strong>シックス・アパートが、法人向けブログパッケージ「TypePad Promotion」を発売<br />
+～PR/IRサイトやキャンペーンサイトなど企業のプロモーションニーズに特化～<br />
+</strong><br />
+2005年9月20日<br />
+シックス・アパート株式会社</p>
+
+<p>ブログ・サービス大手のシックス・アパート株式会社（本社：東京都港区、代表取締役：関 信浩）は、法人向けプロモーションブログ・パッケージ「TypePad Promotion（タイプパッド・プロモーション）」(URL：<a href="http://www.sixapart.jp/typepad/typepad_promotion.html">http://www.sixapart.jp/typepad/typepad_promotion.html</a>)を10月下旬より販売開始いたします。</p>]]></description>
+<link>http://www.sixapart.jp/press_releases/2005/09/20-1500.html</link>
+<guid>http://www.sixapart.jp/press_releases/2005/09/20-1500.html</guid>
+<category>Press Releases</category>
+<pubDate>Tue, 20 Sep 2005 15:00:00 +0900</pubDate>
+</item>
+<item>
+<title>Six [days] Apart Week</title>
+<description><![CDATA[<p>本日、9月16日はSix Apartの創業者ミナ・トロットの誕生日です。<br />
+私たちの会社は、創業者のトロット夫妻（ベンとミナ）の誕生日が、6日離れていることからSix  [days] Apart →Six Apartという風に名付けられています。本日から22日までの6日間を社名の由来となる　Six　[days] Apart Weekとして、私たちのプロダクトをご紹介させていただきます。</p>
+
+<p>今日は、ブログ・サービスのTypePad（タイプパッド）をご紹介します。<br />
+<img alt="tp-logo.gif" src="http://www.sixapart.jp/tp-logo.gif" width="227" height="52" /></p>
+
+<p>TypePadは、米国PC MAGAZINE誌の2003年EDITOR'S CHOICE とBEST OF THE YEARに選ばれております。<br />
+<img alt="pcmag-ad.gif" src="http://www.sixapart.jp/pcmag-ad.gif" width="297" height="100" /><br />
+</p>]]></description>
+<link>http://www.sixapart.jp/news/2005/09/16-1941.html</link>
+<guid>http://www.sixapart.jp/news/2005/09/16-1941.html</guid>
+<category>news</category>
+<pubDate>Fri, 16 Sep 2005 19:41:47 +0900</pubDate>
+</item>
+<item>
+<title>ハイパーワークスが商用フォントを利用できるMovable Typeホスティングサービスを開始</title>
+<description><![CDATA[<p>ソフト開発会社の<a href="http://www.hyperwrx.co.jp/">有限会社ハイパーワークス</a>は、商用フォントなど多彩なフォントをブログ上で利用できるブログ･サービス「<a href="http://glyph-on.jp/">Glyph-On!（グリフォン） Movable Type ホスティング サービス</a>｣の提供を開始しました。<br />
+</p>]]></description>
+<link>http://www.sixapart.jp/news/2005/09/14-1700.html</link>
+<guid>http://www.sixapart.jp/news/2005/09/14-1700.html</guid>
+<category>news</category>
+<pubDate>Wed, 14 Sep 2005 17:00:00 +0900</pubDate>
+</item>
+<item>
+<title>Movable Type開発エンジニアの募集</title>
+<description><![CDATA[<p>
+勤務形態: フルタイム<br />
+勤務地: 東京 (赤坂)<br />
+職種: ソフトウェア・エンジニア<br />
+職務内容: Movable Typeの開発業務全般<br />
+募集人数: 若干名
+</p>]]></description>
+<link>http://www.sixapart.jp/jobs/2005/09/13-0007.html</link>
+<guid>http://www.sixapart.jp/jobs/2005/09/13-0007.html</guid>
+<category>Jobs</category>
+<pubDate>Tue, 13 Sep 2005 00:07:00 +0900</pubDate>
+</item>
+<item>
+<title>TypePad開発エンジニアの募集</title>
+<description><![CDATA[<p>
+勤務形態: フルタイム<br />
+勤務地: 東京 (赤坂)<br />
+職種: アプリケーション・エンジニア<br />
+職務内容: TypePadのカスタマイズ、周辺開発<br />
+募集人数: 若干名
+</p>]]></description>
+<link>http://www.sixapart.jp/jobs/2005/09/13-0004.html</link>
+<guid>http://www.sixapart.jp/jobs/2005/09/13-0004.html</guid>
+<category>Jobs</category>
+<pubDate>Tue, 13 Sep 2005 00:04:00 +0900</pubDate>
+</item>
+<item>
+<title>カスタマーサポート・ディレクターの募集</title>
+<description><![CDATA[<p>勤務形態: フルタイム<br />
+勤務地: 東京（赤坂）<br />
+職種: カスタマーサポート・ディレクター<br />
+職務内容: TypePadやMovable Typeのカスタマーサポート業務の統括<br />
+募集人数: 若干名
+</p>
+]]></description>
+<link>http://www.sixapart.jp/jobs/2005/09/13-0003.html</link>
+<guid>http://www.sixapart.jp/jobs/2005/09/13-0003.html</guid>
+<category>Jobs</category>
+<pubDate>Tue, 13 Sep 2005 00:03:30 +0900</pubDate>
+</item>
+<item>
+<title>アルバイト（マーケティング・広報アシスタント）の募集</title>
+<description><![CDATA[<p>勤務形態: アルバイト<br />
+勤務地: 東京（港区）<br />
+職種：マーケティング・PRのアシスタント業務<br />
+募集人数: 若干名<br />
+時給：1000円～（但し、試用期間終了後に応相談）。交通費支給<br />
+時間：平日10時30分～18時30分まで。週3日以上(応相談）<br />
+</p>]]></description>
+<link>http://www.sixapart.jp/jobs/2005/09/13-0002.html</link>
+<guid>http://www.sixapart.jp/jobs/2005/09/13-0002.html</guid>
+<category>Jobs</category>
+<pubDate>Tue, 13 Sep 2005 00:02:00 +0900</pubDate>
+</item>
+<item>
+<title>アルバイト（開発アシスタント）の募集</title>
+<description><![CDATA[<p>勤務形態: アルバイト<br />
+勤務地: 東京（港区）<br />
+職種： アプリケーション開発のアシスタント業務<br />
+募集人数: 若干名<br />
+時給：1000円～（但し、試用期間終了後に応相談）。交通費支給<br />
+時間：平日10時30分～18時30分まで。週3日以上(応相談）
+</p>]]></description>
+<link>http://www.sixapart.jp/jobs/2005/09/13-0001.html</link>
+<guid>http://www.sixapart.jp/jobs/2005/09/13-0001.html</guid>
+<category>Jobs</category>
+<pubDate>Tue, 13 Sep 2005 00:01:00 +0900</pubDate>
+</item>
+<item>
+<title>TypePad Japan がバージョンアップしました。</title>
+<description><![CDATA[<p><a href="http://www.sixapart.jp/typepad/">「TypePad Japan（タイプパッドジャパン）」</a>において、本日、「TypePad 1.6 日本語版」へのバージョンアップを行いました。最新版となる「TypePad 1.6 日本語版」では、ブログデザインの機能強化、ポッドキャスティング対応、モブログ対応に加え、今回新たに大幅な容量アップが行われております。皆様、新しくなった<a href="http://www.sixapart.jp/typepad/">TypePad Japan</a>にどうぞご期待ください。</p>
+
+<p>なお、TypePadの携帯対応強化に関しましては、本日よりTypePad Japanのお客様を対象にオープン・ベータを開始しております。</p>
+
+<p>2005年9月5日発表のTypePad日本語版 1.6プレスリリースは<a href="http://www.sixapart.jp/press_releases/2005/09/05-1420.html">こちら</a>をご覧下さい。</p>]]></description>
+<link>http://www.sixapart.jp/news/2005/09/12-1953.html</link>
+<guid>http://www.sixapart.jp/news/2005/09/12-1953.html</guid>
+<category>news</category>
+<pubDate>Mon, 12 Sep 2005 19:53:07 +0900</pubDate>
+</item>
+
+
+</channel>
+</rss>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/technorati.feed
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/technorati.feed	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/technorati.feed	(revision 14612)
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8"?>
+<rss version="2.0"
+    xmlns:tapi="http://api.technorati.com/dtd/tapi-002.xml">
+    <channel>
+        <title>[Technorati] Tag results for greenbelt</title>
+        <link>http://www.technorati.com/tag/greenbelt</link>
+        <description>Posts tagged with "greenbelt" on Technorati.</description>
+        <pubDate>Mon, 08 Aug 2005 15:15:08 GMT</pubDate>
+        <category domain="http://www.technorati.com/tag">greenbelt</category>
+        <tapi:inboundblogs>2</tapi:inboundblogs>
+        <tapi:inboundlinks>2</tapi:inboundlinks>
+        <cloud domain="rpc.sys.com" port="80" path="/RPC2" registerProcedure="myCloud.rssPleaseNotify" protocol="xml-rpc" />
+        <generator>Technorati v1.0</generator>
+        <image>
+            <url>http://static.technorati.com/pix/logos/logo_reverse_sm.gif</url>
+            <title>Technorati logo</title>
+            <link>http://www.technorati.com</link>
+        </image>
+        <skipHours>
+            <hour>1</hour>
+            <hour>7</hour>
+            <hour>9</hour>
+        </skipHours>
+        <webMaster>support@technorati.com (Technorati Support)</webMaster>
+        <docs>http://blogs.law.harvad.edu/tech/rss</docs>
+        <ttl>60</ttl>
+        <item>
+            <title>Greenbelt</title>
+            <link>http://maggidawn.typepad.com/maggidawn/2005/07/greenbelt.html</link>
+            <description>So if the plan goes according to plan (!)... I'll be speaking at Greenbelt at these times: Slot 1...</description>
+            <guid isPermaLink="true">http://maggidawn.typepad.com/maggidawn/2005/07/greenbelt.html</guid>
+            <pubDate>Mon, 18 Jul 2005 02:11:42 GMT</pubDate>
+            <category>James</category>
+            <tapi:linkcreated>2005-07-11 02:08:12</tapi:linkcreated>
+            <comments>http://www.technorati.com/cosmos/search.html?url=http%3A%2F%2Fmaggidawn.typepad.com%2Fmaggidawn%2F2005%2F07%2Fgreenbelt.html</comments>
+            <tapi:inboundblogs>190</tapi:inboundblogs>
+            <tapi:inboundlinks>237</tapi:inboundlinks>
+            <source url="http://maggidawn.typepad.com/maggidawn/index.rdf">maggi dawn</source>
+        </item>
+
+        <item>
+            <title>Walking along the Greenbelt</title>
+            <link>http://pictureshomeless.blogspot.com/2005/06/walking-along-greenbelt.html</link>
+            <description>[IMG] Photo of homeless man walking near the greenbelt in Boise, Idaho Tags: photo homeless greenbelt Boise Idaho picture</description>
+            <guid isPermaLink="true">http://pictureshomeless.blogspot.com/2005/06/walking-along-greenbelt.html</guid>
+            <pubDate>Tue, 28 Jun 2005 01:41:24 GMT</pubDate>
+            <tapi:linkcreated>2005-06-26 17:24:03</tapi:linkcreated>
+            <comments>http://www.technorati.com/cosmos/search.html?url=http%3A%2F%2Fpictureshomeless.blogspot.com%2F2005%2F06%2Fwalking-along-greenbelt.html</comments>
+            <tapi:inboundblogs>2</tapi:inboundblogs>
+            <tapi:inboundlinks>2</tapi:inboundlinks>
+        </item>
+
+    </channel>
+</rss>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/rss091-international.xml
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/rss091-international.xml	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/rss091-international.xml	(revision 14612)
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="EuC-JP"?>  
+<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd">
+<rss version="0.91">
+<channel>
+<title>è†®ŸÛë´é´Ì´×´è´ŒÁ¹´Õ</title>
+<link>http://www.mozilla.org</link>
+<description>è†®ŸÛë´é´Ì´×´è´ŒÁ¹´Õ</description>
+<language>ja</language>  <!-- tagged as Japanese content -->
+<item>
+<title>NYÒ™Á¢¸»ÌêÛì15285.25´ƒ´‘Á£´Û´—´ÀÁ¹´ê´Ì´éÒ™Ûì¡êçÒÕ‰ÌêÁ£</title>
+<link>http://www.mozilla.org/status/</link>
+<description>This is an item description...</description>
+</item>
+<item>
+<title>‚§±Çç¡ËßÛÂÒéøÓ¸Á£Ë²®Ÿè†Ûèå±ÇÌ’¡Íæ—éøë‡Á£</title>
+<link>http://www.mozilla.org/status/</link>
+<description>This is an item description...</description>
+</item>
+<item>
+<title>ËÜË”ïÌëÈšÁ¢È†Ë§æàÀè±ŽË‰Û‚Á¢Ë‚åÜ¼šÛ˜íËüËÁ£</title>
+<link>http://www.mozilla.org/status/</link>
+<description>This is an item description...</description>
+</item>
+<item>
+<title>2000‚øíŠåÁ¢«‘¦éÛë¹ÛçéÛ§ÛÂè†ÒæÓ¸Á£Ì¾«…æ—ÕÝéøƒ¸Á£</title>
+<link>http://www.mozilla.org/status/</link>
+<description>This is an item description...</description>
+</item>
+</channel>
+</rss>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/rss091-complete.xml
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/rss091-complete.xml	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/rss091-complete.xml	(revision 14612)
@@ -0,0 +1,47 @@
+<?xml version="1.0"?>
+<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd">
+<rss version="0.91">
+<channel>
+<copyright>Copyright 1997-1999 UserLand Software, Inc.</copyright>
+<pubDate>Thu, 08 Jul 1999 07:00:00 GMT</pubDate>
+<lastBuildDate>Thu, 08 Jul 1999 16:20:26 GMT</lastBuildDate>
+<docs>http://my.userland.com/stories/storyReader$11</docs>
+<description>News and commentary from the cross-platform scripting community.</description>
+<link>http://www.scripting.com/</link>
+<title>Scripting News</title>
+<image>
+<link>http://www.scripting.com/</link>
+<title>Scripting News</title>
+<url>http://www.scripting.com/gifs/tinyScriptingNews.gif</url>
+<height>40</height>
+<width>78</width>
+<description>What is this used for?</description>
+</image>
+<managingEditor>dave@userland.com (Dave Winer)</managingEditor>
+<webMaster>dave@userland.com (Dave Winer)</webMaster>
+<language>en-us</language>
+<skipHours>
+<hour>6</hour>
+<hour>7</hour>
+<hour>8</hour>
+<hour>9</hour>
+<hour>10</hour>
+<hour>11</hour>
+</skipHours>
+<skipDays>
+<day>Sunday</day>
+</skipDays>
+<rating>(PICS-1.1 "http://www.rsac.org/ratingsv01.html" l gen true comment "RSACi North America Server" for "http://www.rsac.org" on "1996.04.16T08:15-0500" r (n 0 s 0 v 0 l 0))</rating>
+<item>
+<title>stuff</title>
+<link>http://bar</link>
+<description>This is an article about some stuff</description>
+</item>
+<textinput>
+<title>Search Now!</title>
+<description>Enter your search &lt;terms&gt;</description>
+<name>find</name>
+<link>http://my.site.com/search.cgi</link>
+</textinput>
+</channel>
+</rss>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/atom10-example1.xml
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/atom10-example1.xml	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/atom10-example1.xml	(revision 14612)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+
+ <title>Example Feed</title>
+ <link href="http://example.org/"/>
+ <updated>2003-12-13T18:30:02Z</updated>
+ <author>
+   <name>John Doe</name>
+ </author>
+ <id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id>
+
+ <entry>
+   <title>Atom-Powered Robots Run Amok</title>
+   <link href="http://example.org/2003/12/13/atom03"/>
+   <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
+   <updated>2003-12-13T18:30:02Z</updated>
+   <summary>Some text.</summary>
+ </entry>
+
+</feed>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/atom10-example2.xml
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/atom10-example2.xml	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/atom10-example2.xml	(revision 14612)
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="utf-8"?>
+   <feed xmlns="http://www.w3.org/2005/Atom">
+     <title type="text">dive into mark</title>
+     <subtitle type="html">
+       A &lt;em&gt;lot&lt;/em&gt; of effort
+       went into making this effortless
+     </subtitle>
+     <updated>2005-07-31T12:29:29Z</updated>
+     <id>tag:example.org,2003:3</id>
+     <link rel="alternate" type="text/html"
+      hreflang="en" href="http://example.org/"/>
+     <link rel="self" type="application/atom+xml"
+      href="http://example.org/feed.atom"/>
+     <rights>Copyright (c) 2003, Mark Pilgrim</rights>
+     <generator uri="http://www.example.com/" version="1.0">
+       Example Toolkit
+     </generator>
+     <entry>
+       <title>Atom draft-07 snapshot</title>
+       <link rel="alternate" type="text/html"
+        href="http://example.org/2005/04/02/atom"/>
+       <link rel='enclosure' type="audio/mpeg" length="1337"
+        href="http://example.org/audio/ph34r_my_podcast.mp3"/>
+       <id>tag:example.org,2003:3.2397</id>
+       <updated>2005-07-31T12:29:29Z</updated>
+       <published>2003-12-13T08:29:29-04:00</published>
+       <author>
+         <name>Mark Pilgrim</name>
+         <uri>http://example.org/</uri>
+         <email>f8dy@example.com</email>
+       </author>
+       <contributor>
+         <name>Sam Ruby</name>
+       </contributor>
+       <contributor>
+         <name>Joe Gregorio</name>
+       </contributor>
+       <content type="xhtml" xml:lang="en"
+        xml:base="http://diveintomark.org/">
+         <div xmlns="http://www.w3.org/1999/xhtml">
+           <p><i>[Update: The Atom draft is finished.]</i></p>
+         </div>
+       </content>
+     </entry>
+   </feed>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/flickr.feed
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/flickr.feed	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/flickr.feed	(revision 14612)
@@ -0,0 +1,184 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<feed version="0.3" xmlns="http://purl.org/atom/ns#" 
+    xmlns:dc="http://purl.org/dc/elements/1.1/">
+
+	<title>jamesstewart - Everyone's Tagged Photos</title>
+	<link rel="alternate" type="text/html" href="http://www.flickr.com/photos/tags/jamesstewart/"/>
+	<link rel="icon" type="image/jpeg" href="http://www.flickr.com/images/buddyicon.jpg"/>
+	<info type="text/html" mode="escaped">A feed of jamesstewart - Everyone's Tagged Photos</info>
+	<modified>2005-08-01T18:50:26Z</modified>
+	<generator url="http://www.flickr.com/">Flickr</generator>
+
+	<entry>
+		<title>Oma and James</title>
+		<link rel="alternate" type="text/html" href="http://www.flickr.com/photos/30484029@N00/30367516/"/>
+		<link rel='enclosure' type="application/xml" href="http://james.anthropiccollective.org" />
+		<id>tag:flickr.com,2004:/photo/30367516</id>
+		<issued>2005-08-01T18:50:26Z</issued>
+		<modified>2005-08-01T18:50:26Z</modified>
+		<content type="text/html" mode="escaped">&lt;p&gt;&lt;a href=&quot;http://www.flickr.com/people/30484029@N00/&quot;&gt;kstewart&lt;/a&gt; posted a photo:&lt;/p&gt;
+
+&lt;p&gt;&lt;a href=&quot;http://www.flickr.com/photos/30484029@N00/30367516/&quot; title=&quot;Oma and James&quot;&gt;&lt;img src=&quot;http://photos23.flickr.com/30367516_1f685a16e8_m.jpg&quot; width=&quot;240&quot; height=&quot;180&quot; alt=&quot;Oma and James&quot; style=&quot;border: 1px solid #000000;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
+
+&lt;p&gt;I have a beautiful Oma and a gorgeous husband.&lt;/p&gt;</content>
+		<author>
+			<name>kstewart</name>
+			<url>http://www.flickr.com/people/30484029@N00/</url>
+		</author>
+				<dc:subject>jamesstewart oma stoelfamily</dc:subject>
+	</entry>
+	<entry>
+		<title></title>
+		<link rel="alternate" type="text/html" href="http://www.flickr.com/photos/buddscreek/21376174/"/>
+		<id>tag:flickr.com,2004:/photo/21376174</id>
+		<issued>2005-06-25T02:00:35Z</issued>
+		<modified>2005-06-25T02:00:35Z</modified>
+		<content type="text/html" mode="escaped">&lt;p&gt;&lt;a href=&quot;http://www.flickr.com/people/buddscreek/&quot;&gt;Lan Rover&lt;/a&gt; posted a photo:&lt;/p&gt;
+
+&lt;p&gt;&lt;a href=&quot;http://www.flickr.com/photos/buddscreek/21376174/&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://photos17.flickr.com/21376174_4314fd8d5c_m.jpg&quot; width=&quot;240&quot; height=&quot;160&quot; alt=&quot;&quot; style=&quot;border: 1px solid #000000;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
+
+&lt;p&gt;AMA Motocross Championship 2005, Budds Creek, Maryland&lt;/p&gt;</content>
+		<author>
+			<name>Lan Rover</name>
+			<url>http://www.flickr.com/people/buddscreek/</url>
+		</author>
+				<dc:subject>amamotocrosschampionship buddscreek maryland 2005 fathersday motocrossnational rickycarmichael 259 jamesstewart 4</dc:subject>
+	</entry>
+	<entry>
+		<title></title>
+		<link rel="alternate" type="text/html" href="http://www.flickr.com/photos/buddscreek/21375650/"/>
+		<id>tag:flickr.com,2004:/photo/21375650</id>
+		<issued>2005-06-25T01:56:24Z</issued>
+		<modified>2005-06-25T01:56:24Z</modified>
+		<content type="text/html" mode="escaped">&lt;p&gt;&lt;a href=&quot;http://www.flickr.com/people/buddscreek/&quot;&gt;Lan Rover&lt;/a&gt; posted a photo:&lt;/p&gt;
+
+&lt;p&gt;&lt;a href=&quot;http://www.flickr.com/photos/buddscreek/21375650/&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://photos16.flickr.com/21375650_5c60e0dab1_m.jpg&quot; width=&quot;240&quot; height=&quot;160&quot; alt=&quot;&quot; style=&quot;border: 1px solid #000000;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
+
+</content>
+		<author>
+			<name>Lan Rover</name>
+			<url>http://www.flickr.com/people/buddscreek/</url>
+		</author>
+				<dc:subject>amamotocrosschampionship buddscreek maryland 2005 fathersday motocrossnational 259 jamesstewart</dc:subject>
+	</entry>
+	<entry>
+		<title></title>
+		<link rel="alternate" type="text/html" href="http://www.flickr.com/photos/buddscreek/21375345/"/>
+		<id>tag:flickr.com,2004:/photo/21375345</id>
+		<issued>2005-06-25T01:54:11Z</issued>
+		<modified>2005-06-25T01:54:11Z</modified>
+		<content type="text/html" mode="escaped">&lt;p&gt;&lt;a href=&quot;http://www.flickr.com/people/buddscreek/&quot;&gt;Lan Rover&lt;/a&gt; posted a photo:&lt;/p&gt;
+
+&lt;p&gt;&lt;a href=&quot;http://www.flickr.com/photos/buddscreek/21375345/&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://photos15.flickr.com/21375345_4205fdd22b_m.jpg&quot; width=&quot;160&quot; height=&quot;240&quot; alt=&quot;&quot; style=&quot;border: 1px solid #000000;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
+
+</content>
+		<author>
+			<name>Lan Rover</name>
+			<url>http://www.flickr.com/people/buddscreek/</url>
+		</author>
+				<dc:subject>amamotocrosschampionship buddscreek maryland 2005 fathersday motocrossnational 259 jamesstewart</dc:subject>
+	</entry>
+	<entry>
+		<title>Lunch with Kari &amp; James, café in the crypt of St Martin in the fields</title>
+		<link rel="alternate" type="text/html" href="http://www.flickr.com/photos/fidothe/16516618/"/>
+		<id>tag:flickr.com,2004:/photo/16516618</id>
+		<issued>2005-05-30T21:56:39Z</issued>
+		<modified>2005-05-30T21:56:39Z</modified>
+		<content type="text/html" mode="escaped">&lt;p&gt;&lt;a href=&quot;http://www.flickr.com/people/fidothe/&quot;&gt;fidothe&lt;/a&gt; posted a photo:&lt;/p&gt;
+
+&lt;p&gt;&lt;a href=&quot;http://www.flickr.com/photos/fidothe/16516618/&quot; title=&quot;Lunch with Kari &amp;amp; James, café in the crypt of St Martin in the fields&quot;&gt;&lt;img src=&quot;http://photos14.flickr.com/16516618_afaa4a395e_m.jpg&quot; width=&quot;240&quot; height=&quot;180&quot; alt=&quot;Lunch with Kari &amp;amp; James, café in the crypt of St Martin in the fields&quot; style=&quot;border: 1px solid #000000;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
+
+</content>
+		<author>
+			<name>fidothe</name>
+			<url>http://www.flickr.com/people/fidothe/</url>
+		</author>
+				<dc:subject>nokia7610 london stmartininthefields clarepatterson jamesstewart parvinstewart jimstewart susanstewart</dc:subject>
+	</entry>
+	<entry>
+		<title>Stewart keeping it low over the obstacle.</title>
+		<link rel="alternate" type="text/html" href="http://www.flickr.com/photos/pqbon/10224728/"/>
+		<id>tag:flickr.com,2004:/photo/10224728</id>
+		<issued>2005-04-21T07:30:29Z</issued>
+		<modified>2005-04-21T07:30:29Z</modified>
+		<content type="text/html" mode="escaped">&lt;p&gt;&lt;a href=&quot;http://www.flickr.com/people/pqbon/&quot;&gt;pqbon&lt;/a&gt; posted a photo:&lt;/p&gt;
+
+&lt;p&gt;&lt;a href=&quot;http://www.flickr.com/photos/pqbon/10224728/&quot; title=&quot;Stewart keeping it low over the obstacle.&quot;&gt;&lt;img src=&quot;http://photos7.flickr.com/10224728_b756341957_m.jpg&quot; width=&quot;240&quot; height=&quot;180&quot; alt=&quot;Stewart keeping it low over the obstacle.&quot; style=&quot;border: 1px solid #000000;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
+
+</content>
+		<author>
+			<name>pqbon</name>
+			<url>http://www.flickr.com/people/pqbon/</url>
+		</author>
+				<dc:subject>ama hangtown motocross jamesstewart bubba</dc:subject>
+	</entry>
+	<entry>
+		<title>king james stewart</title>
+		<link rel="alternate" type="text/html" href="http://www.flickr.com/photos/jjlook/7152910/"/>
+		<id>tag:flickr.com,2004:/photo/7152910</id>
+		<issued>2005-03-22T21:53:37Z</issued>
+		<modified>2005-03-22T21:53:37Z</modified>
+		<content type="text/html" mode="escaped">&lt;p&gt;&lt;a href=&quot;http://www.flickr.com/people/jjlook/&quot;&gt;jj look&lt;/a&gt; posted a photo:&lt;/p&gt;
+
+&lt;p&gt;&lt;a href=&quot;http://www.flickr.com/photos/jjlook/7152910/&quot; title=&quot;king james stewart&quot;&gt;&lt;img src=&quot;http://photos7.flickr.com/7152910_a02ab5a750_m.jpg&quot; width=&quot;180&quot; height=&quot;240&quot; alt=&quot;king james stewart&quot; style=&quot;border: 1px solid #000000;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
+
+&lt;p&gt;11th&lt;/p&gt;</content>
+		<author>
+			<name>jj look</name>
+			<url>http://www.flickr.com/people/jjlook/</url>
+		</author>
+				<dc:subject>dilomar05 eastside austin texas 78702 kingjames stewart jamesstewart borrowed</dc:subject>
+	</entry>
+	<entry>
+		<title>It's a Grind, downtown Grand Rapids (James, Susan, Jim, Harv, Lawson)</title>
+		<link rel="alternate" type="text/html" href="http://www.flickr.com/photos/fidothe/1586562/"/>
+		<id>tag:flickr.com,2004:/photo/1586562</id>
+		<issued>2004-11-20T09:34:28Z</issued>
+		<modified>2004-11-20T09:34:28Z</modified>
+		<content type="text/html" mode="escaped">&lt;p&gt;&lt;a href=&quot;http://www.flickr.com/people/fidothe/&quot;&gt;fidothe&lt;/a&gt; posted a photo:&lt;/p&gt;
+
+&lt;p&gt;&lt;a href=&quot;http://www.flickr.com/photos/fidothe/1586562/&quot; title=&quot;It's a Grind, downtown Grand Rapids (James, Susan, Jim, Harv, Lawson)&quot;&gt;&lt;img src=&quot;http://photos2.flickr.com/1586562_0bc5313a3e_m.jpg&quot; width=&quot;240&quot; height=&quot;180&quot; alt=&quot;It's a Grind, downtown Grand Rapids (James, Susan, Jim, Harv, Lawson)&quot; style=&quot;border: 1px solid #000000;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
+
+</content>
+		<author>
+			<name>fidothe</name>
+			<url>http://www.flickr.com/people/fidothe/</url>
+		</author>
+				<dc:subject>holiday grandrapids jamesstewart</dc:subject>
+	</entry>
+	<entry>
+		<title>It's a Grind, downtown Grand Rapids (James, Susan, Jim, Harv, Lawson)</title>
+		<link rel="alternate" type="text/html" href="http://www.flickr.com/photos/fidothe/1586539/"/>
+		<id>tag:flickr.com,2004:/photo/1586539</id>
+		<issued>2004-11-20T09:28:16Z</issued>
+		<modified>2004-11-20T09:28:16Z</modified>
+		<content type="text/html" mode="escaped">&lt;p&gt;&lt;a href=&quot;http://www.flickr.com/people/fidothe/&quot;&gt;fidothe&lt;/a&gt; posted a photo:&lt;/p&gt;
+
+&lt;p&gt;&lt;a href=&quot;http://www.flickr.com/photos/fidothe/1586539/&quot; title=&quot;It's a Grind, downtown Grand Rapids (James, Susan, Jim, Harv, Lawson)&quot;&gt;&lt;img src=&quot;http://photos2.flickr.com/1586539_c51e5f2e7a_m.jpg&quot; width=&quot;240&quot; height=&quot;180&quot; alt=&quot;It's a Grind, downtown Grand Rapids (James, Susan, Jim, Harv, Lawson)&quot; style=&quot;border: 1px solid #000000;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
+
+</content>
+		<author>
+			<name>fidothe</name>
+			<url>http://www.flickr.com/people/fidothe/</url>
+		</author>
+				<dc:subject>holiday grandrapids jamesstewart</dc:subject>
+	</entry>
+	<entry>
+		<title>It's a Grind, James and Jim can't decide)</title>
+		<link rel="alternate" type="text/html" href="http://www.flickr.com/photos/fidothe/1586514/"/>
+		<id>tag:flickr.com,2004:/photo/1586514</id>
+		<issued>2004-11-20T09:25:05Z</issued>
+		<modified>2004-11-20T09:25:05Z</modified>
+		<content type="text/html" mode="escaped">&lt;p&gt;&lt;a href=&quot;http://www.flickr.com/people/fidothe/&quot;&gt;fidothe&lt;/a&gt; posted a photo:&lt;/p&gt;
+
+&lt;p&gt;&lt;a href=&quot;http://www.flickr.com/photos/fidothe/1586514/&quot; title=&quot;It's a Grind, James and Jim can't decide)&quot;&gt;&lt;img src=&quot;http://photos2.flickr.com/1586514_733c2dfa3e_m.jpg&quot; width=&quot;240&quot; height=&quot;180&quot; alt=&quot;It's a Grind, James and Jim can't decide)&quot; style=&quot;border: 1px solid #000000;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
+
+</content>
+		<author>
+			<name>fidothe</name>
+			<url>http://www.flickr.com/people/fidothe/</url>
+		</author>
+				<dc:subject>holiday grandrapids jamesstewart johnkentish</dc:subject>
+	</entry>
+
+</feed>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/rss092-sample.xml
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/rss092-sample.xml	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/rss092-sample.xml	(revision 14612)
@@ -0,0 +1,103 @@
+<?xml version="1.0"?>
+<!-- RSS generation done by 'Radio UserLand' on Fri, 13 Apr 2001 19:23:02 GMT -->
+<rss version="0.92">
+	<channel>
+		<title>Dave Winer: Grateful Dead</title>
+		<link>http://www.scripting.com/blog/categories/gratefulDead.html</link>
+		<description>A high-fidelity Grateful Dead song every day. This is where we&apos;re experimenting with enclosures on RSS news items that download when you&apos;re not using your computer. If it works (it will) it will be the end of the Click-And-Wait multimedia experience on the Internet. </description>
+		<lastBuildDate>Fri, 13 Apr 2001 19:23:02 GMT</lastBuildDate>
+		<docs>http://backend.userland.com/rss092</docs>
+		<managingEditor>dave@userland.com (Dave Winer)</managingEditor>
+		<webMaster>dave@userland.com (Dave Winer)</webMaster>
+		<cloud domain="data.ourfavoritesongs.com" port="80" path="/RPC2" registerProcedure="ourFavoriteSongs.rssPleaseNotify" protocol="xml-rpc"/>
+		<item>
+			<description>It&apos;s been a few days since I added a song to the Grateful Dead channel. Now that there are all these new Radio users, many of whom are tuned into this channel (it&apos;s #16 on the hotlist of upstreaming Radio users, there&apos;s no way of knowing how many non-upstreaming users are subscribing, have to do something about this..). Anyway, tonight&apos;s song is a live version of Weather Report Suite from Dick&apos;s Picks Volume 7. It&apos;s wistful music. Of course a beautiful song, oft-quoted here on Scripting News. &lt;i&gt;A little change, the wind and rain.&lt;/i&gt;
+</description>
+			<enclosure url="http://www.scripting.com/mp3s/weatherReportDicksPicsVol7.mp3" length="6182912" type="audio/mpeg"/>
+			</item>
+		<item>
+			<description>Kevin Drennan started a &lt;a href=&quot;http://deadend.editthispage.com/&quot;&gt;Grateful Dead Weblog&lt;/a&gt;. Hey it&apos;s cool, he even has a &lt;a href=&quot;http://deadend.editthispage.com/directory/61&quot;&gt;directory&lt;/a&gt;. &lt;i&gt;A Frontier 7 feature.&lt;/i&gt;</description>
+			<source url="http://scriptingnews.userland.com/xml/scriptingNews2.xml">Scripting News</source>
+			</item>
+		<item>
+			<description>&lt;a href=&quot;http://arts.ucsc.edu/GDead/AGDL/other1.html&quot;&gt;The Other One&lt;/a&gt;, live instrumental, One From The Vault. Very rhythmic very spacy, you can listen to it many times, and enjoy something new every time.</description>
+			<enclosure url="http://www.scripting.com/mp3s/theOtherOne.mp3" length="6666097" type="audio/mpeg"/>
+			</item>
+		<item>
+			<description>This is a test of a change I just made. Still diggin..</description>
+			</item>
+		<item>
+			<description>The HTML rendering almost &lt;a href=&quot;http://validator.w3.org/check/referer&quot;&gt;validates&lt;/a&gt;. Close. Hey I wonder if anyone has ever published a style guide for ALT attributes on images? What are you supposed to say in the ALT attribute? I sure don&apos;t know. If you&apos;re blind send me an email if u cn rd ths. </description>
+			</item>
+		<item>
+			<description>&lt;a href=&quot;http://www.cs.cmu.edu/~mleone/gdead/dead-lyrics/Franklin&apos;s_Tower.txt&quot;&gt;Franklin&apos;s Tower&lt;/a&gt;, a live version from One From The Vault.</description>
+			<enclosure url="http://www.scripting.com/mp3s/franklinsTower.mp3" length="6701402" type="audio/mpeg"/>
+			</item>
+		<item>
+			<description>Moshe Weitzman says Shakedown Street is what I&apos;m lookin for for tonight. I&apos;m listening right now. It&apos;s one of my favorites. &quot;Don&apos;t tell me this town ain&apos;t got no heart.&quot; Too bright. I like the jazziness of Weather Report Suite. Dreamy and soft. How about The Other One? &quot;Spanish lady come to me..&quot;</description>
+			<source url="http://scriptingnews.userland.com/xml/scriptingNews2.xml">Scripting News</source>
+			</item>
+		<item>
+			<description>&lt;a href=&quot;http://www.scripting.com/mp3s/youWinAgain.mp3&quot;&gt;The news is out&lt;/a&gt;, all over town..&lt;p&gt;
+You&apos;ve been seen, out runnin round. &lt;p&gt;
+The lyrics are &lt;a href=&quot;http://www.cs.cmu.edu/~mleone/gdead/dead-lyrics/You_Win_Again.txt&quot;&gt;here&lt;/a&gt;, short and sweet. &lt;p&gt;
+&lt;i&gt;You win again!&lt;/i&gt;
+</description>
+			<enclosure url="http://www.scripting.com/mp3s/youWinAgain.mp3" length="3874816" type="audio/mpeg"/>
+			</item>
+		<item>
+			<description>&lt;a href=&quot;http://www.getlyrics.com/lyrics/grateful-dead/wake-of-the-flood/07.htm&quot;&gt;Weather Report Suite&lt;/a&gt;: &quot;Winter rain, now tell me why, summers fade, and roses die? The answer came. The wind and rain. Golden hills, now veiled in grey, summer leaves have blown away. Now what remains? The wind and rain.&quot;</description>
+			<enclosure url="http://www.scripting.com/mp3s/weatherReportSuite.mp3" length="12216320" type="audio/mpeg"/>
+			</item>
+		<item>
+			<description>&lt;a href=&quot;http://arts.ucsc.edu/gdead/agdl/darkstar.html&quot;&gt;Dark Star&lt;/a&gt; crashes, pouring its light into ashes.</description>
+			<enclosure url="http://www.scripting.com/mp3s/darkStar.mp3" length="10889216" type="audio/mpeg"/>
+			</item>
+		<item>
+			<description>DaveNet: &lt;a href=&quot;http://davenet.userland.com/2001/01/21/theUsBlues&quot;&gt;The U.S. Blues&lt;/a&gt;.</description>
+			</item>
+		<item>
+			<description>Still listening to the US Blues. &lt;i&gt;&quot;Wave that flag, wave it wide and high..&quot;&lt;/i&gt; Mistake made in the 60s. We gave our country to the assholes. Ah ah. Let&apos;s take it back. Hey I&apos;m still a hippie. &lt;i&gt;&quot;You could call this song The United States Blues.&quot;&lt;/i&gt;</description>
+			</item>
+		<item>
+			<description>&lt;a href=&quot;http://www.sixties.com/html/garcia_stack_0.html&quot;&gt;&lt;img src=&quot;http://www.scripting.com/images/captainTripsSmall.gif&quot; height=&quot;51&quot; width=&quot;42&quot; border=&quot;0&quot; hspace=&quot;10&quot; vspace=&quot;10&quot; align=&quot;right&quot;&gt;&lt;/a&gt;In celebration of today&apos;s inauguration, after hearing all those great patriotic songs, America the Beautiful, even The Star Spangled Banner made my eyes mist up. It made my choice of Grateful Dead song of the night realllly easy. Here are the &lt;a href=&quot;http://searchlyrics2.homestead.com/gd_usblues.html&quot;&gt;lyrics&lt;/a&gt;. Click on the audio icon to the left to give it a listen. &quot;Red and white, blue suede shoes, I&apos;m Uncle Sam, how do you do?&quot; It&apos;s a different kind of patriotic music, but man I love my country and I love Jerry and the band. &lt;i&gt;I truly do!&lt;/i&gt;</description>
+			<enclosure url="http://www.scripting.com/mp3s/usBlues.mp3" length="5272510" type="audio/mpeg"/>
+			</item>
+		<item>
+			<description>Grateful Dead: &quot;Tennessee, Tennessee, ain&apos;t no place I&apos;d rather be.&quot;</description>
+			<enclosure url="http://www.scripting.com/mp3s/tennesseeJed.mp3" length="3442648" type="audio/mpeg"/>
+			</item>
+		<item>
+			<description>Ed Cone: &quot;Had a nice Deadhead experience with my wife, who never was one but gets the vibe and knows and likes a lot of the music. Somehow she made it to the age of 40 without ever hearing Wharf Rat. We drove to Jersey and back over Christmas with the live album commonly known as Skull and Roses in the CD player much of the way, and it was cool to see her discover one the band&apos;s finest moments. That song is unique and underappreciated. Fun to hear that disc again after a few years off -- you get Jerry as blues-guitar hero on Big Railroad Blues and a nice version of Bertha.&quot;</description>
+			<enclosure url="http://www.scripting.com/mp3s/darkStarWharfRat.mp3" length="27503386" type="audio/mpeg"/>
+			</item>
+		<item>
+			<description>&lt;a href=&quot;http://arts.ucsc.edu/GDead/AGDL/fotd.html&quot;&gt;Tonight&apos;s Song&lt;/a&gt;: &quot;If I get home before daylight I just might get some sleep tonight.&quot; </description>
+			<enclosure url="http://www.scripting.com/mp3s/friendOfTheDevil.mp3" length="3219742" type="audio/mpeg"/>
+			</item>
+		<item>
+			<description>&lt;a href=&quot;http://arts.ucsc.edu/GDead/AGDL/uncle.html&quot;&gt;Tonight&apos;s song&lt;/a&gt;: &quot;Come hear Uncle John&apos;s Band by the river side. Got some things to talk about here beside the rising tide.&quot;</description>
+			<enclosure url="http://www.scripting.com/mp3s/uncleJohnsBand.mp3" length="4587102" type="audio/mpeg"/>
+			</item>
+		<item>
+			<description>&lt;a href=&quot;http://www.cs.cmu.edu/~mleone/gdead/dead-lyrics/Me_and_My_Uncle.txt&quot;&gt;Me and My Uncle&lt;/a&gt;: &quot;I loved my uncle, God rest his soul, taught me good, Lord, taught me all I know. Taught me so well, I grabbed that gold and I left his dead ass there by the side of the road.&quot;
+</description>
+			<enclosure url="http://www.scripting.com/mp3s/meAndMyUncle.mp3" length="2949248" type="audio/mpeg"/>
+			</item>
+		<item>
+			<description>Truckin, like the doo-dah man, once told me gotta play your hand. Sometimes the cards ain&apos;t worth a dime, if you don&apos;t lay em down.</description>
+			<enclosure url="http://www.scripting.com/mp3s/truckin.mp3" length="4847908" type="audio/mpeg"/>
+			</item>
+		<item>
+			<description>Two-Way-Web: &lt;a href=&quot;http://www.thetwowayweb.com/payloadsForRss&quot;&gt;Payloads for RSS&lt;/a&gt;. &quot;When I started talking with Adam late last year, he wanted me to think about high quality video on the Internet, and I totally didn&apos;t want to hear about it.&quot;</description>
+			</item>
+		<item>
+			<description>A touch of gray, kinda suits you anyway..</description>
+			<enclosure url="http://www.scripting.com/mp3s/touchOfGrey.mp3" length="5588242" type="audio/mpeg"/>
+			</item>
+		<item>
+			<description>&lt;a href=&quot;http://www.sixties.com/html/garcia_stack_0.html&quot;&gt;&lt;img src=&quot;http://www.scripting.com/images/captainTripsSmall.gif&quot; height=&quot;51&quot; width=&quot;42&quot; border=&quot;0&quot; hspace=&quot;10&quot; vspace=&quot;10&quot; align=&quot;right&quot;&gt;&lt;/a&gt;In celebration of today&apos;s inauguration, after hearing all those great patriotic songs, America the Beautiful, even The Star Spangled Banner made my eyes mist up. It made my choice of Grateful Dead song of the night realllly easy. Here are the &lt;a href=&quot;http://searchlyrics2.homestead.com/gd_usblues.html&quot;&gt;lyrics&lt;/a&gt;. Click on the audio icon to the left to give it a listen. &quot;Red and white, blue suede shoes, I&apos;m Uncle Sam, how do you do?&quot; It&apos;s a different kind of patriotic music, but man I love my country and I love Jerry and the band. &lt;i&gt;I truly do!&lt;/i&gt;</description>
+			<enclosure url="http://www.scripting.com/mp3s/usBlues.mp3" length="5272510" type="audio/mpeg"/>
+			</item>
+		</channel>
+	</rss>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/rss10-example1.xml
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/rss10-example1.xml	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/rss10-example1.xml	(revision 14612)
@@ -0,0 +1,62 @@
+<?xml version="1.0"?>
+
+<rdf:RDF 
+  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+  xmlns="http://purl.org/rss/1.0/"
+>
+
+  <channel rdf:about="http://www.xml.com/xml/news.rss">
+    <title>XML.com</title>
+    <link>http://xml.com/pub</link>
+    <description>
+      XML.com features a rich mix of information and services 
+      for the XML community.
+    </description>
+
+    <image rdf:resource="http://xml.com/universal/images/xml_tiny.gif" />
+
+    <items>
+      <rdf:Seq>
+        <rdf:li resource="http://xml.com/pub/2000/08/09/xslt/xslt.html" />
+        <rdf:li resource="http://xml.com/pub/2000/08/09/rdfdb/index.html" />
+      </rdf:Seq>
+    </items>
+
+    <textinput rdf:resource="http://search.xml.com" />
+
+  </channel>
+  
+  <image rdf:about="http://xml.com/universal/images/xml_tiny.gif">
+    <title>XML.com</title>
+    <link>http://www.xml.com</link>
+    <url>http://xml.com/universal/images/xml_tiny.gif</url>
+  </image>
+  
+  <item rdf:about="http://xml.com/pub/2000/08/09/xslt/xslt.html">
+    <title>Processing Inclusions with XSLT</title>
+    <link>http://xml.com/pub/2000/08/09/xslt/xslt.html</link>
+    <description>
+     Processing document inclusions with general XML tools can be 
+     problematic. This article proposes a way of preserving inclusion 
+     information through SAX-based processing.
+    </description>
+  </item>
+  
+  <item rdf:about="http://xml.com/pub/2000/08/09/rdfdb/index.html">
+    <title>Putting RDF to Work</title>
+    <link>http://xml.com/pub/2000/08/09/rdfdb/index.html</link>
+    <description>
+     Tool and API support for the Resource Description Framework 
+     is slowly coming of age. Edd Dumbill takes a look at RDFDB, 
+     one of the most exciting new RDF toolkits.
+    </description>
+  </item>
+
+  <textinput rdf:about="http://search.xml.com">
+    <title>Search XML.com</title>
+    <description>Search XML.com's XML collection</description>
+    <name>s</name>
+    <link>http://search.xml.com</link>
+  </textinput>
+
+</rdf:RDF>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/delicious.feed
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/delicious.feed	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/delicious.feed	(revision 14612)
@@ -0,0 +1,177 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<rdf:RDF
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns="http://purl.org/rss/1.0/"
+ xmlns:cc="http://web.resource.org/cc/"
+ xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:syn="http://purl.org/rss/1.0/modules/syndication/"
+ xmlns:admin="http://webns.net/mvcb/"
+>
+<channel rdf:about="http://del.icio.us/tag/greenbelt">
+<title>del.icio.us/tag/greenbelt</title>
+<link>http://del.icio.us/tag/greenbelt</link>
+<description>Text</description>
+<items>
+ <rdf:Seq>
+  <rdf:li rdf:resource="http://www.greenbelt.org.uk/" />
+  <rdf:li rdf:resource="http://www.greenbelt.org.uk/" />
+  <rdf:li rdf:resource="http://www.natuerlichwien.at/rundumadum/dergruenguertel/" />
+  <rdf:li rdf:resource="http://www.flickerweb.co.uk/wiki/index.php/Tank#Seminars" />
+  <rdf:li rdf:resource="http://www.greenbelt.ca/home.htm" />
+  <rdf:li rdf:resource="http://pipwilsonbhp.blogspot.com/" />
+  <rdf:li rdf:resource="http://maggidawn.typepad.com/maggidawn/" />
+  <rdf:li rdf:resource="http://www.johndavies.org/" />
+  <rdf:li rdf:resource="http://jonnybaker.blogs.com/" />
+ </rdf:Seq>
+</items>
+</channel>
+
+<item rdf:about="http://www.greenbelt.org.uk/">
+<dc:title>Greenbelt - Homepage Section</dc:title>
+<link>http://www.greenbelt.org.uk/</link>
+<dc:creator>jonnybaker</dc:creator>
+<dc:date>2005-05-16T16:30:38Z</dc:date>
+<dc:subject>greenbelt</dc:subject>
+<taxo:topics>
+  <rdf:Bag>
+    <rdf:li resource="http://del.icio.us/tag/greenbelt" />
+  </rdf:Bag>
+</taxo:topics>
+</item>
+
+<item rdf:about="http://www.greenbelt.org.uk/">
+<title>Greenbelt festival (uk)</title>
+<link>http://www.greenbelt.org.uk/</link>
+<dc:creator>sssshhhh</dc:creator>
+<dc:date>2005-05-14T18:19:40Z</dc:date>
+<dc:subject>audiology festival gigs greenbelt</dc:subject>
+<taxo:topics>
+  <rdf:Bag>
+    <rdf:li resource="http://del.icio.us/tag/gigs" />
+    <rdf:li resource="http://del.icio.us/tag/audiology" />
+    <rdf:li resource="http://del.icio.us/tag/festival" />
+    <rdf:li resource="http://del.icio.us/tag/greenbelt" />
+  </rdf:Bag>
+</taxo:topics>
+</item>
+
+<item rdf:about="http://www.natuerlichwien.at/rundumadum/dergruenguertel/">
+<title>Natuerlichwien.at - Rundumadum</title>
+<link>http://www.natuerlichwien.at/rundumadum/dergruenguertel/</link>
+<dc:creator>egmilman47</dc:creator>
+<dc:date>2005-05-06T21:33:41Z</dc:date>
+<dc:subject>Austria Vienna Wien greenbelt nature walking</dc:subject>
+<taxo:topics>
+  <rdf:Bag>
+    <rdf:li resource="http://del.icio.us/tag/Vienna" />
+    <rdf:li resource="http://del.icio.us/tag/Wien" />
+    <rdf:li resource="http://del.icio.us/tag/Austria" />
+    <rdf:li resource="http://del.icio.us/tag/walking" />
+    <rdf:li resource="http://del.icio.us/tag/nature" />
+    <rdf:li resource="http://del.icio.us/tag/greenbelt" />
+  </rdf:Bag>
+</taxo:topics>
+</item>
+
+<item rdf:about="http://www.flickerweb.co.uk/wiki/index.php/Tank#Seminars">
+<title>Tank - GBMediaWiki</title>
+<link>http://www.flickerweb.co.uk/wiki/index.php/Tank#Seminars</link>
+<dc:creator>jystewart</dc:creator>
+<dc:date>2005-03-21T22:44:11Z</dc:date>
+<dc:subject>greenbelt</dc:subject>
+<taxo:topics>
+  <rdf:Bag>
+    <rdf:li resource="http://del.icio.us/tag/greenbelt" />
+  </rdf:Bag>
+</taxo:topics>
+</item>
+
+<item rdf:about="http://www.greenbelt.ca/home.htm">
+<title>Greenbelt homepage</title>
+<link>http://www.greenbelt.ca/home.htm</link>
+<dc:creator>Gooberoo</dc:creator>
+<dc:date>2005-03-01T22:43:17Z</dc:date>
+<dc:subject>greenbelt ontario</dc:subject>
+<taxo:topics>
+  <rdf:Bag>
+    <rdf:li resource="http://del.icio.us/tag/ontario" />
+    <rdf:li resource="http://del.icio.us/tag/greenbelt" />
+  </rdf:Bag>
+</taxo:topics>
+</item>
+
+<item rdf:about="http://pipwilsonbhp.blogspot.com/">
+<title>Pip Wilson bhp ...... blog</title>
+<link>http://pipwilsonbhp.blogspot.com/</link>
+<dc:creator>sssshhhh</dc:creator>
+<dc:date>2004-12-27T11:20:51Z</dc:date>
+<dc:subject>Greenbelt friend ideas links thinking weblog</dc:subject>
+<taxo:topics>
+  <rdf:Bag>
+    <rdf:li resource="http://del.icio.us/tag/Greenbelt" />
+    <rdf:li resource="http://del.icio.us/tag/thinking" />
+    <rdf:li resource="http://del.icio.us/tag/ideas" />
+    <rdf:li resource="http://del.icio.us/tag/links" />
+    <rdf:li resource="http://del.icio.us/tag/friend" />
+    <rdf:li resource="http://del.icio.us/tag/weblog" />
+  </rdf:Bag>
+</taxo:topics>
+</item>
+
+<item rdf:about="http://maggidawn.typepad.com/maggidawn/">
+<title>maggi dawn</title>
+<link>http://maggidawn.typepad.com/maggidawn/</link>
+<dc:creator>sssshhhh</dc:creator>
+<dc:date>2004-12-27T11:20:11Z</dc:date>
+<dc:subject>Greenbelt ideas links thinking weblog</dc:subject>
+<taxo:topics>
+  <rdf:Bag>
+    <rdf:li resource="http://del.icio.us/tag/Greenbelt" />
+    <rdf:li resource="http://del.icio.us/tag/thinking" />
+    <rdf:li resource="http://del.icio.us/tag/ideas" />
+    <rdf:li resource="http://del.icio.us/tag/links" />
+    <rdf:li resource="http://del.icio.us/tag/weblog" />
+  </rdf:Bag>
+</taxo:topics>
+</item>
+
+<item rdf:about="http://www.johndavies.org/">
+<title>John Davies</title>
+<link>http://www.johndavies.org/</link>
+<dc:creator>sssshhhh</dc:creator>
+<dc:date>2004-12-27T11:18:37Z</dc:date>
+<dc:subject>Greenbelt ideas links thinking weblog</dc:subject>
+<taxo:topics>
+  <rdf:Bag>
+    <rdf:li resource="http://del.icio.us/tag/Greenbelt" />
+    <rdf:li resource="http://del.icio.us/tag/thinking" />
+    <rdf:li resource="http://del.icio.us/tag/ideas" />
+    <rdf:li resource="http://del.icio.us/tag/links" />
+    <rdf:li resource="http://del.icio.us/tag/weblog" />
+  </rdf:Bag>
+</taxo:topics>
+</item>
+
+<item rdf:about="http://jonnybaker.blogs.com/">
+<title>jonnybaker</title>
+<link>http://jonnybaker.blogs.com/</link>
+<dc:creator>sssshhhh</dc:creator>
+<dc:date>2004-12-27T11:18:17Z</dc:date>
+<dc:subject>Greenbelt event ideas links resources thinking weblog youth</dc:subject>
+<taxo:topics>
+  <rdf:Bag>
+    <rdf:li resource="http://del.icio.us/tag/Greenbelt" />
+    <rdf:li resource="http://del.icio.us/tag/thinking" />
+    <rdf:li resource="http://del.icio.us/tag/ideas" />
+    <rdf:li resource="http://del.icio.us/tag/links" />
+    <rdf:li resource="http://del.icio.us/tag/weblog" />
+    <rdf:li resource="http://del.icio.us/tag/youth" />
+    <rdf:li resource="http://del.icio.us/tag/event" />
+    <rdf:li resource="http://del.icio.us/tag/resources" />
+  </rdf:Bag>
+</taxo:topics>
+</item>
+
+</rdf:RDF>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/rss10-example2.xml
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/rss10-example2.xml	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/rss10-example2.xml	(revision 14612)
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="utf-8"?> 
+
+<rdf:RDF 
+  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
+  xmlns:dc="http://purl.org/dc/elements/1.1/"
+  xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
+  xmlns:co="http://purl.org/rss/1.0/modules/company/"
+  xmlns:ti="http://purl.org/rss/1.0/modules/textinput/"
+  xmlns="http://purl.org/rss/1.0/"
+> 
+
+  <channel rdf:about="http://meerkat.oreillynet.com/?_fl=rss1.0">
+    <title>Meerkat</title>
+    <link>http://meerkat.oreillynet.com</link>
+    <description>Meerkat: An Open Wire Service</description>
+    <dc:publisher>The O'Reilly Network</dc:publisher>
+    <dc:creator>Rael Dornfest (mailto:rael@oreilly.com)</dc:creator>
+    <dc:rights>Copyright &#169; 2000 O'Reilly &amp; Associates, Inc.</dc:rights>
+    <dc:date>2000-01-01T12:00+00:00</dc:date>
+    <sy:updatePeriod>hourly</sy:updatePeriod>
+    <sy:updateFrequency>2</sy:updateFrequency>
+    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
+
+    <image rdf:resource="http://meerkat.oreillynet.com/icons/meerkat-powered.jpg" />
+
+    <items>
+      <rdf:Seq>
+        <rdf:li resource="http://c.moreover.com/click/here.pl?r123" />
+      </rdf:Seq>
+    </items>
+
+    <textinput rdf:resource="http://meerkat.oreillynet.com" />
+
+  </channel>
+
+  <image rdf:about="http://meerkat.oreillynet.com/icons/meerkat-powered.jpg">
+    <title>Meerkat Powered!</title>
+    <url>http://meerkat.oreillynet.com/icons/meerkat-powered.jpg</url>
+    <link>http://meerkat.oreillynet.com</link>
+  </image>
+
+  <item rdf:about="http://c.moreover.com/click/here.pl?r123">
+    <title>XML: A Disruptive Technology</title> 
+    <link>http://c.moreover.com/click/here.pl?r123</link>
+    <dc:description>
+      XML is placing increasingly heavy loads on the existing technical
+      infrastructure of the Internet.
+    </dc:description>
+    <dc:publisher>The O'Reilly Network</dc:publisher>
+    <dc:creator>Simon St.Laurent (mailto:simonstl@simonstl.com)</dc:creator>
+    <dc:rights>Copyright &#169; 2000 O'Reilly &amp; Associates, Inc.</dc:rights>
+    <dc:subject>XML</dc:subject>
+    <co:name>XML.com</co:name>
+    <co:market>NASDAQ</co:market>
+    <co:symbol>XML</co:symbol>
+  </item> 
+
+  <textinput rdf:about="http://meerkat.oreillynet.com">
+    <title>Search Meerkat</title>
+    <description>Search Meerkat's RSS Database...</description>
+    <name>s</name>
+    <link>http://meerkat.oreillynet.com/</link>
+    <ti:function>search</ti:function>
+    <ti:inputType>regex</ti:inputType>
+  </textinput>
+
+</rdf:RDF>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/grwifi-atom.xml
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/grwifi-atom.xml	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/grwifi-atom.xml	(revision 14612)
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<feed xmlns="http://www.w3.org/2005/Atom"
+	xmlns:dc="http://purl.org/dc/elements/1.1/" xml:lang="en">
+<title>Updates to Grand Rapids WiFi hotspot details</title>
+<link rel="alternate" type="text/html" href="http://grwifi.net/"/>
+<link rel="self" type="application/atom+xml" href="http://grwifi.net/atom/locations"/>
+<updated>2005-09-01T15:43:01-05:00</updated>
+<subtitle>WiFi Hotspots in Grand Rapids, MI</subtitle>
+<id>http://grwifi.net/atom/locations</id>
+<rights>Creative Commons Attribution-NonCommercial-ShareAlike 2.0 http://creativecommons.org/licenses/by-nc-sa/2.0/ </rights>
+
+
+<entry>
+    <title>Hotspot Details Updated: Sweetwaters</title>
+    <link rel="alternate" type="text/html" href="http://grwifi.net/location/sweetwaters"/>
+    <id>http://grwifi.net/location/sweetwaters</id>
+    <updated>2005-09-01T15:43:01-05:00</updated>
+
+	<summary type="html">
+		The details of the WiFi hotspot at: Sweetwaters have been updated. Find out more at:
+http://grwifi.net/location/sweetwaters
+	</summary>
+
+	<author>
+		<name>James</name>
+		<uri>http://jystewart.net</uri>
+		<email>james@jystewart.net</email>	</author>
+	<dc:subject>wifi hotspot</dc:subject>
+</entry>
+
+<entry>
+    <title>Hotspot Details Updated: Common Ground Coffee Shop</title>
+    <link rel="alternate" type="text/html" href="http://grwifi.net/location/common-ground"/>
+    <id>http://grwifi.net/location/common-ground</id>
+    <updated>2005-09-01T15:42:39-05:00</updated>
+
+	<summary type="html">
+		The details of the WiFi hotspot at: Common Ground Coffee Shop have been updated. Find out more at:
+http://grwifi.net/location/common-ground
+	</summary>
+
+	<author>
+		<name>James</name>
+		<uri>http://jystewart.net</uri>
+		<email>james@jystewart.net</email>	</author>
+	<dc:subject>wifi hotspot</dc:subject>
+</entry>
+
+<entry>
+    <title>Hotspot Details Updated: Grand Rapids Public Library, Main Branch</title>
+    <link rel="alternate" type="text/html" href="http://grwifi.net/location/grpl-main-branch"/>
+    <id>http://grwifi.net/location/grpl-main-branch</id>
+    <updated>2005-09-01T15:42:20-05:00</updated>
+
+	<summary type="html">
+		The details of the WiFi hotspot at: Grand Rapids Public Library, Main Branch have been updated. Find out more at:
+http://grwifi.net/location/grpl-main-branch
+	</summary>
+
+	<author>
+		<name>James</name>
+		<uri>http://jystewart.net</uri>
+		<email>james@jystewart.net</email>	</author>
+	<dc:subject>wifi hotspot</dc:subject>
+</entry>
+
+<entry>
+    <title>Hotspot Details Updated: Four Friends Coffee House</title>
+    <link rel="alternate" type="text/html" href="http://grwifi.net/location/four-friends"/>
+    <id>http://grwifi.net/location/four-friends</id>
+    <updated>2005-09-01T15:41:35-05:00</updated>
+
+	<summary type="html">
+		The details of the WiFi hotspot at: Four Friends Coffee House have been updated. Find out more at:
+http://grwifi.net/location/four-friends
+	</summary>
+
+	<author>
+		<name>James</name>
+		<uri>http://jystewart.net</uri>
+		<email>james@jystewart.net</email>	</author>
+	<dc:subject>wifi hotspot</dc:subject>
+</entry>
+
+<entry>
+    <title>Hotspot Details Updated: Barnes and Noble, Rivertown Crossings</title>
+    <link rel="alternate" type="text/html" href="http://grwifi.net/location/barnes-noble-rivertown"/>
+    <id>http://grwifi.net/location/barnes-noble-rivertown</id>
+    <updated>2005-09-01T15:40:41-05:00</updated>
+
+	<summary type="html">
+		The details of the WiFi hotspot at: Barnes and Noble, Rivertown Crossings have been updated. Find out more at:
+http://grwifi.net/location/barnes-noble-rivertown
+	</summary>
+
+	<author>
+		<name>James</name>
+		<uri>http://jystewart.net</uri>
+		<email>james@jystewart.net</email>	</author>
+	<dc:subject>wifi hotspot</dc:subject>
+</entry>
+
+<entry>
+    <title>Hotspot Details Updated: The Boss Sports Bar &amp; Grille</title>
+    <link rel="alternate" type="text/html" href="http://grwifi.net/location/boss-sports-bar"/>
+    <id>http://grwifi.net/location/boss-sports-bar</id>
+    <updated>2005-09-01T15:40:19-05:00</updated>
+
+	<summary type="html">
+		The details of the WiFi hotspot at: The Boss Sports Bar &amp; Grille have been updated. Find out more at:
+http://grwifi.net/location/boss-sports-bar
+	</summary>
+
+	<author>
+		<name>James</name>
+		<uri>http://jystewart.net</uri>
+		<email>james@jystewart.net</email>	</author>
+	<dc:subject>wifi hotspot</dc:subject>
+</entry>
+</feed>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/rss091-simple.xml
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/rss091-simple.xml	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/rss091-simple.xml	(revision 14612)
@@ -0,0 +1,15 @@
+<?xml version="1.0"?>
+<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd">
+<rss version="0.91">
+<channel>
+<language>en</language>
+<description>News and commentary from the cross-platform scripting community.</description>
+<link>http://www.scripting.com/</link>
+<title>Scripting News</title>
+<image>
+<link>http://www.scripting.com/</link>
+<title>Scripting News</title>
+<url>http://www.scripting.com/gifs/tinyScriptingNews.gif</url>
+</image>
+</channel>
+</rss>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/rss2sample.xml
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/rss2sample.xml	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/rss2sample.xml	(revision 14612)
@@ -0,0 +1,42 @@
+<?xml version="1.0"?>
+<rss version="2.0" xmlns:content="http://purl.org/rss/1.0.modules/content/">
+   <channel>
+      <title>Liftoff News</title>
+      <link>http://liftoff.msfc.nasa.gov/</link>
+      <description>Liftoff to Space Exploration.</description>
+      <language>en-us</language>
+      <pubDate>Tue, 10 Jun 2003 04:00:00 GMT</pubDate>
+      <lastBuildDate>Tue, 10 Jun 2003 09:41:01 GMT</lastBuildDate>
+      <docs>http://blogs.law.harvard.edu/tech/rss</docs>
+      <generator>Weblog Editor 2.0</generator>
+      <managingEditor>editor@example.com</managingEditor>
+      <webMaster>webmaster@example.com</webMaster>
+      <item>
+         <title>Star City</title>
+         <link>http://liftoff.msfc.nasa.gov/news/2003/news-starcity.asp</link>
+         <description>How do Americans get ready to work with Russians aboard the International Space Station? They take a crash course in culture, language and protocol at Russia's &lt;a href="http://howe.iki.rssi.ru/GCTC/gctc_e.htm"&gt;Star City&lt;/a&gt;.</description>
+         <pubDate>Tue, 03 Jun 2003 09:39:21 GMT</pubDate>
+         <guid>http://liftoff.msfc.nasa.gov/2003/06/03.html#item573</guid>
+      </item>
+      <item>
+         <description>Sky watchers in Europe, Asia, and parts of Alaska and Canada will experience a &lt;a href="http://science.nasa.gov/headlines/y2003/30may_solareclipse.htm"&gt;partial eclipse of the Sun&lt;/a&gt; on Saturday, May 31st.</description>
+         <pubDate>Fri, 30 May 2003 11:06:42 GMT</pubDate>
+         <guid>http://liftoff.msfc.nasa.gov/2003/05/30.html#item572</guid>
+      </item>
+      <item>
+         <title>The Engine That Does More</title>
+         <link>http://liftoff.msfc.nasa.gov/news/2003/news-VASIMR.asp</link>
+         <description>Before man travels to Mars, NASA hopes to design new engines that will let us fly through the Solar System more quickly.  The proposed VASIMR engine would do that.</description>
+         <pubDate>Tue, 27 May 2003 08:37:32 GMT</pubDate>
+         <guid>http://liftoff.msfc.nasa.gov/2003/05/27.html#item571</guid>
+		 <content:encoded><![CDATA[<p>Test content</p>]]></content:encoded>
+      </item>
+      <item>
+         <title>Astronauts' Dirty Laundry</title>
+         <link>http://liftoff.msfc.nasa.gov/news/2003/news-laundry.asp</link>
+         <description>Compared to earlier spacecraft, the International Space Station has many luxuries, but laundry facilities are not one of them.  Instead, astronauts have other options.</description>
+         <pubDate>Tue, 20 May 2003 08:56:02 GMT</pubDate>
+         <guid>http://liftoff.msfc.nasa.gov/2003/05/20.html#item570</guid>
+      </item>
+   </channel>
+</rss>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/illformed_atom10.xml
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/illformed_atom10.xml	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/samples/illformed_atom10.xml	(revision 14612)
@@ -0,0 +1,13 @@
+<!--
+Description: entry author name
+Expect:      bozo and entries[0]['author_detail']['name'] == u'Example author'
+-->
+<feed xmlns="http://www.w3.org/2005/Atom">
+<entry>
+  <author>
+    <name>Example author</name>
+    <email>me@example.com</email>
+    <uri>http://example.com/</uri>
+  </author>
+</entry>
+</feed
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/AtomElement.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/AtomElement.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/AtomElement.php	(revision 14612)
@@ -0,0 +1,261 @@
+<?php
+/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
+
+/**
+ * AtomElement class for XML_Feed_Parser package
+ *
+ * PHP versions 5
+ *
+ * LICENSE: This source file is subject to version 3.0 of the PHP license
+ * that is available through the world-wide-web at the following URI:
+ * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
+ * the PHP License and are unable to obtain it through the web, please
+ * send a note to license@php.net so we can mail you a copy immediately.
+ *
+ * @category   XML
+ * @package    XML_Feed_Parser
+ * @author     James Stewart <james@jystewart.net>
+ * @copyright  2005 James Stewart <james@jystewart.net>
+ * @license    http://www.gnu.org/copyleft/lesser.html  GNU LGPL 2.1
+ * @version    CVS: $Id: AtomElement.php,v 1.19 2007/03/26 12:43:11 jystewart Exp $
+ * @link       http://pear.php.net/package/XML_Feed_Parser/
+ */
+
+/**
+ * This class provides support for atom entries. It will usually be called by
+ * XML_Feed_Parser_Atom with which it shares many methods.
+ *
+ * @author    James Stewart <james@jystewart.net>
+ * @version    Release: 1.0.2
+ * @package XML_Feed_Parser
+ */
+class XML_Feed_Parser_AtomElement extends XML_Feed_Parser_Atom
+{
+    /**
+     * This will be a reference to the parent object for when we want
+     * to use a 'fallback' rule 
+     * @var XML_Feed_Parser_Atom
+     */
+    protected $parent;
+
+    /**
+     * When performing XPath queries we will use this prefix 
+     * @var string
+     */
+    private $xpathPrefix = '';
+    
+    /**
+     * xml:base values inherited by the element 
+     * @var string
+     */
+    protected $xmlBase;
+
+    /**
+     * Here we provide a few mappings for those very special circumstances in
+     * which it makes sense to map back to the RSS2 spec or to manage other
+     * compatibilities (eg. with the Univeral Feed Parser). Key is the other version's
+     * name for the command, value is an array consisting of the equivalent in our atom 
+     * api and any attributes needed to make the mapping.
+     * @var array
+     */
+    protected $compatMap = array(
+        'guid' => array('id'),
+        'links' => array('link'),
+        'tags' => array('category'),
+        'contributors' => array('contributor'));
+        
+    /**
+     * Our specific element map 
+     * @var array
+     */
+    protected $map = array(
+        'author' => array('Person', 'fallback'),
+        'contributor' => array('Person'),
+        'id' => array('Text', 'fail'),
+        'published' => array('Date'),
+        'updated' => array('Date', 'fail'),
+        'title' => array('Text', 'fail'),
+        'rights' => array('Text', 'fallback'),
+        'summary' => array('Text'),
+        'content' => array('Content'),
+        'link' => array('Link'),
+        'enclosure' => array('Enclosure'),
+        'category' => array('Category'));
+
+    /**
+     * Store useful information for later.
+     *
+     * @param   DOMElement  $element - this item as a DOM element
+     * @param   XML_Feed_Parser_Atom    $parent - the feed of which this is a member
+     */
+    function __construct(DOMElement $element, $parent, $xmlBase = '')
+    {
+        $this->model = $element;
+        $this->parent = $parent;
+        $this->xmlBase = $xmlBase;
+        $this->xpathPrefix = "//atom:entry[atom:id='" . $this->id . "']/";
+        $this->xpath = $this->parent->xpath;
+    }
+
+    /**
+     * Provides access to specific aspects of the author data for an atom entry
+     *
+     * Author data at the entry level is more complex than at the feed level.
+     * If atom:author is not present for the entry we need to look for it in
+     * an atom:source child of the atom:entry. If it's not there either, then
+     * we look to the parent for data.
+     *
+     * @param   array
+     * @return  string
+     */
+    function getAuthor($arguments)
+    {
+        /* Find out which part of the author data we're looking for */
+        if (isset($arguments['param'])) {
+            $parameter = $arguments['param'];
+        } else {
+            $parameter = 'name';
+        }
+        
+        $test = $this->model->getElementsByTagName('author');
+        if ($test->length > 0) {
+            $item = $test->item(0);
+            return $item->getElementsByTagName($parameter)->item(0)->nodeValue;
+        }
+        
+        $source = $this->model->getElementsByTagName('source');
+        if ($source->length > 0) {
+            $test = $this->model->getElementsByTagName('author');
+            if ($test->length > 0) {
+                $item = $test->item(0);
+                return $item->getElementsByTagName($parameter)->item(0)->nodeValue;
+            }
+        }
+        return $this->parent->getAuthor($arguments);
+    }
+
+    /**
+     * Returns the content of the content element or info on a specific attribute
+     *
+     * This element may or may not be present. It cannot be present more than
+     * once. It may have a 'src' attribute, in which case there's no content
+     * If not present, then the entry must have link with rel="alternate".
+     * If there is content we return it, if not and there's a 'src' attribute
+     * we return the value of that instead. The method can take an 'attribute'
+     * argument, in which case we return the value of that attribute if present.
+     * eg. $item->content("type") will return the type of the content. It is
+     * recommended that all users check the type before getting the content to
+     * ensure that their script is capable of handling the type of returned data.
+     * (data carried in the content element can be either 'text', 'html', 'xhtml', 
+     * or any standard MIME type).
+     *
+     * @return  string|false
+     */
+    protected function getContent($method, $arguments = array())
+    {
+        $attribute = empty($arguments[0]) ? false : $arguments[0];
+        $tags = $this->model->getElementsByTagName('content');
+
+        if ($tags->length == 0) {
+            return false;
+        }
+
+        $content = $tags->item(0);
+
+        if (! $content->hasAttribute('type')) {
+            $content->setAttribute('type', 'text');
+        }
+        if (! empty($attribute)) {
+            return $content->getAttribute($attribute);
+        }
+
+        $type = $content->getAttribute('type');
+
+        if (! empty($attribute)) {
+            if ($content->hasAttribute($attribute))
+            {
+                return $content->getAttribute($attribute);
+            }
+            return false;
+        }
+
+        if ($content->hasAttribute('src')) {
+            return $content->getAttribute('src');
+        }
+
+        return $this->parseTextConstruct($content);
+     }
+
+    /**
+     * For compatibility, this method provides a mapping to access enclosures.
+     *
+     * The Atom spec doesn't provide for an enclosure element, but it is
+     * generally supported using the link element with rel='enclosure'.
+     *
+     * @param   string  $method - for compatibility with our __call usage
+     * @param   array   $arguments - for compatibility with our __call usage
+     * @return  array|false
+     */
+    function getEnclosure($method, $arguments = array())
+    {
+        $offset = isset($arguments[0]) ? $arguments[0] : 0;
+        $query = "//atom:entry[atom:id='" . $this->getText('id', false) . 
+            "']/atom:link[@rel='enclosure']";
+
+        $encs = $this->parent->xpath->query($query);
+        if ($encs->length > $offset) {
+            try {
+                if (! $encs->item($offset)->hasAttribute('href')) {
+                    return false;
+                }
+                $attrs = $encs->item($offset)->attributes;
+                $length = $encs->item($offset)->hasAttribute('length') ? 
+                    $encs->item($offset)->getAttribute('length') : false;
+                return array(
+                    'url' => $attrs->getNamedItem('href')->value,
+                    'type' => $attrs->getNamedItem('type')->value,
+                    'length' => $length);
+            } catch (Exception $e) {
+                return false;
+            }
+        }
+        return false;
+    }
+    
+    /**
+     * Get details of this entry's source, if available/relevant
+     *
+     * Where an atom:entry is taken from another feed then the aggregator
+     * is supposed to include an atom:source element which replicates at least
+     * the atom:id, atom:title, and atom:updated metadata from the original
+     * feed. Atom:source therefore has a very similar structure to atom:feed
+     * and if we find it we will return it as an XML_Feed_Parser_Atom object.
+     *
+     * @return  XML_Feed_Parser_Atom|false
+     */
+    function getSource()
+    {
+        $test = $this->model->getElementsByTagName('source');
+        if ($test->length == 0) {
+            return false;
+        }
+        $source = new XML_Feed_Parser_Atom($test->item(0));
+    }
+
+    /**
+     * Get the entry as an XML string
+     *
+     * Return an XML serialization of the feed, should it be required. Most 
+     * users however, will already have a serialization that they used when 
+     * instantiating the object.
+     *
+     * @return    string    XML serialization of element
+     */    
+    function __toString()
+    {
+        $simple = simplexml_import_dom($this->model);
+        return $simple->asXML();
+    }
+}
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/RSS09Element.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/RSS09Element.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/RSS09Element.php	(revision 14612)
@@ -0,0 +1,62 @@
+<?php
+/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
+
+/**
+ * RSS0.9 Element class for XML_Feed_Parser
+ *
+ * PHP versions 5
+ *
+ * LICENSE: This source file is subject to version 3.0 of the PHP license
+ * that is available through the world-wide-web at the following URI:
+ * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
+ * the PHP License and are unable to obtain it through the web, please
+ * send a note to license@php.net so we can mail you a copy immediately.
+ *
+ * @category   XML
+ * @package    XML_Feed_Parser
+ * @author     James Stewart <james@jystewart.net>
+ * @copyright  2005 James Stewart <james@jystewart.net>
+ * @license    http://www.gnu.org/copyleft/lesser.html  GNU LGPL 2.1
+ * @version    CVS: $Id: RSS09Element.php,v 1.4 2006/06/30 17:41:56 jystewart Exp $
+ * @link       http://pear.php.net/package/XML_Feed_Parser/
+ */
+
+/*
+ * This class provides support for RSS 0.9 entries. It will usually be called by
+ * XML_Feed_Parser_RSS09 with which it shares many methods.
+ *
+ * @author    James Stewart <james@jystewart.net>
+ * @version    Release: 1.0.2
+ * @package XML_Feed_Parser
+ */
+class XML_Feed_Parser_RSS09Element extends XML_Feed_Parser_RSS09
+{
+    /**
+     * This will be a reference to the parent object for when we want
+     * to use a 'fallback' rule 
+     * @var XML_Feed_Parser_RSS09
+     */
+    protected $parent;
+
+    /**
+     * Our specific element map 
+     * @var array
+     */
+    protected $map = array(
+        'title' => array('Text'),
+        'link' => array('Link'));
+
+    /**
+     * Store useful information for later.
+     *
+     * @param   DOMElement  $element - this item as a DOM element
+     * @param   XML_Feed_Parser_RSS1 $parent - the feed of which this is a member
+     */
+    function __construct(DOMElement $element, $parent, $xmlBase = '')
+    {
+        $this->model = $element;
+        $this->parent = $parent;
+    }
+}
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/Exception.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/Exception.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/Exception.php	(revision 14612)
@@ -0,0 +1,42 @@
+<?php
+/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
+
+/**
+ * Keeps the exception class for XML_Feed_Parser.
+ *
+ * PHP versions 5
+ *
+ * LICENSE: This source file is subject to version 3.0 of the PHP license
+ * that is available through the world-wide-web at the following URI:
+ * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
+ * the PHP License and are unable to obtain it through the web, please
+ * send a note to license@php.net so we can mail you a copy immediately.
+ *
+ * @category   XML
+ * @package    XML_Feed_Parser
+ * @author     James Stewart <james@jystewart.net>
+ * @copyright  2005 James Stewart <james@jystewart.net>
+ * @license    http://www.gnu.org/copyleft/lesser.html  GNU LGPL
+ * @version    CVS: $Id: Exception.php,v 1.3 2005/11/07 01:52:35 jystewart Exp $
+ * @link       http://pear.php.net/package/XML_Feed_Parser/
+ */
+ 
+/**
+ * We are extending PEAR_Exception
+ */
+require_once 'PEAR/Exception.php';
+
+/**
+ * XML_Feed_Parser_Exception is a simple extension of PEAR_Exception, existing
+ * to help with identification of the source of exceptions.
+ *
+ * @author  James Stewart <james@jystewart.net>
+ * @version Release: 1.0.2
+ * @package XML_Feed_Parser
+ */ 
+class XML_Feed_Parser_Exception extends PEAR_Exception
+{
+
+}
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/Atom.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/Atom.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/Atom.php	(revision 14612)
@@ -0,0 +1,365 @@
+<?php
+/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
+
+/**
+ * Atom feed class for XML_Feed_Parser
+ *
+ * PHP versions 5
+ *
+ * LICENSE: This source file is subject to version 3.0 of the PHP license
+ * that is available through the world-wide-web at the following URI:
+ * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
+ * the PHP License and are unable to obtain it through the web, please
+ * send a note to license@php.net so we can mail you a copy immediately.
+ *
+ * @category   XML
+ * @package    XML_Feed_Parser
+ * @author     James Stewart <james@jystewart.net>
+ * @copyright  2005 James Stewart <james@jystewart.net>
+ * @license    http://www.gnu.org/copyleft/lesser.html  GNU LGPL 2.1
+ * @version    CVS: $Id: Atom.php,v 1.25 2007/03/26 12:49:05 jystewart Exp $
+ * @link       http://pear.php.net/package/XML_Feed_Parser/
+*/
+
+/**
+ * This is the class that determines how we manage Atom 1.0 feeds
+ * 
+ * How we deal with constructs:
+ *  date - return as unix datetime for use with the 'date' function unless specified otherwise
+ *  text - return as is. optional parameter will give access to attributes
+ *  person - defaults to name, but parameter based access
+ *
+ * @author    James Stewart <james@jystewart.net>
+ * @version    Release: 1.0.2
+ * @package XML_Feed_Parser
+ */
+class XML_Feed_Parser_Atom extends XML_Feed_Parser_Type
+{
+    /**
+     * The URI of the RelaxNG schema used to (optionally) validate the feed 
+     * @var string
+     */
+    private $relax = 'atom.rnc';
+
+    /**
+     * We're likely to use XPath, so let's keep it global 
+     * @var DOMXPath
+     */
+    public $xpath;
+
+    /**
+     * When performing XPath queries we will use this prefix 
+     * @var string
+     */
+    private $xpathPrefix = '//';
+
+    /**
+     * The feed type we are parsing 
+     * @var string
+     */
+    public $version = 'Atom 1.0';
+
+    /** 
+     * The class used to represent individual items 
+     * @var string
+     */
+    protected $itemClass = 'XML_Feed_Parser_AtomElement';
+    
+    /** 
+     * The element containing entries 
+     * @var string
+     */
+    protected $itemElement = 'entry';
+
+    /**
+     * Here we map those elements we're not going to handle individually
+     * to the constructs they are. The optional second parameter in the array
+     * tells the parser whether to 'fall back' (not apt. at the feed level) or
+     * fail if the element is missing. If the parameter is not set, the function
+     * will simply return false and leave it to the client to decide what to do.
+     * @var array
+     */
+    protected $map = array(
+        'author' => array('Person'),
+        'contributor' => array('Person'),
+        'icon' => array('Text'),
+        'logo' => array('Text'),
+        'id' => array('Text', 'fail'),
+        'rights' => array('Text'),
+        'subtitle' => array('Text'),
+        'title' => array('Text', 'fail'),
+        'updated' => array('Date', 'fail'),
+        'link' => array('Link'),
+        'generator' => array('Text'),
+        'category' => array('Category'));
+
+    /**
+     * Here we provide a few mappings for those very special circumstances in
+     * which it makes sense to map back to the RSS2 spec. Key is RSS2 version
+     * value is an array consisting of the equivalent in atom and any attributes
+     * needed to make the mapping.
+     * @var array
+     */
+    protected $compatMap = array(
+        'guid' => array('id'),
+        'links' => array('link'),
+        'tags' => array('category'),
+        'contributors' => array('contributor'));
+
+    /**
+     * Our constructor does nothing more than its parent.
+     * 
+     * @param    DOMDocument    $xml    A DOM object representing the feed
+     * @param    bool (optional) $string    Whether or not to validate this feed
+     */
+    function __construct(DOMDocument $model, $strict = false)
+    {
+        $this->model = $model;
+
+        if ($strict) {
+            if (! $this->model->relaxNGValidateSource($this->relax)) {
+                throw new XML_Feed_Parser_Exception('Failed required validation');
+            }
+        }
+
+        $this->xpath = new DOMXPath($this->model);
+        $this->xpath->registerNamespace('atom', 'http://www.w3.org/2005/Atom');
+        $this->numberEntries = $this->count('entry');
+    }
+
+    /**
+     * Implement retrieval of an entry based on its ID for atom feeds.
+     *
+     * This function uses XPath to get the entry based on its ID. If DOMXPath::evaluate
+     * is available, we also use that to store a reference to the entry in the array
+     * used by getEntryByOffset so that method does not have to seek out the entry
+     * if it's requested that way.
+     * 
+     * @param    string    $id    any valid Atom ID.
+     * @return    XML_Feed_Parser_AtomElement
+     */
+    function getEntryById($id)
+    {
+        if (isset($this->idMappings[$id])) {
+            return $this->entries[$this->idMappings[$id]];
+        }
+
+        $entries = $this->xpath->query("//atom:entry[atom:id='$id']");
+
+        if ($entries->length > 0) {
+            $xmlBase = $entries->item(0)->baseURI;
+            $entry = new $this->itemElement($entries->item(0), $this, $xmlBase);
+            
+            if (in_array('evaluate', get_class_methods($this->xpath))) {
+                $offset = $this->xpath->evaluate("count(preceding-sibling::atom:entry)", $entries->item(0));
+                $this->entries[$offset] = $entry;
+            }
+
+            $this->idMappings[$id] = $entry;
+
+            return $entry;
+        }
+        
+    }
+
+    /**
+     * Retrieves data from a person construct.
+     *
+     * Get a person construct. We default to the 'name' element but allow
+     * access to any of the elements.
+     * 
+     * @param    string    $method    The name of the person construct we want
+     * @param    array     $arguments    An array which we hope gives a 'param'
+     * @return    string|false
+     */
+    protected function getPerson($method, $arguments)
+    {
+        $offset = empty($arguments[0]) ? 0 : $arguments[0];
+        $parameter = empty($arguments[1]['param']) ? 'name' : $arguments[1]['param'];
+        $section = $this->model->getElementsByTagName($method);
+        
+        if ($parameter == 'url') {
+            $parameter = 'uri';
+        }
+
+        if ($section->length <= $offset) {
+            return false;
+        }
+
+        $param = $section->item($offset)->getElementsByTagName($parameter);
+        if ($param->length == 0) {
+            return false;
+        }
+        return $param->item(0)->nodeValue;
+    }
+
+    /**
+     * Retrieves an element's content where that content is a text construct.
+     *
+     * Get a text construct. When calling this method, the two arguments
+     * allowed are 'offset' and 'attribute', so $parser->subtitle() would
+     * return the content of the element, while $parser->subtitle(false, 'type')
+     * would return the value of the type attribute.
+     *
+     * @todo    Clarify overlap with getContent()
+     * @param    string    $method    The name of the text construct we want
+     * @param    array     $arguments    An array which we hope gives a 'param'
+     * @return    string
+     */
+    protected function getText($method, $arguments)
+    {
+        $offset = empty($arguments[0]) ? 0: $arguments[0];
+        $attribute = empty($arguments[1]) ? false : $arguments[1];
+        $tags = $this->model->getElementsByTagName($method);
+
+        if ($tags->length <= $offset) {
+            return false;
+        }
+
+        $content = $tags->item($offset);
+
+        if (! $content->hasAttribute('type')) {
+            $content->setAttribute('type', 'text');
+        }
+        $type = $content->getAttribute('type');
+
+        if (! empty($attribute) and 
+            ! ($method == 'generator' and $attribute == 'name')) {
+            if ($content->hasAttribute($attribute)) {
+                return $content->getAttribute($attribute);
+            } else if ($attribute == 'href' and $content->hasAttribute('uri')) {
+                return $content->getAttribute('uri');
+            }
+            return false;
+        }
+        return $this->parseTextConstruct($content);
+    }
+    
+    /**
+     * Extract content appropriately from atom text constructs
+     *
+     * Because of different rules applied to the content element and other text
+     * constructs, they are deployed as separate functions, but they share quite
+     * a bit of processing. This method performs the core common process, which is
+     * to apply the rules for different mime types in order to extract the content.
+     *
+     * @param   DOMNode $content    the text construct node to be parsed
+     * @return String
+     * @author James Stewart
+     **/
+    protected function parseTextConstruct(DOMNode $content)
+    {
+        if ($content->hasAttribute('type')) {
+            $type = $content->getAttribute('type');
+        } else {
+            $type = 'text';
+        }
+
+        if (strpos($type, 'text/') === 0) {
+            $type = 'text';
+        }
+        switch ($type) {
+            case 'text':
+                return $content->nodeValue;
+                break;
+            case 'html':
+                return str_replace('&lt;', '<', $content->nodeValue);
+                break;
+            case 'xhtml':
+                $container = $content->getElementsByTagName('div');
+                if ($container->length == 0) {
+                    return false;
+                }
+                $contents = $container->item(0);
+                if ($contents->hasChildNodes()) {
+                    /* Iterate through, applying xml:base and store the result */
+                    $result = '';
+                    foreach ($contents->childNodes as $node) {
+                        $result .= $this->traverseNode($node);
+                    }
+                    return utf8_decode($result);
+                }
+                break;
+            case preg_match('@^[a-zA-Z]+/[a-zA-Z+]*xml@i', $type) > 0:
+                return $content;
+                break;
+            case 'application/octet-stream':
+            default:
+                return base64_decode(trim($content->nodeValue));
+                break;
+        }
+        return false;
+    }
+    /**
+     * Get a category from the entry.
+     *
+     * A feed or entry can have any number of categories. A category can have the
+     * attributes term, scheme and label.
+     * 
+     * @param    string    $method    The name of the text construct we want
+     * @param    array     $arguments    An array which we hope gives a 'param'
+     * @return    string
+     */
+    function getCategory($method, $arguments)
+    {
+        $offset = empty($arguments[0]) ? 0: $arguments[0];
+        $attribute = empty($arguments[1]) ? 'term' : $arguments[1];
+        $categories = $this->model->getElementsByTagName('category');
+        if ($categories->length <= $offset) {
+            $category = $categories->item($offset);
+            if ($category->hasAttribute($attribute)) {
+                return $category->getAttribute($attribute);
+            }
+        }
+        return false;
+    }
+
+    /**
+     * This element must be present at least once with rel="feed". This element may be 
+     * present any number of further times so long as there is no clash. If no 'rel' is 
+     * present and we're asked for one, we follow the example of the Universal Feed
+     * Parser and presume 'alternate'.
+     *
+     * @param    int    $offset    the position of the link within the container
+     * @param    string    $attribute    the attribute name required
+     * @param    array     an array of attributes to search by
+     * @return    string    the value of the attribute
+     */
+    function getLink($offset = 0, $attribute = 'href', $params = false)
+    {
+        if (is_array($params) and !empty($params)) {
+            $terms = array();
+            $alt_predicate = '';
+            $other_predicate = '';
+
+            foreach ($params as $key => $value) {
+                if ($key == 'rel' && $value == 'alternate') {
+                    $alt_predicate = '[not(@rel) or @rel="alternate"]';
+                } else {
+                    $terms[] = "@$key='$value'";
+                }
+            }
+            if (!empty($terms)) {
+                $other_predicate = '[' . join(' and ', $terms) . ']';
+            }
+            $query =  $this->xpathPrefix . 'atom:link' . $alt_predicate . $other_predicate;
+            $links = $this->xpath->query($query);
+        } else {
+            $links = $this->model->getElementsByTagName('link');
+        }
+        if ($links->length > $offset) {
+            if ($links->item($offset)->hasAttribute($attribute)) {
+                $value = $links->item($offset)->getAttribute($attribute);
+                if ($attribute == 'href') {
+                    $value = $this->addBase($value, $links->item($offset));
+                }
+                return $value;
+            } else if ($attribute == 'rel') {
+                return 'alternate';
+            }
+        }
+        return false;
+    }
+}
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/RSS09.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/RSS09.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/RSS09.php	(revision 14612)
@@ -0,0 +1,214 @@
+<?php
+/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
+
+/**
+ * RSS0.9 class for XML_Feed_Parser
+ *
+ * PHP versions 5
+ *
+ * LICENSE: This source file is subject to version 3.0 of the PHP license
+ * that is available through the world-wide-web at the following URI:
+ * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
+ * the PHP License and are unable to obtain it through the web, please
+ * send a note to license@php.net so we can mail you a copy immediately.
+ *
+ * @category   XML
+ * @package    XML_Feed_Parser
+ * @author     James Stewart <james@jystewart.net>
+ * @copyright  2005 James Stewart <james@jystewart.net>
+ * @license    http://www.gnu.org/copyleft/lesser.html  GNU LGPL 2.1
+ * @version    CVS: $Id: RSS09.php,v 1.5 2006/07/26 21:18:46 jystewart Exp $
+ * @link       http://pear.php.net/package/XML_Feed_Parser/
+ */
+
+/**
+ * This class handles RSS0.9 feeds.
+ * 
+ * @author    James Stewart <james@jystewart.net>
+ * @version    Release: 1.0.2
+ * @package XML_Feed_Parser
+ * @todo    Find a Relax NG URI we can use
+ */
+class XML_Feed_Parser_RSS09 extends XML_Feed_Parser_Type
+{
+    /**
+     * The URI of the RelaxNG schema used to (optionally) validate the feed 
+     * @var string
+     */
+    private $relax = '';
+
+    /**
+     * We're likely to use XPath, so let's keep it global
+     * @var DOMXPath
+     */
+    protected $xpath;
+
+    /**
+     * The feed type we are parsing 
+     * @var string
+     */
+    public $version = 'RSS 0.9';
+
+    /**
+     * The class used to represent individual items 
+     * @var string
+     */
+    protected $itemClass = 'XML_Feed_Parser_RSS09Element';
+    
+    /**
+     * The element containing entries 
+     * @var string
+     */
+    protected $itemElement = 'item';
+
+    /**
+     * Here we map those elements we're not going to handle individually
+     * to the constructs they are. The optional second parameter in the array
+     * tells the parser whether to 'fall back' (not apt. at the feed level) or
+     * fail if the element is missing. If the parameter is not set, the function
+     * will simply return false and leave it to the client to decide what to do.
+     * @var array
+     */
+    protected $map = array(
+        'title' => array('Text'),
+        'link' => array('Text'),
+        'description' => array('Text'),
+        'image' => array('Image'),
+        'textinput' => array('TextInput'));
+
+    /**
+     * Here we map some elements to their atom equivalents. This is going to be
+     * quite tricky to pull off effectively (and some users' methods may vary)
+     * but is worth trying. The key is the atom version, the value is RSS2.
+     * @var array
+     */
+    protected $compatMap = array(
+        'title' => array('title'),
+        'link' => array('link'),
+        'subtitle' => array('description'));
+
+    /**
+     * We will be working with multiple namespaces and it is useful to 
+     * keep them together 
+     * @var array
+     */
+    protected $namespaces = array(
+        'rdf' => 'http://www.w3.org/1999/02/22-rdf-syntax-ns#');
+
+    /**
+     * Our constructor does nothing more than its parent.
+     * 
+     * @todo    RelaxNG validation
+     * @param    DOMDocument    $xml    A DOM object representing the feed
+     * @param    bool (optional) $string    Whether or not to validate this feed
+     */
+    function __construct(DOMDocument $model, $strict = false)
+    {
+        $this->model = $model;
+
+        $this->xpath = new DOMXPath($model);
+        foreach ($this->namespaces as $key => $value) {
+            $this->xpath->registerNamespace($key, $value);
+        }            
+        $this->numberEntries = $this->count('item');
+    }
+
+    /**
+     * Included for compatibility -- will not work with RSS 0.9
+     *
+     * This is not something that will work with RSS0.9 as it does not have
+     * clear restrictions on the global uniqueness of IDs.
+     *
+     * @param    string    $id    any valid ID.
+     * @return    false
+     */
+    function getEntryById($id)
+    {
+        return false;        
+    }
+
+    /**
+     * Get details of the image associated with the feed.
+     *
+     * @return  array|false an array simply containing the child elements
+     */
+    protected function getImage()
+    {
+        $images = $this->model->getElementsByTagName('image');
+        if ($images->length > 0) {
+            $image = $images->item(0);
+            $details = array();
+            if ($image->hasChildNodes()) {
+                $details = array(
+                    'title' => $image->getElementsByTagName('title')->item(0)->value,
+                    'link' => $image->getElementsByTagName('link')->item(0)->value,
+                    'url' => $image->getElementsByTagName('url')->item(0)->value);
+            } else {
+                $details = array('title' => false,
+                    'link' => false,
+                    'url' => $image->attributes->getNamedItem('resource')->nodeValue);
+            }
+            $details = array_merge($details, 
+                array('description' => false, 'height' => false, 'width' => false));
+            if (! empty($details)) {
+                return $details;
+            }
+        }
+        return false;
+    }
+
+    /**
+     * The textinput element is little used, but in the interests of
+     * completeness we will support it.
+     *
+     * @return  array|false
+     */
+    protected function getTextInput()
+    {
+        $inputs = $this->model->getElementsByTagName('textinput');
+        if ($inputs->length > 0) {
+            $input = $inputs->item(0);
+            $results = array();
+            $results['title'] = isset(
+                $input->getElementsByTagName('title')->item(0)->value) ? 
+                $input->getElementsByTagName('title')->item(0)->value : null;
+            $results['description'] = isset(
+                $input->getElementsByTagName('description')->item(0)->value) ? 
+                $input->getElementsByTagName('description')->item(0)->value : null;
+            $results['name'] = isset(
+                $input->getElementsByTagName('name')->item(0)->value) ? 
+                $input->getElementsByTagName('name')->item(0)->value : null;
+            $results['link'] = isset(
+                   $input->getElementsByTagName('link')->item(0)->value) ? 
+                   $input->getElementsByTagName('link')->item(0)->value : null;
+            if (empty($results['link']) && 
+                $input->attributes->getNamedItem('resource')) {
+                $results['link'] = $input->attributes->getNamedItem('resource')->nodeValue;
+            }
+            if (! empty($results)) {
+                return $results;
+            }
+        }
+        return false;
+    }
+    
+    /**
+     * Get details of a link from the feed.
+     *
+     * In RSS1 a link is a text element but in order to ensure that we resolve
+     * URLs properly we have a special function for them.
+     *
+     * @return  string
+     */
+    function getLink($offset = 0, $attribute = 'href', $params = false)
+    {
+        $links = $this->model->getElementsByTagName('link');
+        if ($links->length <= $offset) {
+            return false;
+        }
+        $link = $links->item($offset);
+        return $this->addBase($link->nodeValue, $link);
+    }
+}
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/Type.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/Type.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/Type.php	(revision 14612)
@@ -0,0 +1,441 @@
+<?php
+/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
+
+/**
+ * Abstract class providing common methods for XML_Feed_Parser feeds.
+ *
+ * PHP versions 5
+ *
+ * LICENSE: This source file is subject to version 3.0 of the PHP license
+ * that is available through the world-wide-web at the following URI:
+ * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
+ * the PHP License and are unable to obtain it through the web, please
+ * send a note to license@php.net so we can mail you a copy immediately.
+ *
+ * @category   XML
+ * @package    XML_Feed_Parser
+ * @author     James Stewart <james@jystewart.net>
+ * @copyright  2005 James Stewart <james@jystewart.net>
+ * @license    http://www.gnu.org/copyleft/lesser.html  GNU LGPL 2.1
+ * @version    CVS: $Id: Type.php,v 1.22 2006/08/15 13:02:36 jystewart Exp $
+ * @link       http://pear.php.net/package/XML_Feed_Parser/
+ */
+
+/**
+ * This abstract class provides some general methods that are likely to be
+ * implemented exactly the same way for all feed types.
+ *
+ * @package XML_Feed_Parser
+ * @author  James Stewart <james@jystewart.net>
+ * @version Release: 1.0.2
+ */
+abstract class XML_Feed_Parser_Type
+{
+    /**
+     * Where we store our DOM object for this feed 
+     * @var DOMDocument
+     */
+    public $model;
+
+    /**
+     * For iteration we'll want a count of the number of entries 
+     * @var int
+     */
+    public $numberEntries;
+
+    /**
+     * Where we store our entry objects once instantiated 
+     * @var array
+     */
+    public $entries = array();
+
+    /**
+     * Proxy to allow use of element names as method names
+     *
+     * We are not going to provide methods for every entry type so this
+     * function will allow for a lot of mapping. We rely pretty heavily
+     * on this to handle our mappings between other feed types and atom.
+     *
+     * @param   string  $call - the method attempted
+     * @param   array   $arguments - arguments to that method
+     * @return  mixed
+     */
+    function __call($call, $arguments = array())
+    {
+        if (! is_array($arguments)) {
+            $arguments = array();
+        }
+
+        if (isset($this->compatMap[$call])) {
+            $tempMap = $this->compatMap;
+            $tempcall = array_pop($tempMap[$call]);
+            if (! empty($tempMap)) {
+                $arguments = array_merge($arguments, $tempMap[$call]);
+            }
+            $call = $tempcall;
+        }
+
+        /* To be helpful, we allow a case-insensitive search for this method */
+        if (! isset($this->map[$call])) {
+            foreach (array_keys($this->map) as $key) {
+                if (strtoupper($key) == strtoupper($call)) {
+                    $call = $key;
+                    break;
+                }
+            }
+        }
+
+        if (empty($this->map[$call])) {
+            return false;
+        }
+
+        $method = 'get' . $this->map[$call][0];
+        if ($method == 'getLink') {
+            $offset = empty($arguments[0]) ? 0 : $arguments[0];
+            $attribute = empty($arguments[1]) ? 'href' : $arguments[1];
+            $params = isset($arguments[2]) ? $arguments[2] : array();
+            return $this->getLink($offset, $attribute, $params);
+        }
+        if (method_exists($this, $method)) {
+            return $this->$method($call, $arguments);
+        }
+
+        return false;
+    }
+
+    /**
+     * Proxy to allow use of element names as attribute names
+     *
+     * For many elements variable-style access will be desirable. This function
+     * provides for that.
+     *
+     * @param   string  $value - the variable required
+     * @return  mixed
+     */
+    function __get($value)
+    {
+        return $this->__call($value, array());
+    }
+
+    /**
+     * Utility function to help us resolve xml:base values
+     *
+     * We have other methods which will traverse the DOM and work out the different
+     * xml:base declarations we need to be aware of. We then need to combine them.
+     * If a declaration starts with a protocol then we restart the string. If it 
+     * starts with a / then we add on to the domain name. Otherwise we simply tag 
+     * it on to the end.
+     *
+     * @param   string  $base - the base to add the link to
+     * @param   string  $link
+     */
+    function combineBases($base, $link)
+    {
+        if (preg_match('/^[A-Za-z]+:\/\//', $link)) {
+            return $link;
+        } else if (preg_match('/^\//', $link)) {
+            /* Extract domain and suffix link to that */
+            preg_match('/^([A-Za-z]+:\/\/.*)?\/*/', $base, $results);
+            $firstLayer = $results[0];
+            return $firstLayer . "/" . $link;
+        } else if (preg_match('/^\.\.\//', $base)) {
+            /* Step up link to find place to be */
+            preg_match('/^((\.\.\/)+)(.*)$/', $link, $bases);
+            $suffix = $bases[3];
+            $count = preg_match_all('/\.\.\//', $bases[1], $steps);
+            $url = explode("/", $base);
+            for ($i = 0; $i <= $count; $i++) {
+                array_pop($url);
+            }
+            return implode("/", $url) . "/" . $suffix;
+        } else if (preg_match('/^(?!\/$)/', $base)) {
+            $base = preg_replace('/(.*\/).*$/', '$1', $base)  ;
+            return $base . $link;
+        } else {
+            /* Just stick it on the end */
+            return $base . $link;
+        }
+    }
+
+    /**
+     * Determine whether we need to apply our xml:base rules
+     *
+     * Gets us the xml:base data and then processes that with regard
+     * to our current link.
+     *
+     * @param   string
+     * @param   DOMElement
+     * @return  string
+     */
+    function addBase($link, $element)
+    {
+        if (preg_match('/^[A-Za-z]+:\/\//', $link)) {
+            return $link;
+        }
+
+        return $this->combineBases($element->baseURI, $link);
+    }
+
+    /**
+     * Get an entry by its position in the feed, starting from zero
+     *
+     * As well as allowing the items to be iterated over we want to allow
+     * users to be able to access a specific entry. This is one of two ways of
+     * doing that, the other being by ID.
+     * 
+     * @param   int $offset
+     * @return  XML_Feed_Parser_RSS1Element
+     */
+    function getEntryByOffset($offset)
+    {
+        if (! isset($this->entries[$offset])) {
+            $entries = $this->model->getElementsByTagName($this->itemElement);
+            if ($entries->length > $offset) {
+                $xmlBase = $entries->item($offset)->baseURI;
+                $this->entries[$offset] = new $this->itemClass(
+                    $entries->item($offset), $this, $xmlBase);
+                if ($id = $this->entries[$offset]->id) {
+                    $this->idMappings[$id] = $this->entries[$offset];
+                }
+            } else {
+                throw new XML_Feed_Parser_Exception('No entries found');
+            }
+        }
+
+        return $this->entries[$offset];
+    }
+
+    /**
+     * Return a date in seconds since epoch.
+     *
+     * Get a date construct. We use PHP's strtotime to return it as a unix datetime, which
+     * is the number of seconds since 1970-01-01 00:00:00.
+     * 
+     * @link    http://php.net/strtotime
+     * @param    string    $method        The name of the date construct we want
+     * @param    array     $arguments    Included for compatibility with our __call usage
+     * @return    int|false datetime
+     */
+    protected function getDate($method, $arguments)
+    {
+        $time = $this->model->getElementsByTagName($method);
+        if ($time->length == 0) {
+            return false;
+        }
+        return strtotime($time->item(0)->nodeValue);
+    }
+
+    /**
+     * Get a text construct. 
+     *
+     * @param    string    $method    The name of the text construct we want
+     * @param    array     $arguments    Included for compatibility with our __call usage
+     * @return    string
+     */
+    protected function getText($method, $arguments = array())
+    {
+        $tags = $this->model->getElementsByTagName($method);
+        if ($tags->length > 0) {
+            $value = $tags->item(0)->nodeValue;
+            return $value;
+        }
+        return false;
+    }
+
+    /**
+     * Apply various rules to retrieve category data.
+     *
+     * There is no single way of declaring a category in RSS1/1.1 as there is in RSS2 
+     * and  Atom. Instead the usual approach is to use the dublin core namespace to 
+     * declare  categories. For example delicious use both: 
+     * <dc:subject>PEAR</dc:subject> and: <taxo:topics><rdf:Bag>
+     * <rdf:li resource="http://del.icio.us/tag/PEAR" /></rdf:Bag></taxo:topics>
+     * to declare a categorisation of 'PEAR'.
+     *
+     * We need to be sensitive to this where possible.
+     *
+     * @param    string    $call    for compatibility with our overloading
+     * @param   array $arguments - arg 0 is the offset, arg 1 is whether to return as array
+     * @return  string|array|false
+     */
+    protected function getCategory($call, $arguments)
+    {
+        $categories = $this->model->getElementsByTagName('subject');
+        $offset = empty($arguments[0]) ? 0 : $arguments[0];
+        $array = empty($arguments[1]) ? false : true;
+        if ($categories->length <= $offset) {
+            return false;
+        }
+        if ($array) {
+            $list = array();
+            foreach ($categories as $category) {
+                array_push($list, $category->nodeValue);
+            }
+            return $list;
+        }
+        return $categories->item($offset)->nodeValue;
+    }
+
+    /**
+     * Count occurrences of an element
+     *
+     * This function will tell us how many times the element $type
+     * appears at this level of the feed.
+     * 
+     * @param    string    $type    the element we want to get a count of
+     * @return    int
+     */
+    protected function count($type)
+    {
+        if ($tags = $this->model->getElementsByTagName($type)) {
+            return $tags->length;
+        }
+        return 0;
+    }
+
+    /**
+     * Part of our xml:base processing code
+     *
+     * We need a couple of methods to access XHTML content stored in feeds. 
+     * This is because we dereference all xml:base references before returning
+     * the element. This method handles the attributes.
+     *
+     * @param   DOMElement $node    The DOM node we are iterating over
+     * @return  string
+     */
+    function processXHTMLAttributes($node) {
+        $return = '';
+        foreach ($node->attributes as $attribute) {
+            if ($attribute->name == 'src' or $attribute->name == 'href') {
+                $attribute->value = $this->addBase($attribute->value, $attribute);
+            }
+            if ($attribute->name == 'base') {
+                continue;
+            }
+            $return .= $attribute->name . '="' . $attribute->value .'" ';
+        }
+        if (! empty($return)) {
+            return ' ' . trim($return);
+        }
+        return '';
+    }
+
+    /**
+     * Part of our xml:base processing code
+     *
+     * We need a couple of methods to access XHTML content stored in feeds. 
+     * This is because we dereference all xml:base references before returning
+     * the element. This method recurs through the tree descending from the node
+     * and builds our string
+     *
+     * @param   DOMElement $node    The DOM node we are processing
+     * @return   string
+     */
+    function traverseNode($node)
+    {
+        $content = '';
+
+        /* Add the opening of this node to the content */
+        if ($node instanceof DOMElement) {
+            $content .= '<' . $node->tagName . 
+                $this->processXHTMLAttributes($node) . '>';
+        }
+
+        /* Process children */
+        if ($node->hasChildNodes()) {
+            foreach ($node->childNodes as $child) {
+                $content .= $this->traverseNode($child);
+            }
+        }
+
+        if ($node instanceof DOMText) {
+            $content .= htmlentities($node->nodeValue);
+        }
+
+        /* Add the closing of this node to the content */
+        if ($node instanceof DOMElement) {
+            $content .= '</' . $node->tagName . '>';
+        }
+
+        return $content;
+    }
+
+    /**
+     * Get content from RSS feeds (atom has its own implementation)
+     *
+     * The official way to include full content in an RSS1 entry is to use
+     * the content module's element 'encoded', and RSS2 feeds often duplicate that.
+     * Often, however, the 'description' element is used instead. We will offer that 
+     * as a fallback. Atom uses its own approach and overrides this method.
+     *
+     * @return  string|false
+     */
+    protected function getContent()
+    {
+        $options = array('encoded', 'description');
+        foreach ($options as $element) {
+            $test = $this->model->getElementsByTagName($element);
+            if ($test->length == 0) {
+                continue;
+            }
+            if ($test->item(0)->hasChildNodes()) {
+                $value = '';
+                foreach ($test->item(0)->childNodes as $child) {
+                    if ($child instanceof DOMText) {
+                        $value .= $child->nodeValue;
+                    } else {
+                        $simple = simplexml_import_dom($child);
+                        $value .= $simple->asXML();
+                    }
+                }
+                return $value;
+            } else if ($test->length > 0) {
+                return $test->item(0)->nodeValue;
+            }
+        }
+        return false;
+    }
+
+    /**
+     * Checks if this element has a particular child element.
+     *
+     * @param   String
+     * @param   Integer
+     * @return  bool
+     **/
+    function hasKey($name, $offset = 0)
+    {
+        $search = $this->model->getElementsByTagName($name);
+        return $search->length > $offset;
+    }
+
+    /**
+     * Return an XML serialization of the feed, should it be required. Most 
+     * users however, will already have a serialization that they used when 
+     * instantiating the object.
+     *
+     * @return    string    XML serialization of element
+     */    
+    function __toString()
+    {
+        $simple = simplexml_import_dom($this->model);
+        return $simple->asXML();
+    }
+    
+    /**
+     * Get directory holding RNG schemas. Method is based on that 
+     * found in Contact_AddressBook.
+     *
+     * @return string PEAR data directory.
+     * @access public
+     * @static
+     */
+    static function getSchemaDir()
+    {
+        require_once 'PEAR/Config.php';
+        $config = new PEAR_Config;
+        return $config->get('data_dir') . '/XML_Feed_Parser/schemas';
+    }
+}
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/RSS1Element.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/RSS1Element.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/RSS1Element.php	(revision 14612)
@@ -0,0 +1,116 @@
+<?php
+/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
+
+/**
+ * RSS1 Element class for XML_Feed_Parser
+ *
+ * PHP versions 5
+ *
+ * LICENSE: This source file is subject to version 3.0 of the PHP license
+ * that is available through the world-wide-web at the following URI:
+ * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
+ * the PHP License and are unable to obtain it through the web, please
+ * send a note to license@php.net so we can mail you a copy immediately.
+ *
+ * @category   XML
+ * @package    XML_Feed_Parser
+ * @author     James Stewart <james@jystewart.net>
+ * @copyright  2005 James Stewart <james@jystewart.net>
+ * @license    http://www.gnu.org/copyleft/lesser.html  GNU LGPL 2.1
+ * @version    CVS: $Id: RSS1Element.php,v 1.6 2006/06/30 17:41:56 jystewart Exp $
+ * @link       http://pear.php.net/package/XML_Feed_Parser/
+ */
+
+/*
+ * This class provides support for RSS 1.0 entries. It will usually be called by
+ * XML_Feed_Parser_RSS1 with which it shares many methods.
+ *
+ * @author    James Stewart <james@jystewart.net>
+ * @version    Release: 1.0.2
+ * @package XML_Feed_Parser
+ */
+class XML_Feed_Parser_RSS1Element extends XML_Feed_Parser_RSS1
+{
+    /**
+     * This will be a reference to the parent object for when we want
+     * to use a 'fallback' rule 
+     * @var XML_Feed_Parser_RSS1
+     */
+    protected $parent;
+
+    /**
+     * Our specific element map 
+     * @var array
+     */
+    protected $map = array(
+        'id' => array('Id'),
+        'title' => array('Text'),
+        'link' => array('Link'),
+        'description' => array('Text'), # or dc:description
+        'category' => array('Category'),
+        'rights' => array('Text'), # dc:rights
+        'creator' => array('Text'), # dc:creator
+        'publisher' => array('Text'), # dc:publisher
+        'contributor' => array('Text'), # dc:contributor
+        'date' => array('Date'), # dc:date
+        'content' => array('Content')
+        );
+
+    /**
+     * Here we map some elements to their atom equivalents. This is going to be
+     * quite tricky to pull off effectively (and some users' methods may vary)
+     * but is worth trying. The key is the atom version, the value is RSS1.
+     * @var array
+     */
+    protected $compatMap = array(
+        'content' => array('content'),
+        'updated' => array('lastBuildDate'),
+        'published' => array('pubdate'),
+        'subtitle' => array('description'),
+        'updated' => array('date'),
+        'author' => array('creator'),
+        'contributor' => array('contributor')
+    );
+
+    /**
+     * Store useful information for later.
+     *
+     * @param   DOMElement  $element - this item as a DOM element
+     * @param   XML_Feed_Parser_RSS1 $parent - the feed of which this is a member
+     */
+    function __construct(DOMElement $element, $parent, $xmlBase = '')
+    {
+        $this->model = $element;
+        $this->parent = $parent;
+    }
+
+    /**
+     * If an rdf:about attribute is specified, return it as an ID
+     *
+     * There is no established way of showing an ID for an RSS1 entry. We will 
+     * simulate it using the rdf:about attribute of the entry element. This cannot
+     * be relied upon for unique IDs but may prove useful.
+     *
+     * @return  string|false
+     */
+    function getId()
+    {
+        if ($this->model->attributes->getNamedItem('about')) {
+            return $this->model->attributes->getNamedItem('about')->nodeValue;
+        }
+        return false;
+    }
+
+    /**
+     * How RSS1 should support for enclosures is not clear. For now we will return
+     * false.
+     *
+     * @return  false
+     */
+    function getEnclosure()
+    {
+        return false;
+    }
+}
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/RSS11Element.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/RSS11Element.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/RSS11Element.php	(revision 14612)
@@ -0,0 +1,151 @@
+<?php
+/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
+
+/**
+ * RSS1 Element class for XML_Feed_Parser
+ *
+ * PHP versions 5
+ *
+ * LICENSE: This source file is subject to version 3.0 of the PHP license
+ * that is available through the world-wide-web at the following URI:
+ * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
+ * the PHP License and are unable to obtain it through the web, please
+ * send a note to license@php.net so we can mail you a copy immediately.
+ *
+ * @category   XML
+ * @package    XML_Feed_Parser
+ * @author     James Stewart <james@jystewart.net>
+ * @copyright  2005 James Stewart <james@jystewart.net>
+ * @license    http://www.gnu.org/copyleft/lesser.html  GNU LGPL 2.1
+ * @version    CVS: $Id: RSS11Element.php,v 1.4 2006/06/30 17:41:56 jystewart Exp $
+ * @link       http://pear.php.net/package/XML_Feed_Parser/
+ */
+
+/*
+ * This class provides support for RSS 1.1 entries. It will usually be called by
+ * XML_Feed_Parser_RSS11 with which it shares many methods.
+ *
+ * @author    James Stewart <james@jystewart.net>
+ * @version    Release: 1.0.2
+ * @package XML_Feed_Parser
+ */
+class XML_Feed_Parser_RSS11Element extends XML_Feed_Parser_RSS11
+{
+    /**
+     * This will be a reference to the parent object for when we want
+     * to use a 'fallback' rule 
+     * @var XML_Feed_Parser_RSS1
+     */
+    protected $parent;
+
+    /**
+     * Our specific element map 
+     * @var array
+     */
+    protected $map = array(
+        'id' => array('Id'),
+        'title' => array('Text'),
+        'link' => array('Link'),
+        'description' => array('Text'), # or dc:description
+        'category' => array('Category'),
+        'rights' => array('Text'), # dc:rights
+        'creator' => array('Text'), # dc:creator
+        'publisher' => array('Text'), # dc:publisher
+        'contributor' => array('Text'), # dc:contributor
+        'date' => array('Date'), # dc:date
+        'content' => array('Content')
+        );
+
+    /**
+     * Here we map some elements to their atom equivalents. This is going to be
+     * quite tricky to pull off effectively (and some users' methods may vary)
+     * but is worth trying. The key is the atom version, the value is RSS1.
+     * @var array
+     */
+    protected $compatMap = array(
+        'content' => array('content'),
+        'updated' => array('lastBuildDate'),
+        'published' => array('pubdate'),
+        'subtitle' => array('description'),
+        'updated' => array('date'),
+        'author' => array('creator'),
+        'contributor' => array('contributor')
+    );
+
+    /**
+     * Store useful information for later.
+     *
+     * @param   DOMElement  $element - this item as a DOM element
+     * @param   XML_Feed_Parser_RSS1 $parent - the feed of which this is a member
+     */
+    function __construct(DOMElement $element, $parent, $xmlBase = '')
+    {
+        $this->model = $element;
+        $this->parent = $parent;
+    }
+
+    /**
+     * If an rdf:about attribute is specified, return that as an ID
+     *
+     * There is no established way of showing an ID for an RSS1 entry. We will 
+     * simulate it using the rdf:about attribute of the entry element. This cannot
+     * be relied upon for unique IDs but may prove useful.
+     *
+     * @return  string|false
+     */
+    function getId()
+    {
+        if ($this->model->attributes->getNamedItem('about')) {
+            return $this->model->attributes->getNamedItem('about')->nodeValue;
+        }
+        return false;
+    }
+
+    /**
+     * Return the entry's content
+     *
+     * The official way to include full content in an RSS1 entry is to use
+     * the content module's element 'encoded'. Often, however, the 'description'
+     * element is used instead. We will offer that as a fallback.
+     *
+     * @return  string|false
+     */
+    function getContent()
+    {
+        $options = array('encoded', 'description');
+        foreach ($options as $element) {
+            $test = $this->model->getElementsByTagName($element);
+            if ($test->length == 0) {
+                continue;
+            }
+            if ($test->item(0)->hasChildNodes()) {
+                $value = '';
+                foreach ($test->item(0)->childNodes as $child) {
+                    if ($child instanceof DOMText) {
+                        $value .= $child->nodeValue;
+                    } else {
+                        $simple = simplexml_import_dom($child);
+                        $value .= $simple->asXML();
+                    }
+                }
+                return $value;
+            } else if ($test->length > 0) {
+                return $test->item(0)->nodeValue;
+            }
+        }
+        return false;
+    }
+    
+    /**
+     * How RSS1.1 should support for enclosures is not clear. For now we will return
+     * false.
+     *
+     * @return  false
+     */
+    function getEnclosure()
+    {
+        return false;
+    }
+}
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/RSS2Element.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/RSS2Element.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/RSS2Element.php	(revision 14612)
@@ -0,0 +1,171 @@
+<?php
+/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
+
+/**
+ * Class representing entries in an RSS2 feed.
+ *
+ * PHP versions 5
+ *
+ * LICENSE: This source file is subject to version 3.0 of the PHP license
+ * that is available through the world-wide-web at the following URI:
+ * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
+ * the PHP License and are unable to obtain it through the web, please
+ * send a note to license@php.net so we can mail you a copy immediately.
+ *
+ * @category   XML
+ * @package    XML_Feed_Parser
+ * @author     James Stewart <james@jystewart.net>
+ * @copyright  2005 James Stewart <james@jystewart.net>
+ * @license    http://www.gnu.org/copyleft/lesser.html  GNU LGPL 2.1
+ * @version    CVS: $Id: RSS2Element.php,v 1.11 2006/07/26 21:18:47 jystewart Exp $
+ * @link       http://pear.php.net/package/XML_Feed_Parser/
+ */
+
+/**
+ * This class provides support for RSS 2.0 entries. It will usually be 
+ * called by XML_Feed_Parser_RSS2 with which it shares many methods.
+ *
+ * @author    James Stewart <james@jystewart.net>
+ * @version    Release: 1.0.2
+ * @package XML_Feed_Parser
+ */
+class XML_Feed_Parser_RSS2Element extends XML_Feed_Parser_RSS2
+{
+    /**
+     * This will be a reference to the parent object for when we want
+     * to use a 'fallback' rule
+     * @var XML_Feed_Parser_RSS2
+     */
+    protected $parent;
+
+    /**
+     * Our specific element map 
+     * @var array
+     */
+    protected $map = array(
+        'title' => array('Text'),
+        'guid' => array('Guid'),
+        'description' => array('Text'),
+        'author' => array('Text'),
+        'comments' => array('Text'),
+        'enclosure' => array('Enclosure'),
+        'pubDate' => array('Date'),
+        'source' => array('Source'),
+        'link' => array('Text'),
+        'content' => array('Content'));
+
+    /**
+     * Here we map some elements to their atom equivalents. This is going to be
+     * quite tricky to pull off effectively (and some users' methods may vary)
+     * but is worth trying. The key is the atom version, the value is RSS2.
+     * @var array
+     */
+    protected $compatMap = array(
+        'id' => array('guid'),
+        'updated' => array('lastBuildDate'),
+        'published' => array('pubdate'),
+        'guidislink' => array('guid', 'ispermalink'),
+        'summary' => array('description'));
+
+    /**
+     * Store useful information for later.
+     *
+     * @param   DOMElement  $element - this item as a DOM element
+     * @param   XML_Feed_Parser_RSS2    $parent - the feed of which this is a member
+     */
+    function __construct(DOMElement $element, $parent, $xmlBase = '')
+    {
+        $this->model = $element;
+        $this->parent = $parent;
+    }
+
+    /**
+     * Get the value of the guid element, if specified
+     *
+     * guid is the closest RSS2 has to atom's ID. It is usually but not always a
+     * URI. The one attribute that RSS2 can posess is 'ispermalink' which specifies
+     * whether the guid is itself dereferencable. Use of guid is not obligatory,
+     * but is advisable. To get the guid you would call $item->id() (for atom
+     * compatibility) or $item->guid(). To check if this guid is a permalink call
+     * $item->guid("ispermalink").
+     *
+     * @param   string  $method - the method name being called
+     * @param   array   $params - parameters required
+     * @return  string  the guid or value of ispermalink
+     */
+    protected function getGuid($method, $params)
+    {
+        $attribute = (isset($params[0]) and $params[0] == 'ispermalink') ? 
+            true : false;
+        $tag = $this->model->getElementsByTagName('guid');
+        if ($tag->length > 0) {
+            if ($attribute) {
+                if ($tag->hasAttribute("ispermalink")) {
+                    return $tag->getAttribute("ispermalink");
+                }
+            }
+            return $tag->item(0)->nodeValue;
+        }
+        return false;
+    }
+
+    /**
+     * Access details of file enclosures
+     *
+     * The RSS2 spec is ambiguous as to whether an enclosure element must be
+     * unique in a given entry. For now we will assume it needn't, and allow
+     * for an offset.
+     *
+     * @param   string $method - the method being called
+     * @param   array   $parameters - we expect the first of these to be our offset
+     * @return  array|false
+     */
+    protected function getEnclosure($method, $parameters)
+    {
+        $encs = $this->model->getElementsByTagName('enclosure');
+        $offset = isset($parameters[0]) ? $parameters[0] : 0;
+        if ($encs->length > $offset) {
+            try {
+                if (! $encs->item($offset)->hasAttribute('url')) {
+                    return false;
+                }
+                $attrs = $encs->item($offset)->attributes;
+                return array(
+                    'url' => $attrs->getNamedItem('url')->value,
+                    'length' => $attrs->getNamedItem('length')->value,
+                    'type' => $attrs->getNamedItem('type')->value);
+            } catch (Exception $e) {
+                return false;
+            }
+        }
+        return false;
+    }
+
+    /**
+     * Get the entry source if specified
+     *
+     * source is an optional sub-element of item. Like atom:source it tells
+     * us about where the entry came from (eg. if it's been copied from another
+     * feed). It is not a rich source of metadata in the same way as atom:source
+     * and while it would be good to maintain compatibility by returning an
+     * XML_Feed_Parser_RSS2 element, it makes a lot more sense to return an array.
+     *
+     * @return array|false
+     */
+    protected function getSource()
+    {
+        $get = $this->model->getElementsByTagName('source');
+        if ($get->length) {
+            $source = $get->item(0);
+            $array = array(
+                'content' => $source->nodeValue);
+            foreach ($source->attributes as $attribute) {
+                $array[$attribute->name] = $attribute->value;
+            }
+            return $array;
+        }
+        return false;
+    }
+}
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/RSS1.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/RSS1.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/RSS1.php	(revision 14612)
@@ -0,0 +1,277 @@
+<?php
+/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
+
+/**
+ * RSS1 class for XML_Feed_Parser
+ *
+ * PHP versions 5
+ *
+ * LICENSE: This source file is subject to version 3.0 of the PHP license
+ * that is available through the world-wide-web at the following URI:
+ * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
+ * the PHP License and are unable to obtain it through the web, please
+ * send a note to license@php.net so we can mail you a copy immediately.
+ *
+ * @category   XML
+ * @package    XML_Feed_Parser
+ * @author     James Stewart <james@jystewart.net>
+ * @copyright  2005 James Stewart <james@jystewart.net>
+ * @license    http://www.gnu.org/copyleft/lesser.html  GNU LGPL 2.1
+ * @version    CVS: $Id: RSS1.php,v 1.10 2006/07/27 13:52:05 jystewart Exp $
+ * @link       http://pear.php.net/package/XML_Feed_Parser/
+ */
+
+/**
+ * This class handles RSS1.0 feeds.
+ * 
+ * @author    James Stewart <james@jystewart.net>
+ * @version    Release: 1.0.2
+ * @package XML_Feed_Parser
+ * @todo    Find a Relax NG URI we can use
+ */
+class XML_Feed_Parser_RSS1 extends XML_Feed_Parser_Type
+{
+    /**
+     * The URI of the RelaxNG schema used to (optionally) validate the feed 
+     * @var string
+     */
+    private $relax = 'rss10.rnc';
+
+    /**
+     * We're likely to use XPath, so let's keep it global
+     * @var DOMXPath
+     */
+    protected $xpath;
+
+    /**
+     * The feed type we are parsing 
+     * @var string
+     */
+    public $version = 'RSS 1.0';
+
+    /**
+     * The class used to represent individual items 
+     * @var string
+     */
+    protected $itemClass = 'XML_Feed_Parser_RSS1Element';
+    
+    /**
+     * The element containing entries 
+     * @var string
+     */
+    protected $itemElement = 'item';
+
+    /**
+     * Here we map those elements we're not going to handle individually
+     * to the constructs they are. The optional second parameter in the array
+     * tells the parser whether to 'fall back' (not apt. at the feed level) or
+     * fail if the element is missing. If the parameter is not set, the function
+     * will simply return false and leave it to the client to decide what to do.
+     * @var array
+     */
+    protected $map = array(
+        'title' => array('Text'),
+        'link' => array('Text'),
+        'description' => array('Text'),
+        'image' => array('Image'),
+        'textinput' => array('TextInput'),
+        'updatePeriod' => array('Text'),
+        'updateFrequency' => array('Text'),
+        'updateBase' => array('Date'),
+        'rights' => array('Text'), # dc:rights
+        'description' => array('Text'), # dc:description
+        'creator' => array('Text'), # dc:creator
+        'publisher' => array('Text'), # dc:publisher
+        'contributor' => array('Text'), # dc:contributor
+        'date' => array('Date') # dc:contributor
+        );
+
+    /**
+     * Here we map some elements to their atom equivalents. This is going to be
+     * quite tricky to pull off effectively (and some users' methods may vary)
+     * but is worth trying. The key is the atom version, the value is RSS2.
+     * @var array
+     */
+    protected $compatMap = array(
+        'title' => array('title'),
+        'link' => array('link'),
+        'subtitle' => array('description'),
+        'author' => array('creator'),
+        'updated' => array('date'));
+
+    /**
+     * We will be working with multiple namespaces and it is useful to 
+     * keep them together 
+     * @var array
+     */
+    protected $namespaces = array(
+        'rdf' => 'http://www.w3.org/1999/02/22-rdf-syntax-ns#',
+        'rss' => 'http://purl.org/rss/1.0/',
+        'dc' => 'http://purl.org/rss/1.0/modules/dc/',
+        'content' => 'http://purl.org/rss/1.0/modules/content/',
+        'sy' => 'http://web.resource.org/rss/1.0/modules/syndication/');
+
+    /**
+     * Our constructor does nothing more than its parent.
+     * 
+     * @param    DOMDocument    $xml    A DOM object representing the feed
+     * @param    bool (optional) $string    Whether or not to validate this feed
+     */
+    function __construct(DOMDocument $model, $strict = false)
+    {
+        $this->model = $model;
+        if ($strict) {
+            $validate = $this->model->relaxNGValidate(self::getSchemaDir . 
+                DIRECTORY_SEPARATOR . $this->relax);
+            if (! $validate) {
+                throw new XML_Feed_Parser_Exception('Failed required validation');
+            }
+        }
+
+        $this->xpath = new DOMXPath($model);
+        foreach ($this->namespaces as $key => $value) {
+            $this->xpath->registerNamespace($key, $value);
+        }
+        $this->numberEntries = $this->count('item');
+    }
+
+    /**
+     * Allows retrieval of an entry by ID where the rdf:about attribute is used
+     *
+     * This is not really something that will work with RSS1 as it does not have
+     * clear restrictions on the global uniqueness of IDs. We will employ the
+     * _very_ hit and miss method of selecting entries based on the rdf:about
+     * attribute. If DOMXPath::evaluate is available, we also use that to store 
+     * a reference to the entry in the array used by getEntryByOffset so that 
+     * method does not have to seek out the entry if it's requested that way.
+     *
+     * @param    string    $id    any valid ID.
+     * @return    XML_Feed_Parser_RSS1Element
+     */
+    function getEntryById($id)
+    {
+        if (isset($this->idMappings[$id])) {
+            return $this->entries[$this->idMappings[$id]];
+        }
+
+        $entries = $this->xpath->query("//rss:item[@rdf:about='$id']");
+        if ($entries->length > 0) {
+            $classname = $this->itemClass;
+            $entry = new $classname($entries->item(0), $this);
+            if (in_array('evaluate', get_class_methods($this->xpath))) {
+                $offset = $this->xpath->evaluate("count(preceding-sibling::rss:item)", $entries->item(0));
+                $this->entries[$offset] = $entry;
+            }
+            $this->idMappings[$id] = $entry;
+            return $entry;
+        }
+        return false;
+    }
+
+    /**
+     * Get details of the image associated with the feed.
+     *
+     * @return  array|false an array simply containing the child elements
+     */
+    protected function getImage()
+    {
+        $images = $this->model->getElementsByTagName('image');
+        if ($images->length > 0) {
+            $image = $images->item(0);
+            $details = array();
+            if ($image->hasChildNodes()) {
+                $details = array(
+                    'title' => $image->getElementsByTagName('title')->item(0)->value,
+                    'link' => $image->getElementsByTagName('link')->item(0)->value,
+                    'url' => $image->getElementsByTagName('url')->item(0)->value);
+            } else {
+                $details = array('title' => false,
+                    'link' => false,
+                    'url' => $image->attributes->getNamedItem('resource')->nodeValue);
+            }
+            $details = array_merge($details, array('description' => false, 'height' => false, 'width' => false));
+            if (! empty($details)) {
+                return $details;
+            }
+        }
+        return false;
+    }
+
+    /**
+     * The textinput element is little used, but in the interests of
+     * completeness we will support it.
+     *
+     * @return  array|false
+     */
+    protected function getTextInput()
+    {
+        $inputs = $this->model->getElementsByTagName('textinput');
+        if ($inputs->length > 0) {
+            $input = $inputs->item(0);
+            $results = array();
+            $results['title'] = isset(
+                $input->getElementsByTagName('title')->item(0)->value) ? 
+                $input->getElementsByTagName('title')->item(0)->value : null;
+            $results['description'] = isset(
+                $input->getElementsByTagName('description')->item(0)->value) ? 
+                $input->getElementsByTagName('description')->item(0)->value : null;
+            $results['name'] = isset(
+                $input->getElementsByTagName('name')->item(0)->value) ? 
+                $input->getElementsByTagName('name')->item(0)->value : null;
+            $results['link'] = isset(
+                   $input->getElementsByTagName('link')->item(0)->value) ? 
+                   $input->getElementsByTagName('link')->item(0)->value : null;
+            if (empty($results['link']) and 
+                $input->attributes->getNamedItem('resource')) {
+                $results['link'] = 
+                    $input->attributes->getNamedItem('resource')->nodeValue;
+            }
+            if (! empty($results)) {
+                return $results;
+            }
+        }
+        return false;
+    }
+
+    /**
+     * Employs various techniques to identify the author
+     *
+     * Dublin Core provides the dc:creator, dc:contributor, and dc:publisher
+     * elements for defining authorship in RSS1. We will try each of those in
+     * turn in order to simulate the atom author element and will return it
+     * as text.
+     *
+     * @return  array|false
+     */
+    function getAuthor()
+    {
+        $options = array('creator', 'contributor', 'publisher');
+        foreach ($options as $element) {
+            $test = $this->model->getElementsByTagName($element);
+            if ($test->length > 0) {
+                return $test->item(0)->value;
+            }
+        }
+        return false;
+    }
+    
+    /**
+     * Retrieve a link
+     * 
+     * In RSS1 a link is a text element but in order to ensure that we resolve
+     * URLs properly we have a special function for them.
+     *
+     * @return  string
+     */
+    function getLink($offset = 0, $attribute = 'href', $params = false)
+    {
+        $links = $this->model->getElementsByTagName('link');
+        if ($links->length <= $offset) {
+            return false;
+        }
+        $link = $links->item($offset);
+        return $this->addBase($link->nodeValue, $link);
+    }
+}
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/RSS11.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/RSS11.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/RSS11.php	(revision 14612)
@@ -0,0 +1,276 @@
+<?php
+/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
+
+/**
+ * RSS1.1 class for XML_Feed_Parser
+ *
+ * PHP versions 5
+ *
+ * LICENSE: This source file is subject to version 3.0 of the PHP license
+ * that is available through the world-wide-web at the following URI:
+ * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
+ * the PHP License and are unable to obtain it through the web, please
+ * send a note to license@php.net so we can mail you a copy immediately.
+ *
+ * @category   XML
+ * @package    XML_Feed_Parser
+ * @author     James Stewart <james@jystewart.net>
+ * @copyright  2005 James Stewart <james@jystewart.net>
+ * @license    http://www.gnu.org/copyleft/lesser.html  GNU LGPL 2.1
+ * @version    CVS: $Id: RSS11.php,v 1.6 2006/07/27 13:52:05 jystewart Exp $
+ * @link       http://pear.php.net/package/XML_Feed_Parser/
+ */
+
+/**
+ * This class handles RSS1.1 feeds. RSS1.1 is documented at:
+ * http://inamidst.com/rss1.1/
+ * 
+ * @author    James Stewart <james@jystewart.net>
+ * @version    Release: 1.0.2
+ * @package XML_Feed_Parser
+ * @todo    Support for RDF:List
+ * @todo    Ensure xml:lang is accessible to users
+ */
+class XML_Feed_Parser_RSS11 extends XML_Feed_Parser_Type
+{
+    /**
+     * The URI of the RelaxNG schema used to (optionally) validate the feed 
+     * @var string
+     */
+    private $relax = 'rss11.rnc';
+
+    /**
+     * We're likely to use XPath, so let's keep it global
+     * @var DOMXPath
+     */
+    protected $xpath;
+
+    /**
+     * The feed type we are parsing 
+     * @var string
+     */
+    public $version = 'RSS 1.0';
+
+    /**
+     * The class used to represent individual items 
+     * @var string
+     */
+    protected $itemClass = 'XML_Feed_Parser_RSS1Element';
+    
+    /**
+     * The element containing entries 
+     * @var string
+     */
+    protected $itemElement = 'item';
+
+    /**
+     * Here we map those elements we're not going to handle individually
+     * to the constructs they are. The optional second parameter in the array
+     * tells the parser whether to 'fall back' (not apt. at the feed level) or
+     * fail if the element is missing. If the parameter is not set, the function
+     * will simply return false and leave it to the client to decide what to do.
+     * @var array
+     */
+    protected $map = array(
+        'title' => array('Text'),
+        'link' => array('Text'),
+        'description' => array('Text'),
+        'image' => array('Image'),
+        'updatePeriod' => array('Text'),
+        'updateFrequency' => array('Text'),
+        'updateBase' => array('Date'),
+        'rights' => array('Text'), # dc:rights
+        'description' => array('Text'), # dc:description
+        'creator' => array('Text'), # dc:creator
+        'publisher' => array('Text'), # dc:publisher
+        'contributor' => array('Text'), # dc:contributor
+        'date' => array('Date') # dc:contributor
+        );
+
+    /**
+     * Here we map some elements to their atom equivalents. This is going to be
+     * quite tricky to pull off effectively (and some users' methods may vary)
+     * but is worth trying. The key is the atom version, the value is RSS2.
+     * @var array
+     */
+    protected $compatMap = array(
+        'title' => array('title'),
+        'link' => array('link'),
+        'subtitle' => array('description'),
+        'author' => array('creator'),
+        'updated' => array('date'));
+
+    /**
+     * We will be working with multiple namespaces and it is useful to 
+     * keep them together. We will retain support for some common RSS1.0 modules
+     * @var array
+     */
+    protected $namespaces = array(
+        'rdf' => 'http://www.w3.org/1999/02/22-rdf-syntax-ns#',
+        'rss' => 'http://purl.org/net/rss1.1#',
+        'dc' => 'http://purl.org/rss/1.0/modules/dc/',
+        'content' => 'http://purl.org/rss/1.0/modules/content/',
+        'sy' => 'http://web.resource.org/rss/1.0/modules/syndication/');
+
+    /**
+     * Our constructor does nothing more than its parent.
+     * 
+     * @param    DOMDocument    $xml    A DOM object representing the feed
+     * @param    bool (optional) $string    Whether or not to validate this feed
+     */
+    function __construct(DOMDocument $model, $strict = false)
+    {
+        $this->model = $model;
+
+        if ($strict) {
+            $validate = $this->model->relaxNGValidate(self::getSchemaDir . 
+                DIRECTORY_SEPARATOR . $this->relax);
+            if (! $validate) {
+                throw new XML_Feed_Parser_Exception('Failed required validation');
+            }
+        }
+
+        $this->xpath = new DOMXPath($model);
+        foreach ($this->namespaces as $key => $value) {
+            $this->xpath->registerNamespace($key, $value);
+        }            
+        $this->numberEntries = $this->count('item');
+    }
+
+    /**
+     * Attempts to identify an element by ID given by the rdf:about attribute
+     *
+     * This is not really something that will work with RSS1.1 as it does not have
+     * clear restrictions on the global uniqueness of IDs. We will employ the
+     * _very_ hit and miss method of selecting entries based on the rdf:about
+     * attribute. Please note that this is even more hit and miss with RSS1.1 than
+     * with RSS1.0 since RSS1.1 does not require the rdf:about attribute for items.
+     *
+     * @param    string    $id    any valid ID.
+     * @return    XML_Feed_Parser_RSS1Element
+     */
+    function getEntryById($id)
+    {
+        if (isset($this->idMappings[$id])) {
+            return $this->entries[$this->idMappings[$id]];
+        }
+
+        $entries = $this->xpath->query("//rss:item[@rdf:about='$id']");
+        if ($entries->length > 0) {
+            $classname = $this->itemClass;
+            $entry = new $classname($entries->item(0), $this);
+            return $entry;
+        }
+        return false;
+    }
+
+    /**
+     * Get details of the image associated with the feed.
+     *
+     * @return  array|false an array simply containing the child elements
+     */
+    protected function getImage()
+    {
+        $images = $this->model->getElementsByTagName('image');
+        if ($images->length > 0) {
+            $image = $images->item(0);
+            $details = array();
+            if ($image->hasChildNodes()) {
+                $details = array(
+                    'title' => $image->getElementsByTagName('title')->item(0)->value,
+                    'url' => $image->getElementsByTagName('url')->item(0)->value);
+                if ($image->getElementsByTagName('link')->length > 0) {
+                    $details['link'] = 
+                        $image->getElementsByTagName('link')->item(0)->value;
+                }
+            } else {
+                $details = array('title' => false,
+                    'link' => false,
+                    'url' => $image->attributes->getNamedItem('resource')->nodeValue);
+            }
+            $details = array_merge($details, 
+                array('description' => false, 'height' => false, 'width' => false));
+            if (! empty($details)) {
+                return $details;
+            }
+        }
+        return false;
+    }
+
+    /**
+     * The textinput element is little used, but in the interests of
+     * completeness we will support it.
+     *
+     * @return  array|false
+     */
+    protected function getTextInput()
+    {
+        $inputs = $this->model->getElementsByTagName('textinput');
+        if ($inputs->length > 0) {
+            $input = $inputs->item(0);
+            $results = array();
+            $results['title'] = isset(
+                $input->getElementsByTagName('title')->item(0)->value) ? 
+                $input->getElementsByTagName('title')->item(0)->value : null;
+            $results['description'] = isset(
+                $input->getElementsByTagName('description')->item(0)->value) ? 
+                $input->getElementsByTagName('description')->item(0)->value : null;
+            $results['name'] = isset(
+                $input->getElementsByTagName('name')->item(0)->value) ? 
+                $input->getElementsByTagName('name')->item(0)->value : null;
+            $results['link'] = isset(
+                   $input->getElementsByTagName('link')->item(0)->value) ? 
+                   $input->getElementsByTagName('link')->item(0)->value : null;
+            if (empty($results['link']) and 
+                $input->attributes->getNamedItem('resource')) {
+                $results['link'] = $input->attributes->getNamedItem('resource')->nodeValue;
+            }
+            if (! empty($results)) {
+                return $results;
+            }
+        }
+        return false;
+    }
+
+    /**
+     * Attempts to discern authorship
+     *
+     * Dublin Core provides the dc:creator, dc:contributor, and dc:publisher
+     * elements for defining authorship in RSS1. We will try each of those in
+     * turn in order to simulate the atom author element and will return it
+     * as text.
+     *
+     * @return  array|false
+     */
+    function getAuthor()
+    {
+        $options = array('creator', 'contributor', 'publisher');
+        foreach ($options as $element) {
+            $test = $this->model->getElementsByTagName($element);
+            if ($test->length > 0) {
+                return $test->item(0)->value;
+            }
+        }
+        return false;
+    }
+    
+    /**
+     * Retrieve a link
+     *
+     * In RSS1 a link is a text element but in order to ensure that we resolve
+     * URLs properly we have a special function for them.
+     *
+     * @return  string
+     */
+    function getLink($offset = 0, $attribute = 'href', $params = false)
+    {
+        $links = $this->model->getElementsByTagName('link');
+        if ($links->length <= $offset) {
+            return false;
+        }
+        $link = $links->item($offset);
+        return $this->addBase($link->nodeValue, $link);
+    }
+}
+
+?>
Index: branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/RSS2.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/RSS2.php	(revision 14612)
+++ branches/dev/html/test/adachi/PLLager/Lib/XML/Feed/Parser/RSS2.php	(revision 14612)
@@ -0,0 +1,334 @@
+<?php
+/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
+
+/**
+ * Class representing feed-level data for an RSS2 feed
+ *
+ * PHP versions 5
+ *
+ * LICENSE: This source file is subject to version 3.0 of the PHP license
+ * that is available through the world-wide-web at the following URI:
+ * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
+ * the PHP License and are unable to obtain it through the web, please
+ * send a note to license@php.net so we can mail you a copy immediately.
+ *
+ * @category   XML
+ * @package    XML_Feed_Parser
+ * @author     James Stewart <james@jystewart.net>
+ * @copyright  2005 James Stewart <james@jystewart.net>
+ * @license    http://www.gnu.org/copyleft/lesser.html  GNU LGPL 2.1
+ * @version    CVS: $Id: RSS2.php,v 1.11 2006/07/27 13:52:05 jystewart Exp $
+ * @link       http://pear.php.net/package/XML_Feed_Parser/
+ */
+
+/**
+ * This class handles RSS2 feeds.
+ * 
+ * @author    James Stewart <james@jystewart.net>
+ * @version    Release: 1.0.2
+ * @package XML_Feed_Parser
+ */
+class XML_Feed_Parser_RSS2 extends XML_Feed_Parser_Type
+{
+    /**
+     * The URI of the RelaxNG schema used to (optionally) validate the feed
+     * @var string
+     */
+    private $relax = 'rss20.rnc';
+
+    /**
+     * We're likely to use XPath, so let's keep it global
+     * @var DOMXPath
+     */
+    protected $xpath;
+
+    /**
+     * The feed type we are parsing
+     * @var string
+     */
+    public $version = 'RSS 2.0';
+
+    /**
+     * The class used to represent individual items
+     * @var string
+     */     
+    protected $itemClass = 'XML_Feed_Parser_RSS2Element';
+    
+    /**
+     * The element containing entries 
+     * @var string
+     */
+    protected $itemElement = 'item';
+
+    /**
+     * Here we map those elements we're not going to handle individually
+     * to the constructs they are. The optional second parameter in the array
+     * tells the parser whether to 'fall back' (not apt. at the feed level) or
+     * fail if the element is missing. If the parameter is not set, the function
+     * will simply return false and leave it to the client to decide what to do.
+     * @var array
+     */
+    protected $map = array(
+        'ttl' => array('Text'),
+        'pubDate' => array('Date'),
+        'lastBuildDate' => array('Date'),
+        'title' => array('Text'),
+        'link' => array('Link'),
+        'description' => array('Text'),
+        'language' => array('Text'),
+        'copyright' => array('Text'),
+        'managingEditor' => array('Text'),
+        'webMaster' => array('Text'),
+        'category' => array('Text'),
+        'generator' => array('Text'),
+        'docs' => array('Text'),
+        'ttl' => array('Text'),
+        'image' => array('Image'),
+        'skipDays' => array('skipDays'),
+        'skipHours' => array('skipHours'));
+
+    /**
+     * Here we map some elements to their atom equivalents. This is going to be
+     * quite tricky to pull off effectively (and some users' methods may vary)
+     * but is worth trying. The key is the atom version, the value is RSS2.
+     * @var array
+     */
+    protected $compatMap = array(
+        'title' => array('title'),
+        'rights' => array('copyright'),
+        'updated' => array('lastBuildDate'),
+        'subtitle' => array('description'),
+        'date' => array('pubDate'),
+        'author' => array('managingEditor'));
+
+    protected $namespaces = array(
+        'dc' => 'http://purl.org/rss/1.0/modules/dc/',
+        'content' => 'http://purl.org/rss/1.0/modules/content/');
+
+    /**
+     * Our constructor does nothing more than its parent.
+     * 
+     * @param    DOMDocument    $xml    A DOM object representing the feed
+     * @param    bool (optional) $string    Whether or not to validate this feed
+     */
+    function __construct(DOMDocument $model, $strict = false)
+    {
+        $this->model = $model;
+
+        if ($strict) {
+            if (! $this->model->relaxNGValidate($this->relax)) {
+                throw new XML_Feed_Parser_Exception('Failed required validation');
+            }
+        }
+
+        $this->xpath = new DOMXPath($this->model);
+        foreach ($this->namespaces as $key => $value) {
+            $this->xpath->registerNamespace($key, $value);
+        }
+        $this->numberEntries = $this->count('item');
+    }
+
+    /**
+     * Retrieves an entry by ID, if the ID is specified with the guid element
+     *
+     * This is not really something that will work with RSS2 as it does not have
+     * clear restrictions on the global uniqueness of IDs. But we can emulate
+     * it by allowing access based on the 'guid' element. If DOMXPath::evaluate
+     * is available, we also use that to store a reference to the entry in the array
+     * used by getEntryByOffset so that method does not have to seek out the entry
+     * if it's requested that way.
+     *
+     * @param    string    $id    any valid ID.
+     * @return    XML_Feed_Parser_RSS2Element
+     */
+    function getEntryById($id)
+    {
+        if (isset($this->idMappings[$id])) {
+            return $this->entries[$this->idMappings[$id]];
+        }
+
+        $entries = $this->xpath->query("//item[guid='$id']");
+        if ($entries->length > 0) {
+            $entry = new $this->itemElement($entries->item(0), $this);
+            if (in_array('evaluate', get_class_methods($this->xpath))) {
+                $offset = $this->xpath->evaluate("count(preceding-sibling::item)", $entries->item(0));
+                $this->entries[$offset] = $entry;
+            }
+            $this->idMappings[$id] = $entry;
+            return $entry;
+        }        
+    }
+
+    /**
+     * Get a category from the element
+     *
+     * The category element is a simple text construct which can occur any number
+     * of times. We allow access by offset or access to an array of results.
+     *
+     * @param    string    $call    for compatibility with our overloading
+     * @param   array $arguments - arg 0 is the offset, arg 1 is whether to return as array
+     * @return  string|array|false
+     */
+    function getCategory($call, $arguments = array())
+    {
+        $categories = $this->model->getElementsByTagName('category');
+        $offset = empty($arguments[0]) ? 0 : $arguments[0];
+        $array = empty($arguments[1]) ? false : true;
+        if ($categories->length <= $offset) {
+            return false;
+        }
+        if ($array) {
+            $list = array();
+            foreach ($categories as $category) {
+                array_push($list, $category->nodeValue);
+            }
+            return $list;
+        }
+        return $categories->item($offset)->nodeValue;
+    }
+
+    /**
+     * Get details of the image associated with the feed.
+     *
+     * @return  array|false an array simply containing the child elements
+     */
+    protected function getImage()
+    {
+        $images = $this->model->getElementsByTagName('image');
+        if ($images->length > 0) {
+            $image = $images->item(0);
+            $desc = $image->getElementsByTagName('description');
+            $description = $desc->length ? $desc->item(0)->nodeValue : false;
+            $heigh = $image->getElementsByTagName('height'); 
+            $height = $heigh->length ? $heigh->item(0)->nodeValue : false;
+            $widt = $image->getElementsByTagName('width'); 
+            $width = $widt->length ? $widt->item(0)->nodeValue : false;
+            return array(
+                'title' => $image->getElementsByTagName('title')->item(0)->nodeValue,
+                'link' => $image->getElementsByTagName('link')->item(0)->nodeValue,
+                'url' => $image->getElementsByTagName('url')->item(0)->nodeValue,
+                'description' => $description,
+                'height' => $height,
+                'width' => $width);
+        }
+        return false;
+    }
+
+    /**
+     * The textinput element is little used, but in the interests of
+     * completeness...
+     *
+     * @return  array|false
+     */
+    function getTextInput()
+    {
+        $inputs = $this->model->getElementsByTagName('input');
+        if ($inputs->length > 0) {
+            $input = $inputs->item(0);
+            return array(
+                'title' => $input->getElementsByTagName('title')->item(0)->value,
+                'description' => 
+                    $input->getElementsByTagName('description')->item(0)->value,
+                'name' => $input->getElementsByTagName('name')->item(0)->value,
+                'link' => $input->getElementsByTagName('link')->item(0)->value);
+        }
+        return false;
+    }
+
+    /**
+     * Utility function for getSkipDays and getSkipHours
+     *
+     * This is a general function used by both getSkipDays and getSkipHours. It simply
+     * returns an array of the values of the children of the appropriate tag.
+     *
+     * @param   string      $tagName    The tag name (getSkipDays or getSkipHours)
+     * @return  array|false
+     */
+    protected function getSkips($tagName)
+    {
+        $hours = $this->model->getElementsByTagName($tagName);
+        if ($hours->length == 0) {
+            return false;
+        }
+        $skipHours = array();
+        foreach($hours->item(0)->childNodes as $hour) {
+            if ($hour instanceof DOMElement) {
+                array_push($skipHours, $hour->nodeValue);
+            }
+        }
+        return $skipHours;
+    }
+
+    /**
+     * Retrieve skipHours data
+     *
+     * The skiphours element provides a list of hours on which this feed should
+     * not be checked. We return an array of those hours (integers, 24 hour clock)
+     *
+     * @return  array
+     */    
+    function getSkipHours()
+    {
+        return $this->getSkips('skipHours');
+    }
+
+    /**
+     * Retrieve skipDays data
+     *
+     * The skipdays element provides a list of days on which this feed should
+     * not be checked. We return an array of those days.
+     *
+     * @return  array
+     */
+    function getSkipDays()
+    {
+        return $this->getSkips('skipDays');
+    }
+
+    /**
+     * Return content of the little-used 'cloud' element
+     *
+     * The cloud element is rarely used. It is designed to provide some details
+     * of a location to update the feed.
+     *
+     * @return  array   an array of the attributes of the element
+     */
+    function getCloud()
+    {
+        $cloud = $this->model->getElementsByTagName('cloud');
+        if ($cloud->length == 0) {
+            return false;
+        }
+        $cloudData = array();
+        foreach ($cloud->item(0)->attributes as $attribute) {
+            $cloudData[$attribute->name] = $attribute->value;
+        }
+        return $cloudData;
+    }
+    
+    /**
+     * Get link URL
+     *
+     * In RSS2 a link is a text element but in order to ensure that we resolve
+     * URLs properly we have a special function for them. We maintain the 
+     * parameter used by the atom getLink method, though we only use the offset
+     * parameter.
+     *
+     * @param   int     $offset The position of the link within the feed. Starts from 0
+     * @param   string  $attribute  The attribute of the link element required
+     * @param   array   $params An array of other parameters. Not used.
+     * @return  string
+     */
+    function getLink($offset, $attribute = 'href', $params = array())
+    {
+        $links = $this->model->getElementsByTagName('link');
+
+        if ($links->length <= $offset) {
+            return false;
+        }
+        $link = $links->item($offset);
+        return $this->addBase($link->nodeValue, $link);
+    }
+}
+
+?>
Index: branches/dev/html/test/adachi/PLLager/pless_release.php
===================================================================
--- branches/dev/html/test/adachi/PLLager/pless_release.php	(revision 14678)
+++ branches/dev/html/test/adachi/PLLager/pless_release.php	(revision 14678)
@@ -0,0 +1,31 @@
+<?php
+
+$_path1 = '/home/web/dev.ec-cube.net/html/test/adachi/PLLagger';
+$_path2 = '/home/web/dev.ec-cube.net/html/test/adachi/PLLagger/Lib';
+
+$_ps = PATH_SEPARATOR;
+$_include_path = ini_get('include_path') . $_ps . './' . $_ps . './Lib';
+
+ini_set('include_path', $_include_path);
+
+require_once('PLLagger.php');
+
+$config = array(
+    'plugins' => array(
+        'Subscription_Simple' => array(
+            'urls' => array(
+                'http://feeds.feedburner.jp/cnet/rss', //cnet
+                'http://rss.rssad.jp/rss/itm/rss.xml', //@IT
+                'http://rss.rssad.jp/rss/itm/1.0/topstory.xml' //ITmedia
+            )
+        ),
+        'Filter_SearchEntry2Feed' => array(
+            'regex' => '/¥í¥Ã¥¯¥ª¥ó/i'
+        ),
+    )
+);
+ 
+$LLR = new PLLagger($config);
+$LLR->run();
+
+?>
