Index: /branches/beta/html/install/sql/add/dtb_module_mysql.sql
===================================================================
--- /branches/beta/html/install/sql/add/dtb_module_mysql.sql	(revision 8)
+++ /branches/beta/html/install/sql/add/dtb_module_mysql.sql	(revision 15120)
@@ -18,3 +18,5 @@
     module_y int,
     eccube_version text
+    icon text,
+    url text
 ) TYPE=InnoDB;
Index: /branches/beta/html/install/sql/add/dtb_module_pgsql.sql
===================================================================
--- /branches/beta/html/install/sql/add/dtb_module_pgsql.sql	(revision 8)
+++ /branches/beta/html/install/sql/add/dtb_module_pgsql.sql	(revision 15120)
@@ -17,4 +17,6 @@
     module_x int4,
     module_y int4,
-    eccube_version text
+    eccube_version text,
+    icon text,
+    url text
 );
Index: /branches/beta/html/install/sql/create_table_mysql.sql
===================================================================
--- /branches/beta/html/install/sql/create_table_mysql.sql	(revision 14895)
+++ /branches/beta/html/install/sql/create_table_mysql.sql	(revision 15120)
@@ -177,5 +177,5 @@
 
 CREATE TABLE dtb_mailtemplate (
-    template_id int NOT NULL,
+    template_id int auto_increment primary key NOT NULL UNIQUE,
     subject text,
     header text,
Index: /branches/beta/html/install/sql/create_table_pgsql.sql
===================================================================
--- /branches/beta/html/install/sql/create_table_pgsql.sql	(revision 14895)
+++ /branches/beta/html/install/sql/create_table_pgsql.sql	(revision 15120)
@@ -177,5 +177,5 @@
 
 CREATE TABLE dtb_mailtemplate (
-    template_id int4 NOT NULL,
+    template_id SERIAL NOT NULL,
     subject text,
     header text,
Index: /branches/beta/html/mobile/nonmember/deliv.php
===================================================================
--- /branches/beta/html/mobile/nonmember/deliv.php	(revision 14676)
+++ /branches/beta/html/mobile/nonmember/deliv.php	(revision 15120)
@@ -43,12 +43,15 @@
 $objPage->tpl_uniqid = $uniqid;
 
-if(!empty($_POST["mode2"]) ){
-    if ($_POST["mode2"] == "deliv") {
-            
+
+//Á°¤Î¥Ú¡¼¥¸¤«¤é¤ÎÁ«°Ü¤Ë¤è¤Ã¤ÆÊ¬´ô
+if(!empty($_POST["mode2"]) || $_SESSION['user_info'] ){
+    if ($_POST["mode2"] == "deliv" || $_SESSION['user_info']["mode2"] == "deliv") {
+            
+           
             $objFormParam = new SC_FormParam();
             // ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½
            
             // POSTÃÍ¤Î¼èÆÀ
-            $objFormParam->setParam($_POST);
+            $objFormParam->setParam($_SESSION['user_info']);
             $arrRet = $objFormParam->getHashArray();
             $sqlval = $objFormParam->getDbArray();
@@ -58,5 +61,5 @@
             $objPage->arrErr = $arrErr;
             
-           foreach($_POST as $key => $value){
+           foreach($_SESSION['user_info'] as $key => $value){
                $objPage->arrAddr[0][$key] = $value;
            }
@@ -65,5 +68,5 @@
             lfRegistDataTemp($objPage->arrAddr[0]['uniqid'],$objPage->arrAddr[0]); 
             
-            lfCopyDeliv($objPage->tpl_uniqid, $_POST);
+            lfCopyDeliv($objPage->tpl_uniqid, $_SESSION['user_info']);
            
             $objPage->tpl_mainpage = 'nonmember/nonmember_deliv.tpl';
@@ -75,5 +78,5 @@
         
         if ($_POST["mode2"] == "customer_addr") {
-            //print_r($_POST);
+
             if ($_POST['deli'] != "") {
                 header("Location:" . gfAddSessionId("./payment.php"));
@@ -83,7 +86,7 @@
                 $arrErr['deli'] = '¢¨ ¤ªÆÏ¤±Àè¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£';
             }
-        }
-//Ìá¤ë¥Ü¥¿¥óÍÑ½èÍý        
-}elseif(!empty($_POST["mode"]) && $_POST["mode"]=="deliv_date"){  
+        }     
+//Ìá¤ë¥Ü¥¿¥óÍÑ½èÍý   
+}elseif($_POST["mode"]!="nonmember"){  
     //uniqid¤«¤é¥Ç¡¼¥¿¥Ù¡¼¥¹¤Î¥Ç¡¼¥¿¤òÆÉ¤ß¹þ¤ßÉ½¼¨¤¹¤ë
     $objQuery = new SC_Query();
@@ -101,4 +104,5 @@
     $objView->display(SITE_FRAME);
 }
+
 
 /**
Index: /branches/beta/html/mobile/nonmember/index.php
===================================================================
--- /branches/beta/html/mobile/nonmember/index.php	(revision 14676)
+++ /branches/beta/html/mobile/nonmember/index.php	(revision 15120)
@@ -73,25 +73,4 @@
 
 switch($_POST['mode']) {
-case 'nonmember_confirm':
-    $objPage = lfSetNonMember($objPage);
-    // ¢¨break¤Ê¤·
-case 'confirm':
-    // ÆþÎÏÃÍ¤ÎÊÑ´¹
-    $objFormParam->convParam();
-    $objFormParam->toLower('order_mail');
-    $objFormParam->toLower('order_mail_check');
-    $objPage->arrErr = lfCheckError();
-    // ÆþÎÏ¥¨¥é¡¼¤Ê¤·
-    if(count($objPage->arrErr) == 0) {
-        // DB¤Ø¤Î¥Ç¡¼¥¿ÅÐÏ¿
-        lfRegistData($uniqid);
-        // Àµ¾ï¤ËÅÐÏ¿¤µ¤ì¤¿¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯
-        $objSiteSess->setRegistFlag();
-        // ¤ª»ÙÊ§¤¤ÊýË¡ÁªÂò¥Ú¡¼¥¸¤Ø°ÜÆ°
-        header("Location: " . gfAddSessionId(MOBILE_URL_SHOP_PAYMENT));
-        exit;       
-    }
-    
-    break;
 // Á°¤Î¥Ú¡¼¥¸¤ËÌá¤ë
 case 'return':
@@ -109,11 +88,12 @@
     // ¥æ¡¼¥¶¥æ¥Ë¡¼¥¯ID¤Î¼èÆÀ
     $uniqid = $objSiteSess->getUniqId();
-    $objQuery = new SC_Query();
-    $where = "order_temp_id = ?";
-    $arrRet = $objQuery->select("*", "dtb_order_temp", $where, array($uniqid));
-    // DBÃÍ¤Î¼èÆÀ
-    $objFormParam->setParam($arrRet[0]);
-    $objFormParam->setValue('order_email_check', $arrRet[0]['order_email']);
-    $objFormParam->setDBDate($arrRet[0]['order_birth']);
+//    $objQuery = new SC_Query();
+//    $where = "order_temp_id = ?";
+//    $arrRet = $objQuery->select("*", "dtb_order_temp", $where, array($uniqid));
+//    sfprintr($arrRet);
+//    // DBÃÍ¤Î¼èÆÀ
+//    $objFormParam->setParam($arrRet[0]);
+//    $objFormParam->setValue('order_email_check', $arrRet[0]['order_email']);
+//    $objFormParam->setDBDate($arrRet[0]['order_birth']);
     break;
 }
@@ -133,5 +113,5 @@
 // ÆþÎÏÃÍ¤Î¼èÆÀ
 $objPage->arrForm = $objFormParam->getFormParamList();
-
+sfprintr($_SESSION);
 //objPage¤Î¾ðÊó¤òobjView¤Ë³ÊÇ¼
 $objView->assignobj($objPage);
@@ -173,5 +153,4 @@
 
 //---- ÅÐÏ¿½ü³°ÍÑ¥«¥é¥àÇÛÎó
-//$arrRejectRegistColumn = array("year", "month", "day", "email02", "email_mobile02","password","password02","reminder","reminder_answer");
 $arrRejectRegistColumn = array("year", "month", "day", "email02", "email_mobile02", "password02");
         
@@ -187,5 +166,5 @@
     }
     
-    //$objPage->arrForm['email'] = strtolower($objPage->arrForm['email']);        // email¤Ï¤¹¤Ù¤Æ¾®Ê¸»ú¤Ç½èÍý
+    $objPage->arrForm['email'] = strtolower($objPage->arrForm['email']);        // email¤Ï¤¹¤Ù¤Æ¾®Ê¸»ú¤Ç½èÍý
     
     //-- ÆþÎÏ¥Ç¡¼¥¿¤ÎÊÑ´¹
@@ -197,5 +176,4 @@
         switch ($_POST["mode2"]) {
         case "deliv_date":  
-        
             break;
         case "deliv":
@@ -213,10 +191,9 @@
     //--¡¡ÆþÎÏ¥¨¥é¡¼¥Á¥§¥Ã¥¯
     if (!empty($_POST["mode2"])) {
-            if ($_POST["mode2"] == "set2") {
+        if ($_POST["mode2"] == "set2") {
             $objPage->arrErr = lfErrorCheck1($objPage->arrForm);
             $objPage->tpl_mainpage = 'nonmember/nonmember_set1.tpl';
             $objPage->tpl_title = '¤ªµÒÍÍ¾ðÊóÆþÎÏ(1/3)';
         } elseif ($_POST["mode2"] == "set3") {
-            
             $objPage->arrErr = lfErrorCheck2($objPage->arrForm);
             $objPage->tpl_mainpage = 'nonmember/nonmember_set2.tpl';
@@ -230,5 +207,5 @@
     //¥Õ¥©¡¼¥à¤ÎÃÍ¤ò$objPage¤Î¥­¡¼¤È¤·¤ÆÂåÆþ¤·¤Æ¤¤¤¯
    foreach($objPage->arrForm as $key => $val) {
-        $objPage->$key = $val;
+            $objPage->$key = $val;
         }
     }
@@ -255,5 +232,4 @@
         //--¡¡¥Æ¥ó¥×¥ì¡¼¥ÈÀßÄê
         if ($_POST["mode2"] == "set2") {
-            
             $objPage->tpl_mainpage = 'nonmember/nonmember_set2.tpl';
             $objPage->tpl_title = '¤ªµÒÍÍ¾ðÊóÆþÎÏ(2/3)';
@@ -283,9 +259,12 @@
             if ($key != "mode2" && $key != "submit" && $key != "confirm" && $key != "return" && $key != session_name() && !in_array($key, $checkVal)) {
                 $objPage->list_data[ $key ] = $val;
+                $_SESSION['user_info'][$key] = $val;
             }
         }
-        
-        //header("Location:" . gfAddSessionId("./deliv.php"));
-        
+//        sfprintr($_SESSION['user_info']);
+       if($_POST["mode2"] == "deliv"){
+            $_SESSION['user_info']['mode2'] = "deliv"; 
+            header("Location:" . gfAddSessionId("./deliv.php"));
+       }
     }
     return $objPage;
@@ -325,5 +304,4 @@
     }
 }
-
 
 /* ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½ */
@@ -368,6 +346,4 @@
 }
 
-/* DB¤Ø¥Ç¡¼¥¿¤ÎÅÐÏ¿ */
-
 /* ÆþÎÏÆâÍÆ¤Î¥Á¥§¥Ã¥¯ */
 function lfCheckError() {
Index: /branches/beta/html/mobile/nonmember/complete.php
===================================================================
--- /branches/beta/html/mobile/nonmember/complete.php	(revision 14676)
+++ /branches/beta/html/mobile/nonmember/complete.php	(revision 15120)
@@ -62,7 +62,7 @@
     //ÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¥á¡¼¥ë¥¢¥É¥ì¥¹¤¬·ÈÂÓ¤«PC¤«¤Ë±þ¤¸¤ÆÃíÊ¸´°Î»¥á¡¼¥ë¤Î¥Æ¥ó¥×¥ì¡¼¥È¤òÊÑ¤¨¤ë
     if(ereg("(ezweb.ne.jp$|docomo.ne.jp$|softbank.ne.jp$|vodafone.ne.jp$)",$order_email[0]['order_email'])){
-              sfSendOrderMail($order_id, '1');
+              sfSendOrderMail($order_id, '1',"","");
         }else{
-              sfSendOrderMail($order_id, '0');
+              sfSendOrderMail($order_id, '0',"","");
         }
     }
Index: /branches/beta/html/mobile/nonmember/deliv_addr.php
===================================================================
--- /branches/beta/html/mobile/nonmember/deliv_addr.php	(revision 14676)
+++ /branches/beta/html/mobile/nonmember/deliv_addr.php	(revision 15120)
@@ -24,9 +24,4 @@
 $objSiteSess = new SC_SiteSession();
 $objCartSess = new SC_CartSession();
-
-////¥í¥°¥¤¥óÈ½Äê
-//if (!$objCustomer->isLoginSuccess()){
-//	sfDispSiteError(CUSTOMER_ERROR, "", false, "", true);
-//}
 
 $objPage->arrForm = $_POST;
@@ -60,6 +55,15 @@
 
                       
- //-- ÆþÎÏ¥Ç¡¼¥¿¤ÎÊÑ´¹
+    //-- ÆþÎÏ¥Ç¡¼¥¿¤ÎÊÑ´¹
     $objPage->arrForm = lfConvertParam($objPage->arrForm, $arrRegistColumn);                        
+
+
+if($_SESSION['deliv_info']){
+    
+    foreach($_SESSION['deliv_info'] as $key => $val){
+        $objPage->arrForm[$key] = $val;
+    }
+    
+}
 
 // Ìá¤ë¥Ü¥¿¥óÍÑ½èÍý
@@ -73,7 +77,7 @@
 		break;
 	default:
-        
-		header("Location: " . gfAddSessionId('index.php'));
-		exit;
+        header("Location: " . gfAddSessionId('deliv.php'));
+        exit;
+
 	}
 }
@@ -107,5 +111,18 @@
 		$objPage->arrErr = lfErrorCheck2($objPage->arrForm);
 		if (count($objPage->arrErr) == 0 && empty($_POST["return"])) {
-			$objPage->tpl_mainpage = 'nonmember/set2.tpl';
+             // ÅÐÏ¿
+            $other_deliv_id = lfRegistData($_POST,$arrRegistColumn,$uniqid);
+
+            // ÅÐÏ¿ºÑ¤ß¤ÎÊÌ¤Î¤ªÆÏ¤±Àè¤ò¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤Ë½ñ¤­¹þ¤à
+            lfRegistOtherDelivData($uniqid, $objCustomer, $other_deliv_id);
+           
+            $_SESSION['deliv_info'] = $_POST;
+            // Àµ¾ï¤ËÅÐÏ¿¤µ¤ì¤¿¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯
+            $objSiteSess->setRegistFlag();
+            // ¤ª»ÙÊ§¤¤ÊýË¡ÁªÂò¥Ú¡¼¥¸¤Ø°ÜÆ°
+            header("Location: " . gfAddSessionId('./payment.php'));
+            exit;
+
+//			$objPage->tpl_mainpage = 'nonmember/set2.tpl';
 		} else {
 			$objPage->tpl_mainpage = 'nonmember/set1.tpl';
Index: /branches/beta/html/mobile/nonmember/payment.php
===================================================================
--- /branches/beta/html/mobile/nonmember/payment.php	(revision 14676)
+++ /branches/beta/html/mobile/nonmember/payment.php	(revision 15120)
@@ -69,8 +69,10 @@
 		$objSiteSess->setRegistFlag();
 		//header("Location: " . gfAddSessionId(MOBILE_URL_SHOP_TOP));
-        header("Location: " . gfAddSessionId('../shopping/index.php'));
+        header("Location: " . gfAddSessionId('../nonmember/deliv.php'));
 		exit;
-	}
-}
+//        $_POST['mode'] = "deliv_date";
+	}
+}
+
 switch($_POST['mode']) {
 // »ÙÊ§¤¤ÊýË¡»ØÄê ¢ª ÇÛÃ£Æü»þ»ØÄê
Index: anches/beta/html/mobile/shopping/nonmember.php
===================================================================
--- /branches/beta/html/mobile/shopping/nonmember.php	(revision 14676)
+++ 	(revision )
@@ -1,400 +1,0 @@
-<?php
-/*
- * Copyright(c) 2000-2006 LOCKON CO.,LTD. All Rights Reserved.
- *
- * http://www.lockon.co.jp/
- */
-
-require_once("../require.php");
-
-class LC_Page {
-    function LC_Page() {
-        $this->tpl_mainpage = 'shopping/nonmember.tpl';        // ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È
-        $this->tpl_title .= '¤ªµÒÍÍ¾ðÊóÆþÎÏ(1/3)';            //¡¡¥Ú¡¼¥¸¥¿¥¤¥È¥ë
-    }
-}
-
-//---- ¥Ú¡¼¥¸½é´üÀßÄê
-$CONF = sf_getBasisData();                  // Å¹ÊÞ´ðËÜ¾ðÊó
-$objConn = new SC_DbConn();
-$objPage = new LC_Page();
-$objView = new SC_MobileView();
-$objDate = new SC_Date(START_BIRTH_YEAR, date("Y",strtotime("now")));
-$objPage->arrPref = $arrPref;
-$objPage->arrJob = $arrJob;
-$objPage->arrReminder = $arrReminder;
-$objPage->arrYear = $objDate->getYear('', 1950);    //¡¡ÆüÉÕ¥×¥ë¥À¥¦¥óÀßÄê
-$objPage->arrMonth = $objDate->getMonth();
-$objPage->arrDay = $objDate->getDay();
-
-//SSLURLÈ½Äê
-if (SSLURL_CHECK == 1){
-    $ssl_url= sfRmDupSlash(MOBILE_SSL_URL.$_SERVER['REQUEST_URI']);
-    if (!ereg("^https://", $non_ssl_url)){
-        sfDispSiteError(URL_ERROR, "", false, "", true);
-    }
-}
-
-// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
-$objPage = sfGetPageLayout($objPage, false, DEF_LAYOUT);
-
-//---- ÅÐÏ¿ÍÑ¥«¥é¥àÇÛÎó
-$arrRegistColumn = array(
-                             array(  "column" => "name01", "convert" => "aKV" ),
-                             array(  "column" => "name02", "convert" => "aKV" ),
-                             array(  "column" => "kana01", "convert" => "CKV" ),
-                             array(  "column" => "kana02", "convert" => "CKV" ),
-                             array(  "column" => "zip01", "convert" => "n" ),
-                             array(  "column" => "zip02", "convert" => "n" ),
-                             array(  "column" => "pref", "convert" => "n" ),
-                             array(  "column" => "addr01", "convert" => "aKV" ),
-                             array(  "column" => "addr02", "convert" => "aKV" ),
-                             array(  "column" => "email", "convert" => "a" ),
-                             array(  "column" => "email2", "convert" => "a" ),
-                             array(  "column" => "email_mobile", "convert" => "a" ),
-                             array(  "column" => "email_mobile2", "convert" => "a" ),
-                             array(  "column" => "tel01", "convert" => "n" ),
-                             array(  "column" => "tel02", "convert" => "n" ),
-                             array(  "column" => "tel03", "convert" => "n" ),
-                             array(  "column" => "fax01", "convert" => "n" ),
-                             array(  "column" => "fax02", "convert" => "n" ),
-                             array(  "column" => "fax03", "convert" => "n" ),
-                             array(  "column" => "sex", "convert" => "n" ),
-                             array(  "column" => "job", "convert" => "n" ),
-                             array(  "column" => "birth", "convert" => "n" ),
-                             array(  "column" => "reminder", "convert" => "n" ),
-                             array(  "column" => "reminder_answer", "convert" => "aKV"),
-                             array(  "column" => "password", "convert" => "a" ),
-                             array(  "column" => "password02", "convert" => "a" ),
-                             array(  "column" => "mailmaga_flg", "convert" => "n" ),
-                         );
-
-//---- ÅÐÏ¿½ü³°ÍÑ¥«¥é¥àÇÛÎó
-//$arrRejectRegistColumn = array("year", "month", "day", "email02", "email_mobile02","password","password02","reminder","reminder_answer");
-$arrRejectRegistColumn = array("year", "month", "day");
-
-if ($_SERVER["REQUEST_METHOD"] == "POST") {
-    //-- POST¥Ç¡¼¥¿¤Î°ú¤­·Ñ¤®
-    $objPage->arrForm = $_POST;
-    
-    if($objPage->arrForm['year'] == '----') {
-        $objPage->arrForm['year'] = '';
-    }
-    
-    //$objPage->arrForm['email'] = strtolower($objPage->arrForm['email']);        // email¤Ï¤¹¤Ù¤Æ¾®Ê¸»ú¤Ç½èÍý
-    
-    //-- ÆþÎÏ¥Ç¡¼¥¿¤ÎÊÑ´¹
-    $objPage->arrForm = lfConvertParam($objPage->arrForm, $arrRegistColumn);
-
-    // Ìá¤ë¥Ü¥¿¥óÍÑ½èÍý
-    if (!empty($_POST["return"])) {
-        switch ($_POST["mode"]) {
-        case "complete":
-            $_POST["mode"] = "set3";
-            break;
-        case "confirm":
-            $_POST["mode"] = "set2";
-            break;
-        default:
-            $_POST["mode"] = "set1";
-            break;
-        }
-    }
-
-    //--¡¡ÆþÎÏ¥¨¥é¡¼¥Á¥§¥Ã¥¯
-    if (!empty($_POST["mode"])) {
-            if ($_POST["mode"] == "set1") {
-            $objPage->arrErr = lfErrorCheck1($objPage->arrForm);
-            $objPage->tpl_mainpage = 'shopping/nonmember.tpl';
-            $objPage->tpl_title = '¤ªµÒÍÍ¾ðÊóÆþÎÏ(1/3)';
-        } elseif ($_POST["mode"] == "set2") {
-            $objPage->arrErr = lfErrorCheck2($objPage->arrForm);
-            $objPage->tpl_mainpage = 'shopping/nonmember_set1.tpl';
-            $objPage->tpl_title = '¤ªµÒÍÍ¾ðÊóÆþÎÏ(2/3)';
-        } elseif ($_POST["mode"] == "deliv"){
-            $objPage->arrErr = lfErrorCheck3($objPage->arrForm);
-            $objPage->tpl_mainpage = 'shopping/nonmember_set2.tpl';
-            $objPage->tpl_title = '¤ªµÒÍÍ¾ðÊóÆþÎÏ(3/3)';
-        }
-    
-   foreach($objPage->arrForm as $key => $val) {
-        $objPage->$key = $val;
-        }
- 
-    }
-
-
-    if ($objPage->arrErr || !empty($_POST["return"])) {     // ÆþÎÏ¥¨¥é¡¼¤Î¥Á¥§¥Ã¥¯
-
-        //-- ¥Ç¡¼¥¿¤ÎÀßÄê
-        if ($_POST["mode"] == "set1") {
-            $checkVal = array("email", "name01", "name02", "kana01", "kana02");
-        } elseif ($_POST["mode"] == "set2") {
-            $checkVal = array("sex", "year", "month", "day", "zip01", "zip02");
-        } else {
-            $checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03", "mail_flag");
-        }
-
-        foreach($objPage->arrForm as $key => $val) {
-            if ($key != "mode" && $key != "submit" && $key != "return" && $key != session_name() && !in_array($key, $checkVal))
-                $objPage->list_data[ $key ] = $val;
-        }
-
-
-
-    } else {
-
-        //--¡¡¥Æ¥ó¥×¥ì¡¼¥ÈÀßÄê
-        if ($_POST["mode"] == "set1") {
-            $objPage->tpl_mainpage = 'shopping/nonmember_set1.tpl';
-            $objPage->tpl_title = '¤ªµÒÍÍ¾ðÊóÆþÎÏ(2/3)';
-        } elseif ($_POST["mode"] == "set2") {
-            $objPage->tpl_mainpage = 'shopping/nonmember_set2.tpl';
-            $objPage->tpl_title = '¤ªµÒÍÍ¾ðÊóÆþÎÏ(3/3)';
-
-            if (@$objPage->arrForm['pref'] == "" && @$objPage->arrForm['addr01'] == "" && @$objPage->arrForm['addr02'] == "") {
-                $address = lfGetAddress($_REQUEST['zip01'].$_REQUEST['zip02']);
-                $objPage->pref = @$address[0]['state'];
-                $objPage->addr01 = @$address[0]['city'] . @$address[0]['town'];
-            }
-        } /*elseif ($_POST["mode"] == "deliv") {
-            //¥Ñ¥¹¥ï¡¼¥ÉÉ½¼¨
-            
-            //¥á¡¼¥ë¼õ¤±¼è¤ê
-            if (strtolower($objPage->arrForm['mail_flag']) == "on") {
-                $objPage->arrForm['mail_flag']  = "2";
-            } else {
-                $objPage->arrForm['mail_flag']  = "3";
-            }
-
-            $objPage->tpl_mainpage = 'shopping/deliv.tpl';
-            $objPage->tpl_title = '¤ªµÒÍÍ¾ðÊó(³ÎÇ§¥Ú¡¼¥¸)';
-
-        }*/
-
-        //-- ¥Ç¡¼¥¿ÀßÄê
-        unset($objPage->list_data);
-        if ($_POST["mode"] == "set1") {
-            $checkVal = array("sex", "year", "month", "day", "zip01", "zip02");
-        } elseif ($_POST["mode"] == "set2") {
-            $checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03", "mail_flag");
-        } else {
-            $checkVal = array();
-        }
-
-        foreach($objPage->arrForm as $key => $val) {
-            if ($key != "mode" && $key != "submit" && $key != "confirm" && $key != "return" && $key != session_name() && !in_array($key, $checkVal)) {
-                $objPage->list_data[ $key ] = $val;
-            }
-        }
-
-//        if ($_POST["mode"] == "deliv") {
-//            
-//            $objFormParam = new SC_FormParam();
-//            // ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½
-//           
-//            // POSTÃÍ¤Î¼èÆÀ
-//            $objFormParam->setParam($_POST);
-//            
-//            // ÆþÎÏÃÍ¤Î¼èÆÀ
-//            $objPage->arrForm = $objFormParam->getFormParamList();
-//            $objPage->arrErr = $arrErr;
-//            
-////            $cnt = 1;
-////            foreach($objOtherAddr as $val) {
-////                $objPage->arrAddr[$cnt] = $val;
-////                $cnt++;
-////            }
-//            
-//           $objPage->arrAddr[0]['zip01'] = $objPage->zip01;
-//           $objPage->arrAddr[0]['zip02'] = $objPage->zip02;
-//           $objPage->arrAddr[0]['pref'] = $objPage->pref;
-//           $objPage->arrAddr[0]['addr01'] = $objPage->addr01;
-//           $objPage->arrAddr[0]['addr02'] = $objPage->addr02;
-//           
-//            $objPage->tpl_mainpage = 'shopping/deliv.tpl';
-//            $objPage->tpl_title = '¤ªÆÏ¤±Àè¾ðÊó';
-//        }
-        
-         if ($_POST["mode"] == "customer_addr") {
-           lfRegistData ($uniqid); 
-           header("Location:" . gfAddSessionId("./payment.php"));
-        print($_POST);
-        }
-        
-        //--¡¡²¾ÅÐÏ¿¤È´°Î»²èÌÌ
-        if ($_POST["mode"] == "complete") {
-            $objPage->uniqid = lfRegistData ($objPage->arrForm, $arrRegistColumn, $arrRejectRegistColumn);
-
-            // ¶õ¥á¡¼¥ë¤ò¼õ¿®ºÑ¤ß¤Î¾ì¹ç¤Ï¤¹¤°¤ËËÜÅÐÏ¿´°Î»¤Ë¤¹¤ë¡£
-//            if (isset($_SESSION['mobile']['kara_mail_from'])) {
-//                header("Location:" . gfAddSessionId(MOBILE_URL_DIR . "regist/index.php?mode=regist&id=" . $objPage->uniqid));
-//                exit;
-//            }
-
-            $objPage->tpl_mainpage = 'shopping/complete.tpl';
-            $objPage->tpl_title = '¤ªµÒÍÍ¾ðÊóÆþÎÏ(´°Î»¥Ú¡¼¥¸)';
-
-            /*sfMobileSetExtSessionId('id', $objPage->uniqid, 'regist/index.php');
-
-            //¡¡²¾ÅÐÏ¿´°Î»¥á¡¼¥ëÁ÷¿®
-            $objPage->CONF = $CONF;
-            $objPage->to_name01 = $_POST['name01'];
-            $objPage->to_name02 = $_POST['name02'];
-            $objMailText = new SC_MobileView();
-            $objMailText->assignobj($objPage);
-            $subject = sfMakesubject('¤ªµÒÍÍ¾ðÊó¤Î¤´³ÎÇ§');
-            $toCustomerMail = $objMailText->fetch("mail_templates/customer_mail.tpl");
-            $objMail = new GC_SendMail();
-            $objMail->setItem(
-                                ''                                  //¡¡°¸Àè
-                                , $subject                          //¡¡¥µ¥Ö¥¸¥§¥¯¥È
-                                , $toCustomerMail                   //¡¡ËÜÊ¸
-                                , $CONF["email03"]                  //¡¡ÇÛÁ÷¸µ¥¢¥É¥ì¥¹
-                                , $CONF["shop_name"]                //¡¡ÇÛÁ÷¸µ¡¡Ì¾Á°
-                                , $CONF["email03"]                  //¡¡reply_to
-                                , $CONF["email04"]                  //¡¡return_path
-                                , $CONF["email04"]                  //  Errors_to
-                                , $CONF["email01"]                  //  Bcc
-                                                                );
-            // °¸Àè¤ÎÀßÄê
-            $name = $_POST["name01"] . $_POST["name02"] ." ÍÍ";
-            $objMail->setTo($_POST["email"], $name);
-            $objMail->sendMail();
-*/
-            // ´°Î»¥Ú¡¼¥¸¤Ë°ÜÆ°¤µ¤»¤ë¡£
-            header("Location:" . gfAddSessionId("./complete.php"));
-            exit;
-        }
-    }
-}
-
-//----¡¡¥Ú¡¼¥¸É½¼¨
-$objView->assignobj($objPage);
-$objView->display(SITE_FRAME);
-
-//----------------------------------------------------------------------------------------------------------------------
-
-//---- function·²
-function lfRegistData($uniqid) {
-    global $objFormParam;
-    $arrRet = $objFormParam->getHashArray();
-    $sqlval = $objFormParam->getDbArray();
-    // ÅÐÏ¿¥Ç¡¼¥¿¤ÎºîÀ®
-    $sqlval['order_temp_id'] = $uniqid;
-    $sqlval['order_birth'] = sfGetTimestamp($arrRet['year'], $arrRet['month'], $arrRet['day']);
-    $sqlval['update_date'] = 'Now()';
-    $sqlval['customer_id'] = '0';
-    
-    // ´ûÂ¸¥Ç¡¼¥¿¤Î¥Á¥§¥Ã¥¯
-    $objQuery = new SC_Query();
-    $where = "order_temp_id = ?";
-    $cnt = $objQuery->count("dtb_order_temp", $where, array($uniqid));
-    // ´ûÂ¸¥Ç¡¼¥¿¤¬¤Ê¤¤¾ì¹ç
-    if ($cnt == 0) {
-        $sqlval['create_date'] = 'Now()';
-        $objQuery->insert("dtb_order_temp", $sqlval);
-    } else {
-        $objQuery->update("dtb_order_temp", $sqlval, $where, array($uniqid));
-    }
-}
-
-//----¡¡¼èÆÀÊ¸»úÎó¤ÎÊÑ´¹
-function lfConvertParam($array, $arrRegistColumn) {
-    /*
-     *  Ê¸»úÎó¤ÎÊÑ´¹
-     *  K :  ¡ÖÈ¾³Ñ(ÊÝ¶¸)ÊÒ²¾Ì¾¡×¤ò¡ÖÁ´³ÑÊÒ²¾Ì¾¡×¤ËÊÑ´¹
-     *  C :  ¡ÖÁ´³Ñ¤Ò¤é²¾Ì¾¡×¤ò¡ÖÁ´³Ñ¤«¤¿²¾Ì¾¡×¤ËÊÑ´¹
-     *  V :  ÂùÅÀÉÕ¤­¤ÎÊ¸»ú¤ò°ìÊ¸»ú¤ËÊÑ´¹¡£"K","H"¤È¶¦¤Ë»ÈÍÑ¤·¤Þ¤¹ 
-     *  n :  ¡ÖÁ´³Ñ¡×¿ô»ú¤ò¡ÖÈ¾³Ñ(ÊÝ¶¸)¡×¤ËÊÑ´¹
-     *  a :  Á´³Ñ±Ñ¿ô»ú¤òÈ¾³Ñ±Ñ¿ô»ú¤ËÊÑ´¹¤¹¤ë
-     */
-    // ¥«¥é¥àÌ¾¤È¥³¥ó¥Ð¡¼¥È¾ðÊó
-    foreach ($arrRegistColumn as $data) {
-        $arrConvList[ $data["column"] ] = $data["convert"];
-    }
-    // Ê¸»úÊÑ´¹
-    foreach ($arrConvList as $key => $val) {
-        // POST¤µ¤ì¤Æ¤­¤¿ÃÍ¤Î¤ßÊÑ´¹¤¹¤ë¡£
-        if(strlen(($array[$key])) > 0) {
-            $array[$key] = mb_convert_kana($array[$key] ,$val);
-        }
-    }
-    return $array;
-}
-
-
-//---- ÆþÎÏ¥¨¥é¡¼¥Á¥§¥Ã¥¯
-function lfErrorCheck2($array) {
-
-    global $objConn, $objDate;
-    $objErr = new SC_CheckError($array);
-    
-    $objErr->doFunc(array("Í¹ÊØÈÖ¹æ1", "zip01", ZIP01_LEN ) ,array("EXIST_CHECK", "SPTAB_CHECK" ,"NUM_CHECK", "NUM_COUNT_CHECK"));
-    $objErr->doFunc(array("Í¹ÊØÈÖ¹æ2", "zip02", ZIP02_LEN ) ,array("EXIST_CHECK", "SPTAB_CHECK" ,"NUM_CHECK", "NUM_COUNT_CHECK")); 
-    $objErr->doFunc(array("Í¹ÊØÈÖ¹æ", "zip01", "zip02"), array("ALL_EXIST_CHECK"));
-
-    $objErr->doFunc(array("À­ÊÌ", "sex") ,array("SELECT_CHECK", "NUM_CHECK")); 
-    $objErr->doFunc(array("À¸Ç¯·îÆü (Ç¯)", "year", 4), array("EXIST_CHECK", "SPTAB_CHECK", "NUM_CHECK", "NUM_COUNT_CHECK"));
-    if (!isset($objErr->arrErr['year'])) {
-        $objErr->doFunc(array("À¸Ç¯·îÆü (Ç¯)", "year", $objDate->getStartYear()), array("MIN_CHECK"));
-        $objErr->doFunc(array("À¸Ç¯·îÆü (Ç¯)", "year", $objDate->getEndYear()), array("MAX_CHECK"));
-    }
-    $objErr->doFunc(array("À¸Ç¯·îÆü (·îÆü)", "month", "day"), array("SELECT_CHECK"));
-    if (!isset($objErr->arrErr['year']) && !isset($objErr->arrErr['month']) && !isset($objErr->arrErr['day'])) {
-        $objErr->doFunc(array("À¸Ç¯·îÆü", "year", "month", "day"), array("CHECK_DATE"));
-    }
-    
-    return $objErr->arrErr;
-}
-
-
-//---- ÆþÎÏ¥¨¥é¡¼¥Á¥§¥Ã¥¯
-function lfErrorCheck3($array) {
-
-    global $objConn;
-    $objErr = new SC_CheckError($array);
-    
-    $objErr->doFunc(array("ÅÔÆ»ÉÜ¸©", 'pref'), array("SELECT_CHECK","NUM_CHECK"));
-    $objErr->doFunc(array("»Ô¶èÄ®Â¼", "addr01", MTEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK" ,"MAX_LENGTH_CHECK"));
-    $objErr->doFunc(array("ÈÖÃÏ", "addr02", MTEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK" ,"MAX_LENGTH_CHECK"));
-    $objErr->doFunc(array("ÅÅÏÃÈÖ¹æ1", 'tel01'), array("EXIST_CHECK","SPTAB_CHECK" ));
-    $objErr->doFunc(array("ÅÅÏÃÈÖ¹æ2", 'tel02'), array("EXIST_CHECK","SPTAB_CHECK" ));
-    $objErr->doFunc(array("ÅÅÏÃÈÖ¹æ3", 'tel03'), array("EXIST_CHECK","SPTAB_CHECK" ));
-    $objErr->doFunc(array("ÅÅÏÃÈÖ¹æ", "tel01", "tel02", "tel03",TEL_ITEM_LEN) ,array("TEL_CHECK"));
-    
-    return $objErr->arrErr;
-}
-
-// Í¹ÊØÈÖ¹æ¤«¤é½»½ê¤Î¼èÆÀ
-function lfGetAddress($zipcode) {
-    global $arrPref;
-
-    $conn = new SC_DBconn(ZIP_DSN);
-
-    // Í¹ÊØÈÖ¹æ¸¡º÷Ê¸ºîÀ®
-    $zipcode = mb_convert_kana($zipcode ,"n");
-    $sqlse = "SELECT state, city, town FROM mtb_zip WHERE zipcode = ?";
-
-    $data_list = $conn->getAll($sqlse, array($zipcode));
-
-    // ¥¤¥ó¥Ç¥Ã¥¯¥¹¤ÈÃÍ¤òÈ¿Å¾¤µ¤»¤ë¡£
-    $arrREV_PREF = array_flip($arrPref);
-
-    /*
-        ÁíÌ³¾Ê¤«¤é¥À¥¦¥ó¥í¡¼¥É¤·¤¿¥Ç¡¼¥¿¤ò¤½¤Î¤Þ¤Þ¥¤¥ó¥Ý¡¼¥È¤¹¤ë¤È
-        °Ê²¼¤Î¤è¤¦¤ÊÊ¸»úÎó¤¬Æþ¤Ã¤Æ¤¤¤ë¤Î¤Ç   ÂÐºö¤¹¤ë¡£
-        ¡¦¡Ê£±¡¦£±£¹ÃúÌÜ¡Ë
-        ¡¦°Ê²¼¤Ë·ÇºÜ¤¬¤Ê¤¤¾ì¹ç
-    */
-    $town =  $data_list[0]['town'];
-    $town = ereg_replace("¡Ê.*¡Ë$","",$town);
-    $town = ereg_replace("°Ê²¼¤Ë·ÇºÜ¤¬¤Ê¤¤¾ì¹ç","",$town);
-    $data_list[0]['town'] = $town;
-    $data_list[0]['state'] = $arrREV_PREF[$data_list[0]['state']];
-
-    return $data_list;
-}
-
-//-----------------------------------------------------------------------------------------------------------------------------------
-?>
Index: anches/beta/html/mobile/shopping/nonmember_index.php
===================================================================
--- /branches/beta/html/mobile/shopping/nonmember_index.php	(revision 14676)
+++ 	(revision )
@@ -1,456 +1,0 @@
-<?php
-/*
- * Copyright(c) 2000-2006 LOCKON CO.,LTD. All Rights Reserved.
- *
- * http://www.lockon.co.jp/
- */
-
-require_once("../require.php");
-
-class LC_Page {
-    function LC_Page() {
-        $this->tpl_mainpage = 'nonmember/index.tpl';        // ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È
-        $this->tpl_title .= '¤ªµÒÍÍ¾ðÊóÆþÎÏ(1/3)';            //¡¡¥Ú¡¼¥¸¥¿¥¤¥È¥ë
-    }
-}
-
-//---- ¥Ú¡¼¥¸½é´üÀßÄê
-$CONF = sf_getBasisData();                  // Å¹ÊÞ´ðËÜ¾ðÊó
-$objConn = new SC_DbConn();
-$objPage = new LC_Page();
-$objView = new SC_MobileView();
-$objDate = new SC_Date(START_BIRTH_YEAR, date("Y",strtotime("now")));
-$objPage->arrPref = $arrPref;
-$objPage->arrJob = $arrJob;
-$objPage->arrReminder = $arrReminder;
-$objPage->arrYear = $objDate->getYear('', 1950);    //¡¡ÆüÉÕ¥×¥ë¥À¥¦¥óÀßÄê
-$objPage->arrMonth = $objDate->getMonth();
-$objPage->arrDay = $objDate->getDay();
-
-//SSLURLÈ½Äê
-if (SSLURL_CHECK == 1){
-    $ssl_url= sfRmDupSlash(MOBILE_SSL_URL.$_SERVER['REQUEST_URI']);
-    if (!ereg("^https://", $non_ssl_url)){
-        sfDispSiteError(URL_ERROR, "", false, "", true);
-    }
-}
-
-// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
-$objPage = sfGetPageLayout($objPage, false, DEF_LAYOUT);
-
-//---- ÅÐÏ¿ÍÑ¥«¥é¥àÇÛÎó
-$arrRegistColumn = array(
-                             array(  "column" => "name01", "convert" => "aKV" ),
-                             array(  "column" => "name02", "convert" => "aKV" ),
-                             array(  "column" => "kana01", "convert" => "CKV" ),
-                             array(  "column" => "kana02", "convert" => "CKV" ),
-                             array(  "column" => "zip01", "convert" => "n" ),
-                             array(  "column" => "zip02", "convert" => "n" ),
-                             array(  "column" => "pref", "convert" => "n" ),
-                             array(  "column" => "addr01", "convert" => "aKV" ),
-                             array(  "column" => "addr02", "convert" => "aKV" ),
-                             array(  "column" => "email", "convert" => "a" ),
-                             array(  "column" => "email2", "convert" => "a" ),
-                             array(  "column" => "email_mobile", "convert" => "a" ),
-                             array(  "column" => "email_mobile2", "convert" => "a" ),
-                             array(  "column" => "tel01", "convert" => "n" ),
-                             array(  "column" => "tel02", "convert" => "n" ),
-                             array(  "column" => "tel03", "convert" => "n" ),
-                             array(  "column" => "fax01", "convert" => "n" ),
-                             array(  "column" => "fax02", "convert" => "n" ),
-                             array(  "column" => "fax03", "convert" => "n" ),
-                             array(  "column" => "sex", "convert" => "n" ),
-                             array(  "column" => "job", "convert" => "n" ),
-                             array(  "column" => "birth", "convert" => "n" ),
-                             array(  "column" => "reminder", "convert" => "n" ),
-                             array(  "column" => "reminder_answer", "convert" => "aKV"),
-                             array(  "column" => "password", "convert" => "a" ),
-                             array(  "column" => "password02", "convert" => "a" ),
-                             array(  "column" => "mailmaga_flg", "convert" => "n" ),
-                         );
-
-//---- ÅÐÏ¿½ü³°ÍÑ¥«¥é¥àÇÛÎó
-$arrRejectRegistColumn = array("year", "month", "day", "email02", "email_mobile02","password","password02","reminder","reminder_answer");
-
-if ($_SERVER["REQUEST_METHOD"] == "POST") {
-
-    //-- POST¥Ç¡¼¥¿¤Î°ú¤­·Ñ¤®
-    $objPage->arrForm = $_POST;
-    
-    if($objPage->arrForm['year'] == '----') {
-        $objPage->arrForm['year'] = '';
-    }
-    
-    $objPage->arrForm['email'] = strtolower($objPage->arrForm['email']);        // email¤Ï¤¹¤Ù¤Æ¾®Ê¸»ú¤Ç½èÍý
-    
-    //-- ÆþÎÏ¥Ç¡¼¥¿¤ÎÊÑ´¹
-    $objPage->arrForm = lfConvertParam($objPage->arrForm, $arrRegistColumn);
-
-    // Ìá¤ë¥Ü¥¿¥óÍÑ½èÍý
-    if (!empty($_POST["return"])) {
-        switch ($_POST["mode"]) {
-        case "complete":
-            $_POST["mode"] = "set3";
-            break;
-        case "confirm":
-            $_POST["mode"] = "set2";
-            break;
-        default:
-            $_POST["mode"] = "set1";
-            break;
-        }
-    }
-
-    //--¡¡ÆþÎÏ¥¨¥é¡¼¥Á¥§¥Ã¥¯
-    if (!empty($_POST["mode"])) {
-            if ($_POST["mode"] == "set1") {
-            $objPage->arrErr = lfErrorCheck1($objPage->arrForm);
-            $objPage->tpl_mainpage = 'nonmember/index.tpl';
-            $objPage->tpl_title = '¤ªµÒÍÍ¾ðÊóÆþÎÏ(1/3)';
-        } elseif ($_POST["mode"] == "set2") {
-            $objPage->arrErr = lfErrorCheck2($objPage->arrForm);
-            $objPage->tpl_mainpage = 'nonmember/set1.tpl';
-            $objPage->tpl_title = '¤ªµÒÍÍ¾ðÊóÆþÎÏ(2/3)';
-        } else {
-            $objPage->arrErr = lfErrorCheck3($objPage->arrForm);
-            $objPage->tpl_mainpage = 'nonmember/set2.tpl';
-            $objPage->tpl_title = '¤ªµÒÍÍ¾ðÊóÆþÎÏ(3/3)';
-        }
-    
-
-    foreach($objPage->arrForm as $key => $val) {
-        $objPage->$key = $val;
-        }
-    }
-
-
-    if ($objPage->arrErr || !empty($_POST["return"])) {     // ÆþÎÏ¥¨¥é¡¼¤Î¥Á¥§¥Ã¥¯
-
-        //-- ¥Ç¡¼¥¿¤ÎÀßÄê
-        if ($_POST["mode"] == "set1") {
-            $checkVal = array("email", "name01", "name02", "kana01", "kana02");
-        } elseif ($_POST["mode"] == "set2") {
-            $checkVal = array("sex", "year", "month", "day", "zip01", "zip02");
-        } else {
-            $checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03", "mail_flag");
-        }
-
-        foreach($objPage->arrForm as $key => $val) {
-            if ($key != "mode" && $key != "submit" && $key != "return" && $key != session_name() && !in_array($key, $checkVal))
-                $objPage->list_data[ $key ] = $val;
-        }
-
-
-
-    } else {
-
-        //--¡¡¥Æ¥ó¥×¥ì¡¼¥ÈÀßÄê
-        if ($_POST["mode"] == "set1") {
-            $objPage->tpl_mainpage = 'nonmember/set1.tpl';
-            $objPage->tpl_title = '¤ªµÒÍÍ¾ðÊóÆþÎÏ(2/3)';
-        } elseif ($_POST["mode"] == "set2") {
-            $objPage->tpl_mainpage = 'nonmember/set2.tpl';
-            $objPage->tpl_title = '¤ªµÒÍÍ¾ðÊóÆþÎÏ(3/3)';
-
-            if (@$objPage->arrForm['pref'] == "" && @$objPage->arrForm['addr01'] == "" && @$objPage->arrForm['addr02'] == "") {
-                $address = lfGetAddress($_REQUEST['zip01'].$_REQUEST['zip02']);
-                $objPage->pref = @$address[0]['state'];
-                $objPage->addr01 = @$address[0]['city'] . @$address[0]['town'];
-            }
-        } elseif ($_POST["mode"] == "confirm") {
-            //¥Ñ¥¹¥ï¡¼¥ÉÉ½¼¨
-            
-            //¥á¡¼¥ë¼õ¤±¼è¤ê
-            if (strtolower($objPage->arrForm['mail_flag']) == "on") {
-                $objPage->arrForm['mail_flag']  = "2";
-            } else {
-                $objPage->arrForm['mail_flag']  = "3";
-            }
-
-            $objPage->tpl_mainpage = 'nonmember/confirm.tpl';
-            $objPage->tpl_title = '¤ªµÒÍÍ¾ðÊó(³ÎÇ§¥Ú¡¼¥¸)';
-
-        }
-
-        //-- ¥Ç¡¼¥¿ÀßÄê
-        unset($objPage->list_data);
-        if ($_POST["mode"] == "set1") {
-            $checkVal = array("sex", "year", "month", "day", "zip01", "zip02");
-        } elseif ($_POST["mode"] == "set2") {
-            $checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03", "mail_flag");
-        } else {
-            $checkVal = array();
-        }
-
-        foreach($objPage->arrForm as $key => $val) {
-            if ($key != "mode" && $key != "submit" && $key != "confirm" && $key != "return" && $key != session_name() && !in_array($key, $checkVal)) {
-                $objPage->list_data[ $key ] = $val;
-            }
-        }
-
-        if ($_POST["mode"] == "deliv") {
-            
-            
-            $objPage->tpl_mainpage = 'nonmember/deliv.tpl';
-            $objPage->tpl_title = '¤ªÆÏ¤±Àè¾ðÊó';
-        }
-        
-        //--¡¡²¾ÅÐÏ¿¤È´°Î»²èÌÌ
-        if ($_POST["mode"] == "complete") {
-            //$objPage->uniqid = lfRegistData ($objPage->arrForm, $arrRegistColumn, $arrRejectRegistColumn);
-
-            // ¶õ¥á¡¼¥ë¤ò¼õ¿®ºÑ¤ß¤Î¾ì¹ç¤Ï¤¹¤°¤ËËÜÅÐÏ¿´°Î»¤Ë¤¹¤ë¡£
-            if (isset($_SESSION['mobile']['kara_mail_from'])) {
-                header("Location:" . gfAddSessionId(MOBILE_URL_DIR . "regist/index.php?mode=regist&id=" . $objPage->uniqid));
-                exit;
-            }
-
-            $objPage->tpl_mainpage = 'nonmember/complete.tpl';
-            $objPage->tpl_title = '¤ªµÒÍÍ¾ðÊóÆþÎÏ(´°Î»¥Ú¡¼¥¸)';
-
-            /*sfMobileSetExtSessionId('id', $objPage->uniqid, 'regist/index.php');
-
-            //¡¡²¾ÅÐÏ¿´°Î»¥á¡¼¥ëÁ÷¿®
-            $objPage->CONF = $CONF;
-            $objPage->to_name01 = $_POST['name01'];
-            $objPage->to_name02 = $_POST['name02'];
-            $objMailText = new SC_MobileView();
-            $objMailText->assignobj($objPage);
-            $subject = sfMakesubject('¤ªµÒÍÍ¾ðÊó¤Î¤´³ÎÇ§');
-            $toCustomerMail = $objMailText->fetch("mail_templates/customer_mail.tpl");
-            $objMail = new GC_SendMail();
-            $objMail->setItem(
-                                ''                                  //¡¡°¸Àè
-                                , $subject                          //¡¡¥µ¥Ö¥¸¥§¥¯¥È
-                                , $toCustomerMail                   //¡¡ËÜÊ¸
-                                , $CONF["email03"]                  //¡¡ÇÛÁ÷¸µ¥¢¥É¥ì¥¹
-                                , $CONF["shop_name"]                //¡¡ÇÛÁ÷¸µ¡¡Ì¾Á°
-                                , $CONF["email03"]                  //¡¡reply_to
-                                , $CONF["email04"]                  //¡¡return_path
-                                , $CONF["email04"]                  //  Errors_to
-                                , $CONF["email01"]                  //  Bcc
-                                                                );
-            // °¸Àè¤ÎÀßÄê
-            $name = $_POST["name01"] . $_POST["name02"] ." ÍÍ";
-            $objMail->setTo($_POST["email"], $name);
-            $objMail->sendMail();
-*/
-            // ´°Î»¥Ú¡¼¥¸¤Ë°ÜÆ°¤µ¤»¤ë¡£
-            header("Location:" . gfAddSessionId("./complete.php"));
-            exit;
-        }
-    }
-}
-
-//----¡¡¥Ú¡¼¥¸É½¼¨
-$objView->assignobj($objPage);
-$objView->display(SITE_FRAME);
-
-//----------------------------------------------------------------------------------------------------------------------
-
-//---- function·²
-function lfRegistData ($array, $arrRegistColumn, $arrRejectRegistColumn) {
-    global $objConn;
-
-    // ²¾ÅÐÏ¿
-    foreach ($arrRegistColumn as $data) {
-        if (strlen($array[ $data["column"] ]) > 0 && ! in_array($data["column"], $arrRejectRegistColumn)) {
-            $arrRegist[ $data["column"] ] = $array[ $data["column"] ];
-        }
-    }
-        
-    // ÃÂÀ¸Æü¤¬ÆþÎÏ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç
-    if (strlen($array["year"]) > 0 ) {
-        $arrRegist["birth"] = $array["year"] ."/". $array["month"] ."/". $array["day"] ." 00:00:00";
-    }
-    
-    // ¥Ñ¥¹¥ï¡¼¥É¤Î°Å¹æ²½
-    $arrRegist["password"] = sha1($arrRegist["password"] . ":" . AUTH_MAGIC);
-    
-    $count = 1;
-    while ($count != 0) {
-        $uniqid = sfGetUniqRandomId("t");
-        $count = $objConn->getOne("SELECT COUNT(*) FROM dtb_customer WHERE secret_key = ?", array($uniqid));
-    }
-
-    switch($array["mailmaga_flg"]) {
-        case 1:
-            $arrRegist["mailmaga_flg"] = 4; 
-            break;
-        case 2:
-            $arrRegist["mailmaga_flg"] = 5; 
-            break;
-        default:
-            $arrRegist["mailmaga_flg"] = 6;
-            break;
-    }
-        
-    $arrRegist["secret_key"] = $uniqid;     // ²¾ÅÐÏ¿IDÈ¯¹Ô
-    $arrRegist["create_date"] = "now()";    // ºîÀ®Æü
-    $arrRegist["update_date"] = "now()";    // ¹¹¿·Æü
-    $arrRegist["first_buy_date"] = "";      // ºÇ½é¤Î¹ØÆþÆü
-    
-    // ·ÈÂÓ¥á¡¼¥ë¥¢¥É¥ì¥¹
-    $arrRegist['email_mobile'] = $arrRegist['email'];
-
-    //-- ²¾ÅÐÏ¿¼Â¹Ô
-    $objConn->query("BEGIN");
-
-    $objQuery = new SC_Query();
-    $objQuery->insert("dtb_customer", $arrRegist);
-
-/* ¥á¥ë¥Þ¥¬²ñ°÷µ¡Ç½¤Ï¸½ºßÄä»ßÃæ¡¡2007/03/07
-    //--¡¡Èó²ñ°÷¤Ç¥á¥ë¥Þ¥¬ÅÐÏ¿¤·¤Æ¤¤¤ë¤«¤ÎÈ½Äê
-    $sql = "SELECT count(*) FROM dtb_customer_mail WHERE email = ?";
-    $mailResult = $objConn->getOne($sql, array($arrRegist["email"]));
-
-    //--¡¡¥á¥ë¥Þ¥¬²¾ÅÐÏ¿¼Â¹Ô
-    $arrRegistMail["email"] = $arrRegist["email"];  
-    if ($array["mailmaga_flg"] == 1) {
-        $arrRegistMail["mailmaga_flg"] = 4; 
-    } elseif ($array["mailmaga_flg"] == 2) {
-        $arrRegistMail["mailmaga_flg"] = 5; 
-    } else {
-        $arrRegistMail["mailmaga_flg"] = 6; 
-    }
-    $arrRegistMail["update_date"] = "now()";
-    
-    // Èó²ñ°÷¤Ç¥á¥ë¥Þ¥¬ÅÐÏ¿¤·¤Æ¤¤¤ë¾ì¹ç
-    if ($mailResult == 1) {     
-        $objQuery->update("dtb_customer_mail", $arrRegistMail, "email = '" .addslashes($arrRegistMail["email"]). "'");          
-    } else {                //¡¡¿·µ¬ÅÐÏ¿¤Î¾ì¹ç
-        $arrRegistMail["create_date"] = "now()";
-        $objQuery->insert("dtb_customer_mail", $arrRegistMail);     
-    }
-*/
-    $objConn->query("COMMIT");
-
-    return $uniqid;
-}
-
-//----¡¡¼èÆÀÊ¸»úÎó¤ÎÊÑ´¹
-function lfConvertParam($array, $arrRegistColumn) {
-    /*
-     *  Ê¸»úÎó¤ÎÊÑ´¹
-     *  K :  ¡ÖÈ¾³Ñ(ÊÝ¶¸)ÊÒ²¾Ì¾¡×¤ò¡ÖÁ´³ÑÊÒ²¾Ì¾¡×¤ËÊÑ´¹
-     *  C :  ¡ÖÁ´³Ñ¤Ò¤é²¾Ì¾¡×¤ò¡ÖÁ´³Ñ¤«¤¿²¾Ì¾¡×¤ËÊÑ´¹
-     *  V :  ÂùÅÀÉÕ¤­¤ÎÊ¸»ú¤ò°ìÊ¸»ú¤ËÊÑ´¹¡£"K","H"¤È¶¦¤Ë»ÈÍÑ¤·¤Þ¤¹ 
-     *  n :  ¡ÖÁ´³Ñ¡×¿ô»ú¤ò¡ÖÈ¾³Ñ(ÊÝ¶¸)¡×¤ËÊÑ´¹
-     *  a :  Á´³Ñ±Ñ¿ô»ú¤òÈ¾³Ñ±Ñ¿ô»ú¤ËÊÑ´¹¤¹¤ë
-     */
-    // ¥«¥é¥àÌ¾¤È¥³¥ó¥Ð¡¼¥È¾ðÊó
-    foreach ($arrRegistColumn as $data) {
-        $arrConvList[ $data["column"] ] = $data["convert"];
-    }
-    // Ê¸»úÊÑ´¹
-    foreach ($arrConvList as $key => $val) {
-        // POST¤µ¤ì¤Æ¤­¤¿ÃÍ¤Î¤ßÊÑ´¹¤¹¤ë¡£
-        if(strlen(($array[$key])) > 0) {
-            $array[$key] = mb_convert_kana($array[$key] ,$val);
-        }
-    }
-    return $array;
-}
-
-//---- ÆþÎÏ¥¨¥é¡¼¥Á¥§¥Ã¥¯
-function lfErrorCheck1($array) {
-
-    global $objConn;
-    $objErr = new SC_CheckError($array);
-    
-    $objErr->doFunc(array("¤ªÌ¾Á°¡ÊÀ«¡Ë", 'name01', STEXT_LEN), array("EXIST_CHECK", "NO_SPTAB", "SPTAB_CHECK" ,"MAX_LENGTH_CHECK"));
-    $objErr->doFunc(array("¤ªÌ¾Á°¡ÊÌ¾¡Ë", 'name02', STEXT_LEN), array("EXIST_CHECK", "NO_SPTAB", "SPTAB_CHECK" , "MAX_LENGTH_CHECK"));
-    $objErr->doFunc(array("¤ªÌ¾Á°¡Ê¥«¥Ê/À«¡Ë", 'kana01', STEXT_LEN), array("EXIST_CHECK", "NO_SPTAB", "SPTAB_CHECK" ,"MAX_LENGTH_CHECK", "KANA_CHECK"));
-    $objErr->doFunc(array("¤ªÌ¾Á°¡Ê¥«¥Ê/Ì¾¡Ë", 'kana02', STEXT_LEN), array("EXIST_CHECK", "NO_SPTAB", "SPTAB_CHECK" ,"MAX_LENGTH_CHECK", "KANA_CHECK"));
-    $objErr->doFunc(array('¥á¡¼¥ë¥¢¥É¥ì¥¹', "email", MTEXT_LEN) ,array("NO_SPTAB", "EXIST_CHECK", "EMAIL_CHECK", "SPTAB_CHECK" ,"EMAIL_CHAR_CHECK", "MAX_LENGTH_CHECK", "MOBILE_EMAIL_CHECK"));
-
-    //¸½²ñ°÷¤ÎÈ½Äê ¢ª¡¡¸½²ñ°÷¤â¤·¤¯¤Ï²¾ÅÐÏ¿Ãæ¤Ï¡¢¥á¥¢¥É°ì°Õ¤¬Á°Äó¤Ë¤Ê¤Ã¤Æ¤ë¤Î¤ÇÆ±¤¸¥á¥¢¥É¤ÇÅÐÏ¿ÉÔ²Ä
-
-    return $objErr->arrErr;
-}
-
-//---- ÆþÎÏ¥¨¥é¡¼¥Á¥§¥Ã¥¯
-function lfErrorCheck2($array) {
-
-    global $objConn, $objDate;
-    $objErr = new SC_CheckError($array);
-    
-    $objErr->doFunc(array("Í¹ÊØÈÖ¹æ1", "zip01", ZIP01_LEN ) ,array("EXIST_CHECK", "SPTAB_CHECK" ,"NUM_CHECK", "NUM_COUNT_CHECK"));
-    $objErr->doFunc(array("Í¹ÊØÈÖ¹æ2", "zip02", ZIP02_LEN ) ,array("EXIST_CHECK", "SPTAB_CHECK" ,"NUM_CHECK", "NUM_COUNT_CHECK")); 
-    $objErr->doFunc(array("Í¹ÊØÈÖ¹æ", "zip01", "zip02"), array("ALL_EXIST_CHECK"));
-
-    $objErr->doFunc(array("À­ÊÌ", "sex") ,array("SELECT_CHECK", "NUM_CHECK")); 
-    $objErr->doFunc(array("À¸Ç¯·îÆü (Ç¯)", "year", 4), array("EXIST_CHECK", "SPTAB_CHECK", "NUM_CHECK", "NUM_COUNT_CHECK"));
-    if (!isset($objErr->arrErr['year'])) {
-        $objErr->doFunc(array("À¸Ç¯·îÆü (Ç¯)", "year", $objDate->getStartYear()), array("MIN_CHECK"));
-        $objErr->doFunc(array("À¸Ç¯·îÆü (Ç¯)", "year", $objDate->getEndYear()), array("MAX_CHECK"));
-    }
-    $objErr->doFunc(array("À¸Ç¯·îÆü (·îÆü)", "month", "day"), array("SELECT_CHECK"));
-    if (!isset($objErr->arrErr['year']) && !isset($objErr->arrErr['month']) && !isset($objErr->arrErr['day'])) {
-        $objErr->doFunc(array("À¸Ç¯·îÆü", "year", "month", "day"), array("CHECK_DATE"));
-    }
-    
-    return $objErr->arrErr;
-}
-
-//---- ÆþÎÏ¥¨¥é¡¼¥Á¥§¥Ã¥¯
-function lfErrorCheck3($array) {
-
-    global $objConn;
-    $objErr = new SC_CheckError($array);
-    
-    $objErr->doFunc(array("ÅÔÆ»ÉÜ¸©", 'pref'), array("SELECT_CHECK","NUM_CHECK"));
-    $objErr->doFunc(array("»Ô¶èÄ®Â¼", "addr01", MTEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK" ,"MAX_LENGTH_CHECK"));
-    $objErr->doFunc(array("ÈÖÃÏ", "addr02", MTEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK" ,"MAX_LENGTH_CHECK"));
-    $objErr->doFunc(array("ÅÅÏÃÈÖ¹æ1", 'tel01'), array("EXIST_CHECK","SPTAB_CHECK" ));
-    $objErr->doFunc(array("ÅÅÏÃÈÖ¹æ2", 'tel02'), array("EXIST_CHECK","SPTAB_CHECK" ));
-    $objErr->doFunc(array("ÅÅÏÃÈÖ¹æ3", 'tel03'), array("EXIST_CHECK","SPTAB_CHECK" ));
-    $objErr->doFunc(array("ÅÅÏÃÈÖ¹æ", "tel01", "tel02", "tel03",TEL_ITEM_LEN) ,array("TEL_CHECK"));
-    
-    return $objErr->arrErr;
-}
-
-//³ÎÇ§¥Ú¡¼¥¸ÍÑ¥Ñ¥¹¥ï¡¼¥ÉÉ½¼¨ÍÑ
-
-function lfPassLen($passlen){
-    $ret = "";
-    for ($i=0;$i<$passlen;true){
-    $ret.="*";
-    $i++;
-    }
-    return $ret;
-}
-
-
-// Í¹ÊØÈÖ¹æ¤«¤é½»½ê¤Î¼èÆÀ
-function lfGetAddress($zipcode) {
-    global $arrPref;
-
-    $conn = new SC_DBconn(ZIP_DSN);
-
-    // Í¹ÊØÈÖ¹æ¸¡º÷Ê¸ºîÀ®
-    $zipcode = mb_convert_kana($zipcode ,"n");
-    $sqlse = "SELECT state, city, town FROM mtb_zip WHERE zipcode = ?";
-
-    $data_list = $conn->getAll($sqlse, array($zipcode));
-
-    // ¥¤¥ó¥Ç¥Ã¥¯¥¹¤ÈÃÍ¤òÈ¿Å¾¤µ¤»¤ë¡£
-    $arrREV_PREF = array_flip($arrPref);
-
-    /*
-        ÁíÌ³¾Ê¤«¤é¥À¥¦¥ó¥í¡¼¥É¤·¤¿¥Ç¡¼¥¿¤ò¤½¤Î¤Þ¤Þ¥¤¥ó¥Ý¡¼¥È¤¹¤ë¤È
-        °Ê²¼¤Î¤è¤¦¤ÊÊ¸»úÎó¤¬Æþ¤Ã¤Æ¤¤¤ë¤Î¤Ç   ÂÐºö¤¹¤ë¡£
-        ¡¦¡Ê£±¡¦£±£¹ÃúÌÜ¡Ë
-        ¡¦°Ê²¼¤Ë·ÇºÜ¤¬¤Ê¤¤¾ì¹ç
-    */
-    $town =  $data_list[0]['town'];
-    $town = ereg_replace("¡Ê.*¡Ë$","",$town);
-    $town = ereg_replace("°Ê²¼¤Ë·ÇºÜ¤¬¤Ê¤¤¾ì¹ç","",$town);
-    $data_list[0]['town'] = $town;
-    $data_list[0]['state'] = $arrREV_PREF[$data_list[0]['state']];
-
-    return $data_list;
-}
-
-//-----------------------------------------------------------------------------------------------------------------------------------
-?>
Index: anches/beta/html/mobile/shopping/nonmember_payment.php
===================================================================
--- /branches/beta/html/mobile/shopping/nonmember_payment.php	(revision 14676)
+++ 	(revision )
@@ -1,380 +1,0 @@
-<?php
-/**
- * 
- * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
- *
- * http://www.lockon.co.jp/
- * 
- */
-
-require_once("../require.php");
-
-class LC_Page {
-	var $arrSession;
-	var $tpl_mode;
-	function LC_Page() {
-		$this->tpl_css = '/css/layout/shopping/pay.css';
-		$this->tpl_mainpage = 'shopping/payment.tpl';
-		$this->tpl_onload = 'fnCheckInputPoint();';
-		$this->tpl_title = "¤ª»ÙÊ§ÊýË¡¤Î»ØÄê";
-		/*
-		 session_start»þ¤Îno-cache¥Ø¥Ã¥À¡¼¤òÍÞÀ©¤¹¤ë¤³¤È¤Ç
-		 ¡ÖÌá¤ë¡×¥Ü¥¿¥ó»ÈÍÑ»þ¤ÎÍ­¸ú´ü¸ÂÀÚ¤ìÉ½¼¨¤òÍÞÀ©¤¹¤ë¡£
-		 private-no-expire:¥¯¥é¥¤¥¢¥ó¥È¤Î¥­¥ã¥Ã¥·¥å¤òµö²Ä¤¹¤ë¡£
-		*/
-		session_cache_limiter('private-no-expire');		
-	}
-}
-
-$objPage = new LC_Page();
-$objView = new SC_MobileView();
-$objSiteSess = new SC_SiteSession();
-$objCartSess = new SC_CartSession();
-$objCustomer = new SC_Customer();
-$objSiteInfo = $objView->objSiteInfo;
-$arrInfo = $objSiteInfo->data;
-
-// ¥Ñ¥é¥á¡¼¥¿´ÉÍý¥¯¥é¥¹
-$objFormParam = new SC_FormParam();
-// ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½
-lfInitParam();
-// POSTÃÍ¤Î¼èÆÀ
-print_r($_POST);
-$objFormParam->setParam($_POST);
-
-// ¥æ¡¼¥¶¥æ¥Ë¡¼¥¯ID¤Î¼èÆÀ¤È¹ØÆþ¾õÂÖ¤ÎÀµÅöÀ­¤ò¥Á¥§¥Ã¥¯
-$uniqid = sfCheckNormalAccess($objSiteSess, $objCartSess);
-// ¥æ¥Ë¡¼¥¯ID¤ò°ú¤­·Ñ¤°
-$objPage->tpl_uniqid = $uniqid;
-
-if($objCustomer->isLoginSuccess()) {
-    $objPage->tpl_login = '1';
-    $objPage->tpl_user_point = $objCustomer->getValue('point');
-    //Ìá¤êÀèURL
-    $objPage->tpl_back_url = URL_DELIV_TOP;
-} else {
-    $objPage->tpl_back_url = URL_SHOP_TOP . "?from=nonmember";
-}
-
-
-// ¶â³Û¤Î¼èÆÀ (¹ØÆþÅÓÃæ¤ÇÇä¤êÀÚ¤ì¤¿¾ì¹ç¤Ë¤Ï¤³¤Î´Ø¿ôÆâ¤Ë¤Æ¤½¤Î¾¦ÉÊ¤Î¸Ä¿ô¤¬£°¤Ë¤Ê¤ë)
-$objPage = sfTotalCart($objPage, $objCartSess, $arrInfo);
-$objPage->arrData = sfTotalConfirm($arrData, $objPage, $objCartSess, $arrInfo);
-
-// ¥«¡¼¥ÈÆâ¤Î¾¦ÉÊ¤ÎÇä¤êÀÚ¤ì¥Á¥§¥Ã¥¯
-$objCartSess->chkSoldOut($objCartSess->getCartList(), true);
-
-// Ìá¤ë¥Ü¥¿¥ó¤Î½èÍý
-if (!empty($_POST['return'])) {
-	switch ($_POST['mode']) {
-	case 'confirm':
-		$_POST['mode'] = 'payment';
-		break;
-	default:
-		// Àµ¾ï¤Ê¿ä°Ü¤Ç¤¢¤ë¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯
-		$objSiteSess->setRegistFlag();
-		header("Location: " . gfAddSessionId(MOBILE_URL_SHOP_TOP));
-		exit;
-	}
-}
-
-switch($_POST['mode']) {
-// »ÙÊ§¤¤ÊýË¡»ØÄê ¢ª ÇÛÃ£Æü»þ»ØÄê
-case 'deliv_date':
-	$objFormParam->setParam($_POST);
-	
-	// ÆþÎÏÃÍ¤ÎÊÑ´¹
-	$objFormParam->convParam();
-	$objPage->arrErr = lfCheckError($objPage->arrData);
-	if (!isset($objPage->arrErr['payment_id'])) {
-		// »ÙÊ§¤¤ÊýË¡¤ÎÆþÎÏ¥¨¥é¡¼¤Ê¤·
-		$objPage->tpl_mainpage = 'shopping/deliv_date.tpl';
-		$objPage->tpl_title = "ÇÛÃ£Æü»þ»ØÄê";
-		break;
-	} else {
-		// ¥æ¡¼¥¶¥æ¥Ë¡¼¥¯ID¤Î¼èÆÀ
-		$uniqid = $objSiteSess->getUniqId();
-		// ¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤«¤é¤Î¾ðÊó¤ò³ÊÇ¼
-		lfSetOrderTempData($uniqid);
-	}
-	break;
-case 'confirm':
-	// ÆþÎÏÃÍ¤ÎÊÑ´¹
-	$objFormParam->convParam();
-	$objPage->arrErr = lfCheckError($objPage->arrData );
-	// ÆþÎÏ¥¨¥é¡¼¤Ê¤·
-	if(count($objPage->arrErr) == 0) {
-		// DB¤Ø¤Î¥Ç¡¼¥¿ÅÐÏ¿
-		lfRegistData($uniqid);
-		// Àµ¾ï¤ËÅÐÏ¿¤µ¤ì¤¿¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯
-		$objSiteSess->setRegistFlag();
-		// ³ÎÇ§¥Ú¡¼¥¸¤Ø°ÜÆ°
-		header("Location: " . gfAddSessionId(MOBILE_URL_SHOP_CONFIRM));
-		exit;
-	}else{
-		// ¥æ¡¼¥¶¥æ¥Ë¡¼¥¯ID¤Î¼èÆÀ
-		$uniqid = $objSiteSess->getUniqId();
-		// ¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤«¤é¤Î¾ðÊó¤ò³ÊÇ¼
-		lfSetOrderTempData($uniqid);
-		if (!isset($objPage->arrErr['payment_id'])) {
-			// »ÙÊ§¤¤ÊýË¡¤ÎÆþÎÏ¥¨¥é¡¼¤Ê¤·
-			$objPage->tpl_mainpage = 'shopping/deliv_date.tpl';
-			$objPage->tpl_title = "ÇÛÃ£Æü»þ»ØÄê";
-		}
-	}
-	break;
-// Á°¤Î¥Ú¡¼¥¸¤ËÌá¤ë
-case 'return':
-	// Èó²ñ°÷¤Î¾ì¹ç
-	// Àµ¾ï¤Ê¿ä°Ü¤Ç¤¢¤ë¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯
-	$objSiteSess->setRegistFlag();
-	header("Location: " . gfAddSessionId(MOBILE_URL_SHOP_TOP));
-	exit;
-	break;
-// »ÙÊ§¤¤ÊýË¡¤¬ÊÑ¹¹¤µ¤ì¤¿¾ì¹ç
-case 'payment':
-	// ¤³¤³¤Îbreak¤Ï¡¢°ÕÌ£¤¬¤¢¤ë¤Î¤Ç³°¤µ¤Ê¤¤¤Ç²¼¤µ¤¤¡£
-	break;
-default:
-	// ¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤«¤é¤Î¾ðÊó¤ò³ÊÇ¼
-	lfSetOrderTempData($uniqid);
-	break;
-}
-
-// Å¹ÊÞ¾ðÊó¤Î¼èÆÀ
-$arrInfo = $objSiteInfo->data;
-// ¹ØÆþ¶â³Û¤Î¼èÆÀÆÀ
-$total_pretax = $objCartSess->getAllProductsTotal($arrInfo);
-// »ÙÊ§¤¤ÊýË¡¤Î¼èÆÀ
-$objPage->arrPayment = lfGetPayment($total_pretax);
-// ÇÛÁ÷»þ´Ö¤Î¼èÆÀ
-$arrRet = sfGetDelivTime($objFormParam->getValue('payment_id'));
-$objPage->arrDelivTime = sfArrKeyValue($arrRet, 'time_id', 'deliv_time');
-$objPage->objCustomer = $objCustomer;
-//¡¡ÇÛÁ÷Æü°ìÍ÷¤Î¼èÆÀ
-$objPage->arrDelivDate = lfGetDelivDate();
-
-$objPage->arrForm = $objFormParam->getFormParamList();
-
-$objView->assignobj($objPage);
-$objView->display(SITE_FRAME);
-//--------------------------------------------------------------------------------------------------------------------------
-/* ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½ */
-function lfInitParam() {
-	global $objFormParam;
-	$objFormParam->addParam("¤ª»ÙÊ§¤¤ÊýË¡", "payment_id", INT_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"));
-	$objFormParam->addParam("¥Ý¥¤¥ó¥È", "use_point", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK", "ZERO_START"));
-	$objFormParam->addParam("ÇÛÃ£»þ´Ö", "deliv_time_id", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK"));
-	$objFormParam->addParam("¤´¼ÁÌä", "message", LTEXT_LEN, "KVa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK"));
-	$objFormParam->addParam("¥Ý¥¤¥ó¥È¤ò»ÈÍÑ¤¹¤ë", "point_check", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK"), '2');
-	$objFormParam->addParam("ÇÛÃ£Æü", "deliv_date", STEXT_LEN, "KVa", array("MAX_LENGTH_CHECK"));
-}
-
-function lfGetPayment($total_pretax) {
-	$objQuery = new SC_Query();
-	$objQuery->setorder("rank DESC");
-	//ºï½ü¤µ¤ì¤Æ¤¤¤Ê¤¤»ÙÊ§ÊýË¡¤ò¼èÆÀ
-	$arrRet = $objQuery->select("payment_id, payment_method, rule, upper_rule, note, payment_image", "dtb_payment", "del_flg = 0 AND deliv_id IN (SELECT deliv_id FROM dtb_deliv WHERE del_flg = 0) ");
-	//ÍøÍÑ¾ò·ï¤«¤é»ÙÊ§²ÄÇ½ÊýË¡¤òÈ½Äê
-	foreach($arrRet as $data) {
-		//²¼¸Â¤È¾å¸Â¤¬ÀßÄê¤µ¤ì¤Æ¤¤¤ë
-		if($data['rule'] > 0 && $data['upper_rule'] > 0) {
-			if($data['rule'] <= $total_pretax && $data['upper_rule'] >= $total_pretax) {
-				$arrPayment[] = $data;
-			}
-		//²¼¸Â¤Î¤ßÀßÄê¤µ¤ì¤Æ¤¤¤ë
-		} elseif($data['rule'] > 0) {	
-			if($data['rule'] <= $total_pretax) {
-				$arrPayment[] = $data;
-			}
-		//¾å¸Â¤Î¤ßÀßÄê¤µ¤ì¤Æ¤¤¤ë
-		} elseif($data['upper_rule'] > 0) {
-			if($data['upper_rule'] >= $total_pretax) {
-				$arrPayment[] = $data;
-			}
-		//ÀßÄê¤Ê¤·
-		} else {
-			$arrPayment[] = $data;
-		}	
-	}
-	return $arrPayment;	
-}
-
-/* ÆþÎÏÆâÍÆ¤Î¥Á¥§¥Ã¥¯ */
-function lfCheckError($arrData) {
-	global $objFormParam;
-	global $objCustomer;
-	// ÆþÎÏ¥Ç¡¼¥¿¤òÅÏ¤¹¡£
-	$arrRet =  $objFormParam->getHashArray();
-	$objErr = new SC_CheckError($arrRet);
-	$objErr->arrErr = $objFormParam->checkError();
-	
-	if($_POST['point_check'] == '1') {
-		$objErr->doFunc(array("¥Ý¥¤¥ó¥È¤ò»ÈÍÑ¤¹¤ë", "point_check"), array("EXIST_CHECK"));
-		$objErr->doFunc(array("¥Ý¥¤¥ó¥È", "use_point"), array("EXIST_CHECK"));
-		$max_point = $objCustomer->getValue('point');
-		if($max_point == "") {
-			$max_point = 0;
-		}
-		if($arrRet['use_point'] > $max_point) {
-			$objErr->arrErr['use_point'] = "¢¨ ¤´ÍøÍÑ¥Ý¥¤¥ó¥È¤¬½ê»ý¥Ý¥¤¥ó¥È¤òÄ¶¤¨¤Æ¤¤¤Þ¤¹¡£<br>";
-		}
-		if(($arrRet['use_point'] * POINT_VALUE) > $arrData['subtotal']) {
-			$objErr->arrErr['use_point'] = "¢¨ ¤´ÍøÍÑ¥Ý¥¤¥ó¥È¤¬¤´¹ØÆþ¶â³Û¤òÄ¶¤¨¤Æ¤¤¤Þ¤¹¡£<br>";
-		}
-	}
-	return $objErr->arrErr;
-}
-
-/* »ÙÊ§¤¤ÊýË¡Ê¸»úÎó¤Î¼èÆÀ */
-function lfGetPaymentInfo($payment_id) {
-	$objQuery = new SC_Query();
-	$where = "payment_id = ?";
-	$arrRet = $objQuery->select("payment_method, charge", "dtb_payment", $where, array($payment_id));
-	return (array($arrRet[0]['payment_method'], $arrRet[0]['charge']));
-}
-
-/* ÇÛÁ÷»þ´ÖÊ¸»úÎó¤Î¼èÆÀ */
-function lfGetDelivTimeInfo($time_id) {
-	$objQuery = new SC_Query();
-	$where = "time_id = ?";
-	$arrRet = $objQuery->select("deliv_id, deliv_time", "dtb_delivtime", $where, array($time_id));
-	return (array($arrRet[0]['deliv_id'], $arrRet[0]['deliv_time']));
-}
-
-/* DB¤Ø¥Ç¡¼¥¿¤ÎÅÐÏ¿ */
-function lfRegistData($uniqid) {
-    
-	global $objFormParam;
-	$arrRet = $objFormParam->getHashArray();
-	$sqlval = $objFormParam->getDbArray();
-	// ÅÐÏ¿¥Ç¡¼¥¿¤ÎºîÀ®
-	$sqlval['order_temp_id'] = $uniqid;
-	$sqlval['update_date'] = 'Now()';
-	
-	if($sqlval['payment_id'] != "") {
-		list($sqlval['payment_method'], $sqlval['charge']) = lfGetPaymentInfo($sqlval['payment_id']);
-	} else {
-		$sqlval['payment_id'] = '0';
-		$sqlval['payment_method'] = "";
-	}
-	
-	if($sqlval['deliv_time_id'] != "") {
-		list($sqlval['deliv_id'], $sqlval['deliv_time']) = lfGetDelivTimeInfo($sqlval['deliv_time_id']);
-	} else {
-		$sqlval['deliv_time_id'] = '0';
-		$sqlval['deliv_id'] = '0';
-		$sqlval['deliv_time'] = "";
-	}
-	
-	// »ÈÍÑ¥Ý¥¤¥ó¥È¤ÎÀßÄê
-	if($sqlval['point_check'] != '1') {
-		$sqlval['use_point'] = 0;
-	}
-	print_r($_POST);
-	sfRegistTempOrder($uniqid, $sqlval);
-   
-}
-
-/* ÇÛÃ£Æü°ìÍ÷¤ò¼èÆÀ¤¹¤ë */
-function lfGetDelivDate() {
-	$objCartSess = new SC_CartSession();
-	$objQuery = new SC_Query();
-	// ¾¦ÉÊID¤Î¼èÆÀ
-	$max = $objCartSess->getMax();
-	for($i = 1; $i <= $max; $i++) {
-		if($_SESSION[$objCartSess->key][$i]['id'][0] != "") {
-			$arrID['product_id'][$i] = $_SESSION[$objCartSess->key][$i]['id'][0];
-		}
-	}
-	if(count($arrID['product_id']) > 0) {
-		$id = implode(",", $arrID['product_id']);
-		//¾¦ÉÊ¤«¤éÈ¯Á÷ÌÜ°Â¤Î¼èÆÀ
-		$deliv_date = $objQuery->get("dtb_products", "MAX(deliv_date_id)", "product_id IN (".$id.")");
-		//È¯Á÷ÌÜ°Â
-		switch($deliv_date) {
-		//Â¨ÆüÈ¯Á÷
-		case '1':
-			$start_day = 1;
-			break;
-		//1-2Æü¸å
-		case '2':
-			$start_day = 3;
-			break;
-		//3-4Æü¸å
-		case '3':
-			$start_day = 5;
-			break;
-		//1½µ´Ö°ÊÆâ
-		case '4':
-			$start_day = 8;
-			break;
-		//2½µ´Ö°ÊÆâ
-		case '5':
-			$start_day = 15;
-			break;
-		//3½µ´Ö°ÊÆâ
-		case '6':
-			$start_day = 22;
-			break;
-		//1¥ö·î°ÊÆâ
-		case '7':
-			$start_day = 32;
-			break;
-		//2¥ö·î°Ê¹ß
-		case '8':
-			$start_day = 62;			
-			break;
-		//¤ª¼è¤ê´ó¤»(¾¦ÉÊÆþ²Ù¸å)
-		case '9':
-			$start_day = "";
-			break;
-		default:
-			//¤ªÆÏ¤±Æü¤¬ÀßÄê¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç
-			$start_day = "";
-			break;
-		}
-		//ÇÛÃ£²ÄÇ½Æü¤Î¥¹¥¿¡¼¥ÈÃÍ¤«¤é¡¢ÇÛÃ£Æü¤ÎÇÛÎó¤ò¼èÆÀ¤¹¤ë
-		$arrDelivDate = lfGetDateArray($start_day, DELIV_DATE_END_MAX);
-	}
-	return $arrDelivDate;
-}
-
-//ÇÛÃ£²ÄÇ½Æü¤Î¥¹¥¿¡¼¥ÈÃÍ¤«¤é¡¢ÇÛÃ£Æü¤ÎÇÛÎó¤ò¼èÆÀ¤¹¤ë
-function lfGetDateArray($start_day, $end_day) {
-	global $arrWDAY;
-	//ÇÛÃ£²ÄÇ½Æü¤Î¥¹¥¿¡¼¥ÈÃÍ¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ì¤Ð
-	if($start_day >= 1) {
-		$now_time = time();
-		$max_day = $start_day + $end_day;
-		// ½¸·×
-		for ($i = $start_day; $i < $max_day; $i++) {
-			// ´ðËÜ»þ´Ö¤«¤éÆü¿ô¤òÄÉ²Ã¤·¤Æ¤¤¤¯
-			$tmp_time = $now_time + ($i * 24 * 3600);
-			list($y, $m, $d, $w) = split(" ", date("y m d w", $tmp_time));	
-			$val = sprintf("%02d/%02d/%02d(%s)", $y, $m, $d, $arrWDAY[$w]);
-			$arrDate[$val] = $val;
-		}
-	} else {
-		$arrDate = false;
-	}
-	return $arrDate;
-}
-
-//°ì»þ¼õÃí¥Æ¡¼¥Ö¥ë¤«¤é¤Î¾ðÊó¤ò³ÊÇ¼¤¹¤ë
-function lfSetOrderTempData($uniqid) {
-	global $objQuery;
-	global $objFormParam;
-	
-	$objQuery = new SC_Query();
-	$col = "payment_id, use_point, deliv_time_id, message, point_check, deliv_date";
-	$from = "dtb_order_temp";
-	$where = "order_temp_id = ?";
-	$arrRet = $objQuery->select($col, $from, $where, array($uniqid));
-	// DBÃÍ¤Î¼èÆÀ
-	$objFormParam->setParam($arrRet[0]);
-	return $objFormParam;
-}
-
-
-?>
Index: /branches/beta/html/test/adachi/PLLagger/pless_release.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/pless_release.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/pless_release.php	(revision 15120)
@@ -0,0 +1,33 @@
+<?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://blog-search.yahoo.co.jp/rss?p=%E3%83%AD%E3%83%83%E3%82%AF%E3%82%AA%E3%83%B3&ei=utf-8',
+                'http://blogsearch.google.co.jp/blogsearch_feeds?hl=ja&q=%E3%83%AD%E3%83%83%E3%82%AF%E3%82%AA%E3%83%B3&lr=lang_ja&ie=utf-8&num=10&output=atom',
+                '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();
+
+?>
Index: /branches/beta/html/test/adachi/PLLagger/PLLagger/Util.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/PLLagger/Util.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/PLLagger/Util.php	(revision 15120)
@@ -0,0 +1,23 @@
+<?php
+
+class PLLagger_Util {
+    public static function log ($corrent_phase, $msg) {
+        echo "[$corrent_phase] " . mb_convert_encoding($msg, 'EUC-JP', 'UTF-8') . "\n";
+    }
+
+    public static function p ($var, $var_dump = true) {
+        echo "++++++++ debug start ++++++++\n";
+
+        if ($var_dump) {
+            var_dump($var);
+        }
+        else {
+            print_r($var);
+        }
+
+        echo "++++++++ debug end ++++++++\n";
+    }
+
+}
+
+?>
Index: /branches/beta/html/test/adachi/PLLagger/PLLagger/Plugin.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/PLLagger/Plugin.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/PLLagger/Plugin.php	(revision 15120)
@@ -0,0 +1,18 @@
+<?php
+
+abstract class PLLagger_Plugin {
+    protected $config;
+    
+    public function __construct ($llr, $config) {
+        $this->config = $config;
+    }
+    
+    abstract public function execute ($llr);
+    
+    protected function get_config () {
+        return $this->config;
+    }
+    
+}
+
+?>
Index: /branches/beta/html/test/adachi/PLLagger/PLLagger/Feed.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/PLLagger/Feed.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/PLLagger/Feed.php	(revision 15120)
@@ -0,0 +1,12 @@
+<?php
+
+require_once('XML/Feed/Parser.php');
+ 
+class PLLagger_Feed extends XML_Feed_Parser {
+    public static function entries2feed ($entries, $feed = null, $feed_info = array()) {
+        $xml = '';
+        return new PLLagger_Feed($xml);
+    }
+}
+
+?>
Index: /branches/beta/html/test/adachi/PLLagger/PLLagger/Plugin/Subscription/Simple.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/PLLagger/Plugin/Subscription/Simple.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/PLLagger/Plugin/Subscription/Simple.php	(revision 15120)
@@ -0,0 +1,33 @@
+<?php
+
+require_once('PLLagger/Plugin.php');
+require_once('PLLagger/Feed.php');
+
+class PLLagger_Plugin_Subscription_Simple extends PLLagger_Plugin {
+    public function execute ($llr) {
+        $config = $this->get_config();
+        $urls   = array();
+        
+        if ( is_array($config['urls']) ) {
+            $urls = $config['urls'];
+        }
+        else {
+            $urls = array($config['urls']);
+        }
+        
+        foreach ( $urls as $url ) {
+            $xml = file_get_contents($url);
+            
+            try {
+                $feed = new PLLagger_Feed($xml);
+                $llr->add_feed($feed);
+                $llr->log("[Subscription_Simple] get $url");
+            }
+            catch ( XML_Feed_Parser_Exception $e ) {
+                $llr->log('[Warning] Feed invalid: ' . $e->getMessage());
+            }
+        }
+    }
+}
+
+?>
Index: /branches/beta/html/test/adachi/PLLagger/PLLagger/Plugin/Filter/SearchEntry2Feed.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/PLLagger/Plugin/Filter/SearchEntry2Feed.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/PLLagger/Plugin/Filter/SearchEntry2Feed.php	(revision 15120)
@@ -0,0 +1,67 @@
+<?php
+
+require_once('PLLagger/Plugin.php');
+
+class PLLagger_Plugin_Filter_SearchEntry2Feed extends PLLagger_Plugin {
+    public function execute ($pll) {
+        $config = $this->get_config();
+        
+        $feeds = $pll->get_feeds();
+        foreach ( $feeds as $feed ) {
+            $hits = array();
+            
+            // because a lot of 'Notice' occured...
+            $err_rep = ini_get('error_reporting');
+            error_reporting(E_ALL ^ E_NOTICE);
+            
+            foreach ( $feed as $entry ) {
+                
+                $pattern = mb_convert_encoding($config['regex'], 'UTF-8', 'EUC-JP, SJIS, UTF-8');
+                if ( preg_match_all($pattern , $entry->title, $matches) ) {
+                    $hits[] = $entry;
+                    //$pll->log(mb_convert_encoding($feed->title,  'EUC-JP', 'UTF-8')
+                    //         . ':' . mb_convert_encoding($entry->title, 'EUC-JP', 'UTF-8'));
+                }
+            }
+            
+            error_reporting($err_rep);
+            
+            $count = count($hits);
+            $pll->log('[Filter_SearchEntry2Feed] ' . $feed->title . " : $count entries hit");
+            
+            if ( $count > 0 ) {
+                $pll->update_feed($this->create_feed($pll, $feed, $hits));
+            }
+        }
+    }
+    
+    private function create_feed ($pll, $feed, $entries) {
+        return ;
+        $output = "<?xml version=\"1.0\"?>
+                    <rss version=\"2.0\">
+                        <channel>
+                            <title>{$feed->title}</title>
+                            <link>http://www.tracypeterson.com/RSS/RSS.php</link>
+                            <description>$feed->description</description>
+                            <language>$feed->language</language>
+                            <pubDate>$feed->date</pubDate>
+                            <lastBuildDate>$feed->lastBuildDate</lastBuildDate>
+                            <docs>http://someurl.com</docs>
+                            <managingEditor>you@youremail.com</managingEditor>
+                            <webMaster>you@youremail.com</webMaster>
+                    ";
+                    
+        foreach ($entries as $entry)
+        {
+            $output .= "<item><title>" . $entry->title . "</title>
+                            <link>" . $entry->link . "</link>
+                            
+        <description>".htmlentities(strip_tags($line['description']))."</description>
+                        </item>";
+        }
+        
+        return new PLLagger_Feed($output);
+    }
+}
+
+?>
Index: /branches/beta/html/test/adachi/PLLagger/PLLagger/Plugin/Publish/Debug.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/PLLagger/Plugin/Publish/Debug.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/PLLagger/Plugin/Publish/Debug.php	(revision 15120)
@@ -0,0 +1,12 @@
+<?php
+
+require_once('PLLagger/Plugin.php');
+
+class PLLagger_Plugin_Publish_Debug extends PLLagger_Plugin {
+    public function execute ($llr) {
+        $config = $this->get_config();
+        //$llr->p($llr->get_feeds());
+    }
+}
+
+?>
Index: /branches/beta/html/test/adachi/PLLagger/PLLagger.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/PLLagger.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/PLLagger.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/errors.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/errors.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/errors.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/atomValues.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/atomValues.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/atomValues.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convert-tests.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convert-tests.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convert-tests.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/rss091Values.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/rss091Values.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/rss091Values.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/rss092Values.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/rss092Values.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/rss092Values.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/atomEntryOnly.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/atomEntryOnly.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/atomEntryOnly.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/accessTypes.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/accessTypes.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/accessTypes.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/encoding.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/encoding.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/encoding.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/sanitize.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/sanitize.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/sanitize.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/itunes.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/itunes.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/itunes.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/rss.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/rss.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/rss.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/base.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/base.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/base.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/rdf.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/rdf.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/rdf.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/cdf.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/cdf.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/cdf.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/namespace.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/namespace.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/namespace.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/amp.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/amp.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/amp.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/date.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/date.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/date.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/http.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/http.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/http.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/atom.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/atom.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/atom.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/atom10.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/atom10.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/atom10.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/feedburner.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/feedburner.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/feedburner.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/lang.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/lang.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/convertedtests/lang.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/japanese.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/japanese.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/japanese.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/XML_Feed_Parser_TestCase.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/XML_Feed_Parser_TestCase.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/XML_Feed_Parser_TestCase.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/atomCompliance.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/atomCompliance.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/atomCompliance.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/iteration.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/iteration.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/iteration.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/farsi.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/farsi.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/farsi.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/rss1Values.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/rss1Values.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/rss1Values.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/rss2Values.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/rss2Values.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/rss2Values.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/tidy.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/tidy.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/tests/tidy.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/schemas/rss10.rnc
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/schemas/rss10.rnc	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/schemas/rss10.rnc	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/schemas/rss11.rnc
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/schemas/rss11.rnc	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/schemas/rss11.rnc	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/schemas/atom.rnc
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/schemas/atom.rnc	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/schemas/atom.rnc	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/rss092-sample.xml
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/rss092-sample.xml	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/rss092-sample.xml	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/rss10-example1.xml
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/rss10-example1.xml	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/rss10-example1.xml	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/delicious.feed
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/delicious.feed	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/delicious.feed	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/rss10-example2.xml
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/rss10-example2.xml	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/rss10-example2.xml	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/grwifi-atom.xml
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/grwifi-atom.xml	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/grwifi-atom.xml	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/rss091-simple.xml
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/rss091-simple.xml	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/rss091-simple.xml	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/rss2sample.xml
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/rss2sample.xml	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/rss2sample.xml	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/illformed_atom10.xml
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/illformed_atom10.xml	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/illformed_atom10.xml	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/hoder.xml
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/hoder.xml	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/hoder.xml	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/atom10-entryonly.xml
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/atom10-entryonly.xml	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/atom10-entryonly.xml	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/sixapart-jp.xml
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/sixapart-jp.xml	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/sixapart-jp.xml	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/technorati.feed
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/technorati.feed	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/technorati.feed	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/rss091-international.xml
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/rss091-international.xml	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/rss091-international.xml	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/rss091-complete.xml
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/rss091-complete.xml	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/rss091-complete.xml	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/atom10-example1.xml
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/atom10-example1.xml	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/atom10-example1.xml	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/atom10-example2.xml
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/atom10-example2.xml	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/atom10-example2.xml	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/flickr.feed
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/flickr.feed	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/samples/flickr.feed	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/Atom.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/Atom.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/Atom.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/RSS09.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/RSS09.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/RSS09.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/Type.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/Type.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/Type.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/RSS1Element.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/RSS1Element.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/RSS1Element.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/RSS11Element.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/RSS11Element.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/RSS11Element.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/RSS2Element.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/RSS2Element.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/RSS2Element.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/RSS1.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/RSS1.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/RSS1.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/RSS11.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/RSS11.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/RSS11.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/RSS2.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/RSS2.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/RSS2.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/AtomElement.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/AtomElement.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/AtomElement.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/RSS09Element.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/RSS09Element.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/RSS09Element.php	(revision 15120)
@@ -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/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/Exception.php
===================================================================
--- /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/Exception.php	(revision 15120)
+++ /branches/beta/html/test/adachi/PLLagger/Lib/XML/Feed/Parser/Exception.php	(revision 15120)
@@ -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/beta/html/test/kakinaka/zero/96089PC_sample.html
===================================================================
--- /branches/beta/html/test/kakinaka/zero/96089PC_sample.html	(revision 15120)
+++ /branches/beta/html/test/kakinaka/zero/96089PC_sample.html	(revision 15120)
@@ -0,0 +1,19 @@
+<HTML>
+<HEAD><TITLE>Zero Secure Payment Gateway</TITLE></HEAD>
+<BODY>
+
+
+<FORM METHOD="POST" ACTION="https://credit.zeroweb.ne.jp/cgi-bin/order.cgi?orders" TARGET="_top">
+<INPUT TYPE="hidden" NAME="clientip" VALUE="96089">
+<INPUT TYPE="hidden" NAME="send" VALUE="jpall">
+<INPUT TYPE="hidden" NAME="custom" VALUE="yes">
+<INPUT TYPE="hidden" NAME="money" VALUE="10">
+<INPUT TYPE="hidden" NAME="sendid" VALUE="">
+<INPUT TYPE="hidden" NAME="sendpoint" VALUE="">
+
+<INPUT TYPE="submit" VALUE="Ïy[WÖ">
+</FORM>
+
+
+</BODY>
+</HTML>
Index: /branches/beta/html/test/kakinaka/zero/96088MOBILE_sample.html
===================================================================
--- /branches/beta/html/test/kakinaka/zero/96088MOBILE_sample.html	(revision 15120)
+++ /branches/beta/html/test/kakinaka/zero/96088MOBILE_sample.html	(revision 15120)
@@ -0,0 +1,23 @@
+<HTML>
+<HEAD><TITLE>Zero Secure Payment Gateway</TITLE></HEAD>
+<BODY>
+
+
+<FORM METHOD="POST" ACTION="https://credit.zeroweb.ne.jp/cgi-bin/order.cgi" TARGET="_top">
+<INPUT TYPE="hidden" NAME="clientip" value="96088">
+<INPUT TYPE="hidden" NAME="act" VALUE="imode">
+<INPUT TYPE="hidden" NAME="money" VALUE="10">
+<INPUT TYPE="hidden" NAME="usrtel" VALUE="09052517961">
+<INPUT TYPE="hidden" NAME="usrmail" VALUE="atamamushi-pingpong@docomo.ne.jp">
+<INPUT TYPE="hidden" NAME="sendid" VALUE="4299528479576111">
+<INPUT TYPE="hidden" NAME="sendpoint" VALUE="">
+
+<INPUT TYPE="hidden" NAME="siteurl" VALUE="">
+<INPUT TYPE="hidden" NAME="sitestr" VALUE="">
+
+<INPUT TYPE="submit" VALUE="??????">
+</FORM>
+
+
+</BODY>
+</HTML>
Index: /branches/beta/html/shopping/confirm.php
===================================================================
--- /branches/beta/html/shopping/confirm.php	(revision 14890)
+++ /branches/beta/html/shopping/confirm.php	(revision 15120)
@@ -112,4 +112,7 @@
     $arrData['session'] = serialize($_SESSION);
     	
+    // ¥»¥Ã¥·¥ç¥ó¾ðÊó¤òÊÝ»ý
+    $arrData['session'] = serialize($_SESSION);
+    
 	// ½¸·×·ë²Ì¤ò¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤ËÈ¿±Ç
 	sfRegistTempOrder($uniqid, $arrData);
Index: /branches/beta/html/shopping/complete.php
===================================================================
--- /branches/beta/html/shopping/complete.php	(revision 15056)
+++ /branches/beta/html/shopping/complete.php	(revision 15120)
@@ -40,4 +40,5 @@
 $arrInfo = $objSiteInfo->data;
 $objCustomer = new SC_Customer();
+$order_id = '';
 
 // Á°¤Î¥Ú¡¼¥¸¤ÇÀµ¤·¤¯ÅÐÏ¿¼êÂ³¤­¤¬¹Ô¤ï¤ì¤¿¤«È½Äê
Index: /branches/beta/html/admin/basis/template_input.php
===================================================================
--- /branches/beta/html/admin/basis/template_input.php	(revision 14676)
+++ /branches/beta/html/admin/basis/template_input.php	(revision 15120)
@@ -48,5 +48,4 @@
 	// ¿·µ¬ÅÐÏ¿
 	$objPage->arrForm = lfConvData( $_POST );
-	//print_r($objPage->arrForm);print("<br>");
     $objPage->arrErr = lfErrorCheck($objPage->arrForm);
 	
@@ -54,5 +53,4 @@
 		// ¥¨¥é¡¼¤¬Ìµ¤¤¤È¤­¤ÏÅÐÏ¿¡¦ÊÔ½¸
 		lfRegistData( $objPage->arrForm, $_POST['template_id']);	
-		//sfReload("mode=complete");	// ¼«Ê¬¤òºÆÆÉ¹þ¤·¤Æ¡¢´°Î»²èÌÌ¤ØÁ«°Ü
 	}
 } 
Index: /branches/beta/html/admin/products/upload_csv.php
===================================================================
--- /branches/beta/html/admin/products/upload_csv.php	(revision 14924)
+++ /branches/beta/html/admin/products/upload_csv.php	(revision 15120)
@@ -305,4 +305,13 @@
         }
 		$sqlval['product_id'] = $product_id;
+		// ¿·µ¬ÅÐÏ¿
+        // postgresql¤Èmysql¤È¤Ç½èÍý¤òÊ¬¤±¤ë
+        if (DB_TYPE == "pgsql") {
+            $product_id = $objQuery->nextval("dtb_products","product_id");
+        }elseif (DB_TYPE == "mysql") {
+            $product_id = $objQuery->get_auto_increment("dtb_products");
+        }
+        
+        $sqlval['product_id'] = $product_id;
 		$sqlval['create_date'] = $time;
 		
Index: /branches/beta/html/admin/system/resize_image.php
===================================================================
--- /branches/beta/html/admin/system/resize_image.php	(revision 15120)
+++ /branches/beta/html/admin/system/resize_image.php	(revision 15120)
@@ -0,0 +1,37 @@
+<?php
+
+require_once("../../require.php");
+
+$file = NO_IMAGE_DIR;
+
+// NO_IMAGE_DIR°Ê³°¤Î¥Õ¥¡¥¤¥ëÌ¾¤¬ÅÏ¤µ¤ì¤¿¾ì¹ç¡¢¥Õ¥¡¥¤¥ëÌ¾¤Î¥Á¥§¥Ã¥¯¤ò¹Ô¤¦
+if ( isset($_GET['image']) && $_GET['image'] !== NO_IMAGE_DIR) {
+    
+    // ¥Õ¥¡¥¤¥ëÌ¾¤¬Àµ¤·¤¤¾ì¹ç¤À¤±¡¢$file¤òÀßÄê
+    if ( lfCheckFileName() === true ) {
+        $file = MODULE_PATH . $_GET['image'];
+    } else {
+        gfPrintLog('invalid access :resize_image.php $_GET["image"]=' . $_GET['image']);
+    }
+}
+
+$objThumb = new gdthumb();
+
+if(file_exists($file)){
+    $objThumb->Main($file, $_GET["width"], $_GET["height"], "", true);
+}else{
+    $objThumb->Main(NO_IMAGE_DIR, $_GET["width"], $_GET["height"], "", true);
+}
+
+// ¥Õ¥¡¥¤¥ëÌ¾¤Î·Á¼°¤ò¥Á¥§¥Ã¥¯
+function lfCheckFileName() {
+    $pattern = '|^mdl_icons/icon_[a-zA-Z0-9_]+?\.[a-z]{3}$|';
+    $file    = trim($_GET["image"]);
+    if ( preg_match($pattern, $file) ) {
+        return true;
+    } else {
+        return false;
+    }
+}
+
+?>
Index: /branches/beta/html/admin/system/module.php
===================================================================
--- /branches/beta/html/admin/system/module.php	(revision 14676)
+++ /branches/beta/html/admin/system/module.php	(revision 15120)
@@ -61,5 +61,5 @@
 //-------------------------------------------------------------------------------------------------------
 // ¹¹¿·¥Õ¥¡¥¤¥ë¤Î¼èÆÀ
-function lfCopyUpdateFile($file) {
+function lfCopyUpdateFile($file, $icon = false) {
 	global $objPage;
 	
@@ -93,5 +93,7 @@
 		}
 	}
-	
+    
+	if($icon === true) return $flg_ok;
+    
 	if($flg_ok) {
 		$objPage->update_mess.= ">> " . $dst_path . "¡§¥³¥Ô¡¼À®¸ù<br>";
@@ -171,4 +173,6 @@
 					$sqlval['module_x'] = $arrCSV[14];
 					$sqlval['module_y'] = $arrCSV[15];
+                    $sqlval['icon'] = $arrCSV[16];
+                    $sqlval['url'] = $arrCSV[17];
 					// ¥â¥¸¥å¡¼¥ë¤¬ÂÐ±þ¤·¤Æ¤¤¤ëËÜÂÎ¤Î¥Ð¡¼¥¸¥ç¥ó
 					$sqlval['eccube_version'] = $arrCSV[13];					
@@ -183,4 +187,8 @@
 						$objQuery->insert("dtb_module", $sqlval);
 					}
+                    // ¥¢¥¤¥³¥ó¥Õ¥¡¥¤¥ë¤Î¥À¥¦¥ó¥í¡¼¥É
+                    if ( !empty($arrCSV[16]) ) {
+                        lfCopyUpdateFile($arrCSV[16], true);
+                    }
 			} else {
 				sfErrorHeader(">> ¥«¥é¥à¿ô¤¬°ìÃ×¤·¤Þ¤»¤ó¡£¡§".count($arrCSV));
@@ -228,5 +236,5 @@
 		sfErrorHeader(">> ÂÐ¾Ý¤Îµ¡Ç½¤Ï¡¢ÇÛÉÛ¤ò½ªÎ»¤·¤Æ¤ª¤ê¤Þ¤¹¡£");
 		$flg_ok = false;
-	}
+	} 
 	
 	// É¬Í×¤ÊSQLÊ¸¤Î¼Â¹Ô
@@ -250,7 +258,8 @@
 	}
 	
-	if($flg_ok) {		
+	if($flg_ok) {
 		$path = MODULE_PATH . $arrRet[0]['extern_php'];
 		$sqlval['now_version'] = sfGetFileVersion($path);
+        
 		$sqlval['update_date'] = "now()";
 		$objQuery->update("dtb_module", $sqlval, "module_id = ?", array($arrRet[0]['module_id']));
Index: /branches/beta/html/require.php
===================================================================
--- /branches/beta/html/require.php	(revision 14676)
+++ /branches/beta/html/require.php	(revision 15120)
@@ -5,5 +5,4 @@
  * http://www.lockon.co.jp/
  */
- 
 $include_dir = realpath(dirname( __FILE__));
 require_once($include_dir . "/define.php");
Index: /branches/beta/data/Smarty/templates/forgot/complete.tpl
===================================================================
--- /branches/beta/data/Smarty/templates/forgot/complete.tpl	(revision 17)
+++ /branches/beta/data/Smarty/templates/forgot/complete.tpl	(revision 15120)
@@ -1,72 +1,145 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html lang="ja">
-<!--{*
- * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
- *
- * http://www.lockon.co.jp/
- *}-->
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=<!--{$smarty.const.CHAR_CODE}-->">
-<meta http-equiv="content-script-type" content="text/javascript">
-<meta http-equiv="content-style-type" content="text/css">
-<link rel="stylesheet" href="<!--{$smarty.const.URL_DIR}-->user_data/css/contents.css" type="text/css" media="all" />
-<link rel="stylesheet" href="<!--{$smarty.const.URL_DIR}-->css/common.css" type="text/css" media="all" />
-<link rel="stylesheet" href="<!--{$tpl_css}-->" type="text/css" media="all" />
-<script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/css.js"></script>
-<script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/navi.js"></script>
-<script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/win_op.js"></script>
-<script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/site.js"></script>
-<title><!--{$arrSiteInfo.shop_name}-->/¥Ñ¥¹¥ï¡¼¥É¤òËº¤ì¤¿Êý(´°Î»¥Ú¡¼¥¸)</title>
-</head>
+<table id="contact">
+<tr><td>
+<!-- wrapper -->
+<div id="wrapper">
+  <!-- wrapper-inner -->
+  <div id="wrapper-inner">
+    <!-- contents -->
+    <div id="contents">
+      <!-- breadcrumb -->
+      <div class="breadcrumb">
+        <ul>
+          <li><a href="../index.html">Home</a></li>
+          <li>&gt;&nbsp;¥Ñ¥¹¥ï¡¼¥É¤òËº¤ì¤¿Êý</li>
+        </ul>
+      </div>
+      <!-- /breadcrumb -->
+      <h2><img src="<!--{$smarty.const.URL_DIR}-->img/contact/h2_sendpwd.gif" alt="Send Password¡Ã¥Ñ¥¹¥ï¡¼¥É¤òËº¤ì¤¿Êý" width="800" height="180" /></h2>
+      <!-- oneColumn -->
+      <div id="oneColumn">
+        <!-- columnB -->
+        <div class="columnB">
+          <h3><img src="<!--{$smarty.const.URL_DIR}-->img/contact/h3_complete.gif" alt="Complete" width="110" height="23" /></h3>
+          <br />
+          <h4><img src="<!--{$smarty.const.URL_DIR}-->img/contact/h4_pwd.gif" alt="¥Ñ¥¹¥ï¡¼¥É¤ÎÁ÷¿®¤¬´°Î»¤·¤Þ¤·¤¿¡£" width="188" height="14" /></h4>
+          <p>¤´µ­ÆþÄº¤­¤Þ¤·¤¿E¥á¡¼¥ë¥¢¥É¥ì¥¹¤Ø¡¢¿·¤·¤¤¥Ñ¥¹¥ï¡¼¥É¤òÁ÷¿®¤·¤Þ¤·¤¿¡£¤´³ÎÇ§¤¯¤À¤µ¤¤¡£</p>
+          <p><a href="../index.html"><img class="rollover" src="<!--{$smarty.const.URL_DIR}-->img/contact/btn_home.gif" alt="HOME" width="161" height="21" /></a></p>
+        </div>
+        <!-- /columnB -->
+        <br />
+        <br />
+        <br />
+      </div>
+      <!-- /oneColumn -->
+      <hr class="solidGray2" />
+      <!-- breadcrumb -->
+      <div class="breadcrumb">
+        <ul>
+          <li><a href="../index.html">Home</a></li>
+          <li>&gt;&nbsp;¥Ñ¥¹¥ï¡¼¥É¤òËº¤ì¤¿Êý</li>
+        </ul>
+      </div>
+      <!-- /breadcrumb -->
+    </div>
+    <!-- /contents -->
+    <p class="pagetop"><a href="#wrapper"><img class="rollover" src="<!--{$smarty.const.URL_DIR}-->img/common/btn_pagetop_wh.gif" alt="Page Top" width="50" height="16" /></a></p>
+  </div>
+  <!-- /wrapper-inner -->
+  <!-- cart -->
+  <div id="cart">
+    <dl class="first">
+      <dt><img src="<!--{$smarty.const.URL_DIR}-->img/common/cart_nickname.gif" alt="Nickname" width="65" height="5" /><br />
+        AKIHIRO</dt>
+    </dl>
+    <dl class="last">
+      <dt class="first"><img src="<!--{$smarty.const.URL_DIR}-->img/common/cart_item.gif" alt="Item" width="65" height="5" /><br />
+        02</dt>
+      <dt><img src="<!--{$smarty.const.URL_DIR}-->img/common/cart_subtotal.gif" alt="Subtotal" width="65" height="5" /><br />
+        53,400yen</dt>
+    </dl>
+    <div id="userTraffic">
+      <ul>
+        <li class="cart-view"><a href="index.html">View Cart</a></li>
+        <li class="cart-logout"><a href="index.html">Log Out</a></li>
+      </ul>
+    </div>
+    <p><a href="">My Page</a></p>
+  </div>
+  <!-- /cart -->
+</div>
+<!-- /wrapper -->
+</td></tr>
+</table>
 
-<body bgcolor="#f0f0f0" text="#555555" link="#3a75af" vlink="#3a75af" alink="#3a75af" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="preLoadImg('<!--{$smarty.const.URL_DIR}-->')">
-<noscript>
-<link rel="stylesheet" href="../css/common.css" type="text/css" />
-</noscript>
-
-<div align="center">
-<table width="550" border="0" cellspacing="0" cellpadding="0" summary=" ">
-	<form name="form1" id="form1" method="post" action="./confirm.php">
-	<tr><td height="15"></td></tr>
-	<tr><td bgcolor="#ffa85c"><img src="<!--{$smarty.const.URL_DIR}-->misc/_.gif" width="1" height="5" alt=""></td></tr>
-	<tr>
-		<td align="center" bgcolor="#ffffff">
-		<table width="500" border="0" cellspacing="0" cellpadding="0" summary=" ">
-			<tr><td height="15"></td></tr>
-			<tr>
-				<td><img src="<!--{$smarty.const.URL_DIR}-->img/forget/title.jpg" width="500" height="40" alt="¥Ñ¥¹¥ï¡¼¥É¤òËº¤ì¤¿Êý"></td>
-			</tr>
-			<tr><td height="15"></td></tr>
-			<tr>
-				<td class="fs12">¥Ñ¥¹¥ï¡¼¥É¤ÎÈ¯¹Ô¤¬´°Î»¤¤¤¿¤·¤Þ¤·¤¿¡£¥í¥°¥¤¥ó¤Ë¤Ï²¼µ­¤Î¥Ñ¥¹¥ï¡¼¥É¤ò¤´ÍøÍÑ¤¯¤À¤µ¤¤¡£<br>
-				¢¨²¼µ­¥Ñ¥¹¥ï¡¼¥É¤Ï¡¢MY¥Ú¡¼¥¸¤Î¡Ö²ñ°÷ÅÐÏ¿ÆâÍÆÊÑ¹¹¡×¤è¤ê¤´ÊÑ¹¹¤¤¤¿¤À¤±¤Þ¤¹¡£</td>
-			</tr>
-			<tr><td height="15"></td></tr>
-			<tr>
-				<td align="center" bgcolor="#cccccc">
-				<table width="490" border="0" cellspacing="0" cellpadding="0" summary=" ">
-					<tr><td height="5"></td></tr>
-					<tr>
-						<td align="center" height="120" bgcolor="#ffffff" class="fs18n"><!--¡ú¥Ñ¥¹¥ï¡¼¥ÉÉ½¼¨¡ú--><span class="redst"><!--{$temp_password}--></span></td>
-					</tr>
-					<tr><td height="5"></td></tr>
-				</table>
-				</td>
-			</tr>
-			<tr><td height="15"></td></tr>
-			<tr>
-				<td align="center"><a href="javascript:window.close()" onmouseOver="chgImg('<!--{$smarty.const.URL_DIR}-->img/common/b_close_on.gif','close');" onmouseOut="chgImg('<!--{$smarty.const.URL_DIR}-->img/common/b_close.gif','close');"><img src="<!--{$smarty.const.URL_DIR}-->img/common/b_close.gif" width="150" height="30" alt="ÊÄ¤¸¤ë" name="close" id="close" /></a></td>
-			</tr>
-			<tr><td height="30"></td></tr>
-		</table>			
-		</td>
-	</tr>
-
-	<tr><td bgcolor="#ffa85c"><img src="<!--{$smarty.const.URL_DIR}-->misc/_.gif" width="1" height="5" alt=""></td></tr>
-	<tr><td height="20"></td></tr>
-</form>	
+<table id="contact">
+<tr><td>
+<!-- wrapper -->
+<div id="wrapper">
+  <!-- wrapper-inner -->
+  <div id="wrapper-inner">
+    <!-- contents -->
+    <div id="contents">
+      <!-- breadcrumb -->
+      <div class="breadcrumb">
+        <ul>
+          <li><a href="../index.html">Home</a></li>
+          <li>&gt;&nbsp;¥Ñ¥¹¥ï¡¼¥É¤òËº¤ì¤¿Êý</li>
+        </ul>
+      </div>
+      <!-- /breadcrumb -->
+      <h2><img src="images/h2_sendpwd.gif" alt="Send Password¡Ã¥Ñ¥¹¥ï¡¼¥É¤òËº¤ì¤¿Êý" width="800" height="180" /></h2>
+      <!-- oneColumn -->
+      <div id="oneColumn">
+        <!-- columnB -->
+        <div class="columnB">
+          <h3><img src="images/h3_complete.gif" alt="Complete" width="110" height="23" /></h3>
+          <br />
+          <h4><img src="images/h4_pwd.gif" alt="¥Ñ¥¹¥ï¡¼¥É¤ÎÁ÷¿®¤¬´°Î»¤·¤Þ¤·¤¿¡£" width="188" height="14" /></h4>
+          <p>¤´µ­ÆþÄº¤­¤Þ¤·¤¿E¥á¡¼¥ë¥¢¥É¥ì¥¹¤Ø¡¢¿·¤·¤¤¥Ñ¥¹¥ï¡¼¥É¤òÁ÷¿®¤·¤Þ¤·¤¿¡£¤´³ÎÇ§¤¯¤À¤µ¤¤¡£</p>
+          <p><a href="../index.html"><img class="rollover" src="images/btn_home.gif" alt="HOME" width="161" height="21" /></a></p>
+        </div>
+        <!-- /columnB -->
+        <br />
+        <br />
+        <br />
+      </div>
+      <!-- /oneColumn -->
+      <hr class="solidGray2" />
+      <!-- breadcrumb -->
+      <div class="breadcrumb">
+        <ul>
+          <li><a href="../index.html">Home</a></li>
+          <li>&gt;&nbsp;¥Ñ¥¹¥ï¡¼¥É¤òËº¤ì¤¿Êý</li>
+        </ul>
+      </div>
+      <!-- /breadcrumb -->
+    </div>
+    <!-- /contents -->
+    <p class="pagetop"><a href="#wrapper"><img class="rollover" src="<!--{$smarty.const.URL_DIR}-->img/common/btn_pagetop_wh.gif" alt="Page Top" width="50" height="16" /></a></p>
+  </div>
+  <!-- /wrapper-inner -->
+  <!-- cart -->
+  <div id="cart">
+    <dl class="first">
+      <dt><img src="<!--{$smarty.const.URL_DIR}-->img/common/cart_nickname.gif" alt="Nickname" width="65" height="5" /><br />
+        AKIHIRO</dt>
+    </dl>
+    <dl class="last">
+      <dt class="first"><img src="<!--{$smarty.const.URL_DIR}-->img/common/cart_item.gif" alt="Item" width="65" height="5" /><br />
+        02</dt>
+      <dt><img src="<!--{$smarty.const.URL_DIR}-->img/common/cart_subtotal.gif" alt="Subtotal" width="65" height="5" /><br />
+        53,400yen</dt>
+    </dl>
+    <div id="userTraffic">
+      <ul>
+        <li class="cart-view"><a href="index.html">View Cart</a></li>
+        <li class="cart-logout"><a href="index.html">Log Out</a></li>
+      </ul>
+    </div>
+    <p><a href="">My Page</a></p>
+  </div>
+  <!-- /cart -->
+</div>
+<!-- /wrapper -->
+</td></tr>
 </table>
-</div>
-
-</body>
-</html>
Index: /branches/beta/data/Smarty/templates/mobile/nonmember/nonmember_set3.tpl
===================================================================
--- /branches/beta/data/Smarty/templates/mobile/nonmember/nonmember_set3.tpl	(revision 14676)
+++ /branches/beta/data/Smarty/templates/mobile/nonmember/nonmember_set3.tpl	(revision 15120)
@@ -10,5 +10,5 @@
 <hr>
 	<!--<form name="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->">-->
-	<form name="form1" method="post" action="./deliv.php">
+	<form name="form1" method="post" action="./index.php">
 	<input type="hidden" name="mode" value="nonmember">
 	<input type="hidden" name="mode2" value="deliv">
@@ -42,10 +42,4 @@
 	<input type="text" size="<!--{$size}-->" name="tel03" value="<!--{$tel03|escape}-->" maxlength="<!--{$smarty.const.TEL_ITEM_LEN}-->" istyle="4"><br>
 
-	<!--¡Ú¥á¡¼¥ë¥Þ¥¬¥¸¥ó¡Û<br>
-	¤ªÆÀ¤Ê¾ðÊó¤ò´õË¾¤µ¤ì¤Þ¤¹¤«¡©<br>
-	ÇÛ¿®´õË¾<input type="checkbox" name="mailmaga_flg" value="on" <!--{if $mailmaga_flg eq 'on'}-->checked<!--{/if}--> /><br>
-	¡Ê´õË¾¤µ¤ì¤Ê¤¤¾ì¹ç¤Ï¥Á¥§¥Ã¥¯¤ò¤Ï¤º¤·¤Æ¤¯¤À¤µ¤¤¡Ë<br>
-	<br>-->
-
 	<input type="submit" name="submit" value="¼¡¤Ø"><br>
 	<input type="submit" name="return" value="Ìá¤ë">
Index: /branches/beta/data/Smarty/templates/mobile/nonmember/deliv.tpl
===================================================================
--- /branches/beta/data/Smarty/templates/mobile/nonmember/deliv.tpl	(revision 14676)
+++ /branches/beta/data/Smarty/templates/mobile/nonmember/deliv.tpl	(revision 15120)
@@ -19,9 +19,6 @@
 <input type="hidden" name="uniqid" value="<!--{$tpl_uniqid}-->">
 <input type="hidden" name="deli" value="<!--{$smarty.section.cnt.iteration}-->">
-<!--{if $smarty.section.cnt.first}-->
 <input type="hidden" name="mode" value="customer_addr">
-<input type="hidden" name="other_deliv_id" value="">
-<!--{else}-->
-<input type="hidden" name="mode" value="other_addr">
+
 <input type="hidden" name="other_deliv_id" value="<!--{$arrAddr[cnt].other_deliv_id}-->">
 <!--{/if}-->
@@ -40,4 +37,5 @@
 ¢£¤½¤ÎÂ¾¤Î¤ªÆÏ¤±Àè¤ò»ØÄê<br>
 <form method="get" action="deliv_addr.php">
+<input type="hidden" name="mode" value="other_addr">
 <center><input type="submit" value="¿·µ¬ÅÐÏ¿"></center>
 </form>
Index: /branches/beta/data/Smarty/templates/mobile/nonmember/deliv_addr.tpl
===================================================================
--- /branches/beta/data/Smarty/templates/mobile/nonmember/deliv_addr.tpl	(revision 14676)
+++ /branches/beta/data/Smarty/templates/mobile/nonmember/deliv_addr.tpl	(revision 15120)
@@ -44,5 +44,5 @@
 
 	<div align="center"><input type="submit" name="submit" value="¼¡¤Ø"></div>
-	<!--<div align="center"><input type="submit" name="return" value="Ìá¤ë"></div>-->
+	<div align="center"><input type="submit" name="return" value="Ìá¤ë"></div>
 
 	<!--{foreach from=$list_data key=key item=item}-->
Index: /branches/beta/data/Smarty/templates/mobile/nonmember/payment.tpl
===================================================================
--- /branches/beta/data/Smarty/templates/mobile/nonmember/payment.tpl	(revision 14676)
+++ /branches/beta/data/Smarty/templates/mobile/nonmember/payment.tpl	(revision 15120)
@@ -32,5 +32,5 @@
 
 <center><input type="submit" value="¼¡¤Ø"></center>
-<!--<center><input type="submit" name="return" value="Ìá¤ë"></center>-->
+<center><input type="submit" name="return" value="Ìá¤ë"></center>
 </form>
 
Index: /branches/beta/data/Smarty/templates/admin/system/module.tpl
===================================================================
--- /branches/beta/data/Smarty/templates/admin/system/module.tpl	(revision 17)
+++ /branches/beta/data/Smarty/templates/admin/system/module.tpl	(revision 15120)
@@ -52,14 +52,24 @@
 								<table width="678" border="0" cellspacing="1" cellpadding="4" summary=" ">
 									<tr bgcolor="#f2f1ec" align="center" class="fs12n">
-										<td width="170">µ¡Ç½Ì¾</td>
-										<td width="300">ÀâÌÀ</td>
-										<td width="50">¸½¾õ</td>										
-										<td width="50">ºÇ¿·</td>										
-										<td width="80">¥ê¥ê¡¼¥¹Æü</td>
-										<td width="50">ÀßÄê</td>
-										<td width="50">¼Â¹Ô</td>
+										<td width="50">¥í¥´</td>
+										<td width="160">µ¡Ç½Ì¾</td>
+										<td width="290">ÀâÌÀ</td>
+										<td width="45">¸½¾õ</td>
+										<td width="45">ºÇ¿·</td>
+										<td width="70">¥ê¥ê¡¼¥¹Æü</td>
+										<td width="45">ÀßÄê</td>
+										<td width="45">¼Â¹Ô</td>
 									</tr>
 									<!--{section name=cnt loop=$arrUpdate}-->
 									<tr bgcolor="#ffffff" class="fs12">
+										<!--{if $arrUpdate[cnt].url}-->
+										<td align="center">
+										<a href="<!--{$arrUpdate[cnt].url}-->" target="_blank"><img src="resize_image.php?image=<!--{$arrUpdate[cnt].icon}-->&width=50&height=50"></a>
+										</td>
+										<!--{else}-->
+										<td align="center">
+										<img src="resize_image.php?image=<!--{$arrUpdate[cnt].icon}-->&width=50&height=50">
+										</td>
+										<!--{/if}-->
 										<td ><!--{$arrUpdate[cnt].module_name}--></td>
 										<td ><!--{$arrUpdate[cnt].module_explain}-->(<!--{$arrUpdate[cnt].eccube_version}-->°Ê¹ß¤ËÂÐ±þ)</td>
Index: /branches/beta/data/Smarty/templates/admin/basis/template.tpl
===================================================================
--- /branches/beta/data/Smarty/templates/admin/basis/template.tpl	(revision 14676)
+++ /branches/beta/data/Smarty/templates/admin/basis/template.tpl	(revision 15120)
@@ -63,5 +63,5 @@
 										<td width="40" align="center"><a href="./mail.php?mode=edit&template_id=<!--{$list_data[data].template_id}-->">ÊÔ½¸</a></td>
 										<td width="40" align="center">
-										<!--{if $list_data[data].template_id > 1}-->
+										<!--{if $list_data[data].template_id > 2}-->
 										<a href="" onclick="fnDelete('<!--{$smarty.server.PHP_SELF|escape}-->?mode=delete&id=<!--{$list_data[data].template_id}-->'); return false;">ºï½ü</a>
 										<!--{else}-->(¸ÇÄê)<!--{/if}-->
Index: /branches/beta/data/Smarty/templates/admin/basis/mail.tpl
===================================================================
--- /branches/beta/data/Smarty/templates/admin/basis/mail.tpl	(revision 14676)
+++ /branches/beta/data/Smarty/templates/admin/basis/mail.tpl	(revision 15120)
@@ -107,13 +107,10 @@
 										<td bgcolor="#ffffff">
 										<!--{assign var=key value="send_type"}-->
-										<!--{if $arrForm.template_id > 1}-->
-										<!--{html_radios_ex name="send_type" options=$arrSendType separator="&nbsp;" selected=$arrForm[$key]}-->
+										<!--{if $arrForm.template_id == 1}-->
+											<input type="radio" name="send_type" value="0" id="send_type_0" checked="checked" /><label for="send_type_0">¥Ñ¥½¥³¥ó</label>&nbsp;
+										<!--{elseif $arrForm.template_id == 2}-->
+											<input type="radio" name="send_type" value="1" id="send_type_1" checked="checked" /><label for="send_type_1">·ÈÂÓ</label>&nbsp;
 										<!--{else}-->
-											<!--{if $arrForm.template_id=='0'}-->
-											<input type="radio" name="send_type" value="0" id="send_type_0" checked="checked" /><label for="send_type_0">¥Ñ¥½¥³¥ó</label>&nbsp;
-											<!--{else}-->
-											<input type="radio" name="send_type" value="1" id="send_type_1" checked="checked" /><label for="send_type_1">·ÈÂÓ</label>&nbsp;
-											<!--{/if}-->
-											<!--{* <!--{html_radios_ex name="send_type" options=$arrSendType separator="&nbsp;" selected=$arrForm[$key]}--> *}-->
+											<!--{html_radios_ex name="send_type" options=$arrSendType separator="&nbsp;" selected=$arrForm[$key]}-->
 										<!--{/if}-->
 										</td>
Index: /branches/beta/data/include/module.inc
===================================================================
--- /branches/beta/data/include/module.inc	(revision 8)
+++ /branches/beta/data/include/module.inc	(revision 15120)
@@ -1,9 +1,9 @@
 <?php
 
-// ¥¿¥°½ÐÎÏÍÑ¥¯¥é¥¹
+// ¥¨¥Ó¥¹¥¿¥°½ÐÎÏÍÑ¥¯¥é¥¹
 class LC_EbisPage {
-	function LC_EbisPage() {
-		$this->tpl_mainpage = MODULE_PATH . "ebis_tag_text.tpl";
-	}
+    function LC_EbisPage() {
+        $this->tpl_mainpage = MODULE_PATH . "mdl_ebis_tag/ebis_tag_text.tpl";
+    }
 }
 
@@ -11,19 +11,14 @@
 function sfPrintEbisTag($pid = "") {
 	$objQuery = new SC_Query();
-	$arrRet = $objQuery->select("sub_data", "dtb_module", "module_id = ?", array(EBIS_TAG_MID));
+	$arrRet   = $objQuery->select("sub_data", "dtb_module", "module_id = ?", array(EBIS_TAG_MID));
 	$arrSubData = unserialize($arrRet[0]['sub_data']);
-	$arrEbis = array();
-	
-	if($arrSubData['cid'] != "") {
-		$arrEbis['cid'] = $arrSubData['cid'];
-	} else {
-		return;
-	}
-	
-	// ¡Ö/¡×¤¬½ÅÊ£¤·¤Æ¤¤¤ë¤â¤Î¤Ø¤ÎÂÐ±þ
-	$php_self = ereg_replace("[/]+", "/", $_SERVER['PHP_SELF']);
-	// PHP¥Õ¥¡¥¤¥ë¤Î¸å¤í¤Ë¡Ö/¡×¤¬¤Ä¤¤¤Æ¤·¤Þ¤Ã¤Æ¤¤¤ë¤â¤Î¤Ø¤ÎÂÐ±þ
-	$php_self = ereg_replace(".php[/]+$", ".php", $php_self);
-	
+    
+    if ( empty($arrSubData['cid']) ) return;
+    
+    $arrEbis = array(
+        'cid'       => $arrSubData['cid'],
+        'login_url' => $arrSubData['login_url'],
+    );
+    
 	if(!is_array($pid) && $pid != "") {
 		if(!ereg(".tpl$", $pid)) {
@@ -32,8 +27,9 @@
 		} else {
 			// ¥Æ¥ó¥×¥ì¡¼¥È¤Î¥Ñ¥¹¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤ë¾ì¹ç
-			$temp_id = ereg_replace(HTML_PATH,"",$pid);			
-			$temp_id = ereg_replace("^[/]+","",$temp_id);
-			$temp_id = ereg_replace(".tpl$","",$temp_id);
-			$temp_id = ereg_replace("[\./]","_",$temp_id);
+            $temp_id = str_replace(USER_TEMPLATE_PATH, '', $pid);
+            $temp_id = str_replace(HTML_PATH,   '',  $temp_id);
+            $temp_id = preg_replace('|^/+|',    '',  $temp_id);
+            $temp_id = preg_replace('|\.tpl$|', '',  $temp_id);
+            $temp_id = preg_replace('|[\./]|',  '_', $temp_id);
 			$arrEbis['pid'] = $temp_id;
 		}
@@ -51,5 +47,8 @@
 		$arrEbis['pid'] = ereg_replace("detail.php\?product_id=", "detail-p", $filename);
 	}
-	
+
+    // ¹ØÆþ´°Î»¥Ú¡¼¥¸(thanks¥Ú¡¼¥¸)¤ÏÆÃ¼ìID¤òÈ¯¹Ô
+    lfSetThanksPegeTag($arrEbis, $arrSubData);
+
 	// ID³ä¤êÅö¤Æ¤µ¤ì¤Æ¤¤¤Ê¤¤¥Ú¡¼¥¸¤Ï¡¢¼«Æ°Åª¤ËÀ¸À®¤¹¤ë¡£
 	if($arrEbis['pid'] == "") {				
@@ -59,5 +58,5 @@
 		$arrEbis['pid'] = $temp_id;
 	}
-			
+
 	// ¥Ú¡¼¥¸ID¤¬ÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Î¤ß¥¿¥°¤ò½ÐÎÏ¤¹¤ë¡£
 	if($arrEbis['pid'] != "") {
@@ -68,4 +67,76 @@
 		$objSubView->display($objSubPage->tpl_mainpage);
 	}
+}
+
+// ¹ØÆþ´°Î»²èÌÌ¤Î¥¨¥Ó¥¹¥¿¥°¤òÀßÄê
+function lfSetThanksPegeTag(&$arrEbis, $arrSubData){
+    $pattern = "|/shopping/complete.php$|";
+    $target  = $_SERVER["REQUEST_URI"];
+    if( !preg_match($pattern, $target) ) return;
+    
+    global $arrEBiSTagAttrTagName;
+    global $arrJobEN;
+    global $arrSexEN;
+    global $order_id;
+    
+    $objQuery = new SC_Query();
+    $arrRet   = $objQuery->select('*', 'dtb_order', 'order_id = ?', array($order_id));
+    $arrCustomerInfo = $arrRet[0];
+    $arrEbis['pid']  = 'thanks'; // ¥Ú¡¼¥¸ID¤ò¥»¥Ã¥È
+    
+    /**
+     * $arrSubData == Array (
+     *      [user] => username
+     *      [pass] => password
+     *      [login_url] => http://login_url/
+     *      [cid] => ebis_parameter
+     *      [m1id] => 1
+     *      [a1id] => 2
+     *      [o1id] => 3
+     *      [o2id] => 4
+     *      [o3id] => 0
+     *      [o4id] => 0
+     *      [o5id] => 0
+     * )
+     * $arrEBiSTagAttrTagName == Array(
+     *      'm1id', 'a1id', 'o1id', 'o2id'
+     *      'o3id', 'o4id', 'o5id'
+     * )
+     **/
+    
+    foreach ($arrEBiSTagAttrTagName as $tagname) {
+        if ( empty($arrSubData[$tagname]) ) continue;
+        
+        $value = $arrSubData[$tagname];
+        
+        // Â°À­¾ðÊó¤ò¥»¥Ã¥È
+        switch ($value) {
+        case EBiS_TAG_ATTR_CUSTOMER_ID:
+            $arrEbis[$tagname] = $arrCustomerInfo['customer_id'];
+            break;
+        case EBiS_TAG_ATTR_PAYMENT:
+            $arrEbis[$tagname] = $arrCustomerInfo['payment_total'];
+            break;
+        case EBiS_TAG_ATTR_JOB:
+            if ( empty($arrCustomerInfo['order_job']) ) break;
+            $arrEbis[$tagname] = $arrJobEN[$arrCustomerInfo['order_job']];
+            break;
+        case EBiS_TAG_ATTR_SEX:
+            $arrEbis[$tagname] = $arrSexEN[$arrCustomerInfo['order_sex']];
+            break;
+        case EBiS_TAG_ATTR_AGE:
+            if ( empty($arrCustomerInfo['order_birth']) ) break;
+            $arrEbis[$tagname] = gfGetAge($arrCustomerInfo['order_birth']);
+            break;
+        case EBiS_TAG_ATTR_IS_CUSTOMER:
+            if ( $arrCustomerInfo['customer_id'] == '0' ) {
+                $arrEbis[$tagname] = '0';
+            } else {
+                $arrEbis[$tagname] = '1';
+            }
+            break;
+        default:
+        }
+    }
 }
 
Index: /branches/beta/data/class/SC_Customer.php
===================================================================
--- /branches/beta/data/class/SC_Customer.php	(revision 11460)
+++ /branches/beta/data/class/SC_Customer.php	(revision 15120)
@@ -46,5 +46,5 @@
 		
 		if ( strlen($email) > 0 && strlen($pass) > 0 ){
-			$this->getCustomerDataFromEmailPass( $email, $pass );
+			$this->getCustomerDataFromEmailPass( $pass, $email);
 		}
 	}
Index: /branches/beta/data/class/SC_View.php
===================================================================
--- /branches/beta/data/class/SC_View.php	(revision 15056)
+++ /branches/beta/data/class/SC_View.php	(revision 15120)
@@ -97,8 +97,4 @@
 			print("½èÍý»þ´Ö:" . $time . "ÉÃ");
 		}
-        
-        if (DEBUG_MODE === true) {
-            print($_SERVER["SERVER_ADDR"]."-");
-        }
 	}
   	
Index: /branches/beta/data/class/SC_SelectSql.php
===================================================================
--- /branches/beta/data/class/SC_SelectSql.php	(revision 14910)
+++ /branches/beta/data/class/SC_SelectSql.php	(revision 15120)
@@ -80,5 +80,5 @@
 		$date2 = mktime (0, 0, 0, $to_month, $to_day,  $to_year);
 		$date2 = $date2 + 86400;
-		// SQLÊ¸¤Îdate´Ø¿ô¤ËÍ¿¤¨¤ë¥Õ¥©¡¼¥Þ¥Ã¥È¤Ï¡¢yyyy/mm/dd¤Ç»ØÄê¤¹¤ë¡£
+        // SQLÊ¸¤Îdate´Ø¿ô¤ËÍ¿¤¨¤ë¥Õ¥©¡¼¥Þ¥Ã¥È¤Ï¡¢yyyy/mm/dd¤Ç»ØÄê¤¹¤ë¡£
 		$date2 = date('Y/m/d', $date2);
 		
Index: /branches/beta/data/conf/conf.php
===================================================================
--- /branches/beta/data/conf/conf.php	(revision 15056)
+++ /branches/beta/data/conf/conf.php	(revision 15120)
@@ -95,5 +95,5 @@
 define("UPDATE_CSV_COL_MAX", 13);
 // ¥â¥¸¥å¡¼¥ë´ÉÍýÍÑCSV¥«¥é¥à¿ô
-define("MODULE_CSV_COL_MAX", 16);
+define("MODULE_CSV_COL_MAX", 18);
 // ¥â¥¸¥å¡¼¥ë´ÉÍýÍÑCSV¥Õ¥¡¥¤¥ë
 define("MODULE_CSV", "module.txt");
@@ -120,5 +120,5 @@
 
 // EC-CUBE¥Ð¡¼¥¸¥ç¥ó¾ðÊó
-define("ECCUBE_VERSION", "1.4.1-beta");
+define("ECCUBE_VERSION", "1.4.2-beta");
 
 // ·èºÑ¥â¥¸¥å¡¼¥ëÉÕÍ¿Ê¸¸À
@@ -190,5 +190,5 @@
  */
 /* ¥·¥¹¥Æ¥à´ØÏ¢ */
-define ('DEBUG_MODE', false);                          // ¥Ç¥Ð¥Ã¥°¥â¡¼¥É(true¡§sfPrintR¤äDB¤Î¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤ò½ÐÎÏ¤¹¤ë¡¢false¡§½ÐÎÏ¤·¤Ê¤¤)
+define ('DEBUG_MODE', true);                          // ¥Ç¥Ð¥Ã¥°¥â¡¼¥É(true¡§sfPrintR¤äDB¤Î¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤ò½ÐÎÏ¤¹¤ë¡¢false¡§½ÐÎÏ¤·¤Ê¤¤)
 define ("ADMIN_ID", "1");								// ´ÉÍý¥æ¡¼¥¶ID(¥á¥ó¥Æ¥Ê¥ó¥¹ÍÑÉ½¼¨¤µ¤ì¤Ê¤¤¡£)
 define ("CUSTOMER_CONFIRM_MAIL", false);				// ²ñ°÷ÅÐÏ¿»þ¤Ë²¾²ñ°÷³ÎÇ§¥á¡¼¥ë¤òÁ÷¿®¤¹¤ë¤«¡Êtrue:²¾²ñ°÷¡¢false:ËÜ²ñ°÷¡Ë
@@ -208,5 +208,5 @@
 define ("POINT_RULE", 2);								// ¥Ý¥¤¥ó¥È¤Î·×»»¥ë¡¼¥ë(1:»Í¼Î¸ÞÆþ¡¢2:ÀÚ¤ê¼Î¤Æ¡¢3:ÀÚ¤ê¾å¤²)
 define ("POINT_VALUE", 1);								// 1¥Ý¥¤¥ó¥ÈÅö¤¿¤ê¤ÎÃÍÃÊ(±ß)
-define ("ADMIN_MODE", 0);								// ´ÉÍý¥â¡¼¥É 1:Í­¸ú¡¡0:Ìµ¸ú(Ç¼ÉÊ»þ)
+define ("ADMIN_MODE", 1);								// ´ÉÍý¥â¡¼¥É 1:Í­¸ú¡¡0:Ìµ¸ú(Ç¼ÉÊ»þ)
 define ("DAILY_BATCH_MODE", false);						// Çä¾å½¸·×¥Ð¥Ã¥Á¥â¡¼¥É(true:¥Ð¥Ã¥Á¤Ç½¸·×¤¹¤ë ¢¨Í×cronÀßÄê¡¢false:¥ê¥¢¥ë¥¿¥¤¥à¤Ç½¸·×¤¹¤ë)
 define ("MAX_LOG_QUANTITY", 5);							// ¥í¥°¥Õ¥¡¥¤¥ëºÇÂç¿ô(¥í¥°¥Æ¡¼¥·¥ç¥ó)
@@ -920,4 +920,77 @@
 );
 
+/*--------- ¢¥¥¨¥Ó¥¹¥¿¥°¥â¥¸¥å¡¼¥ëÍÑ ---------*/
+/** 
+ * ¹àÌÜ¤òÊÑ¹¹¤¹¤ë¾ì¹ç¤Î°ÍÂ¸´Ø·¸¡§
+ * Â°À­¾ðÊó¤ÎÄê¿ô¡¢$arrEBiSTagOptions
+ * module.inc¤ÎlfThanksPageTag()¤ÎswitchÊ¸¤Ë½èÍý¤òÄÉ²Ã
+ */
+// Â°À­¾ðÊó
+define('EBiS_TAG_ATTR_NOTHING',     '0'); // ¼èÆÀ¤·¤Ê¤¤
+define('EBiS_TAG_ATTR_CUSTOMER_ID', '1'); // ¸ÜµÒID
+define('EBiS_TAG_ATTR_PAYMENT',     '2'); // ¹ØÆþ¶â³Û
+define('EBiS_TAG_ATTR_JOB',         '3'); // ¿¦¶È
+define('EBiS_TAG_ATTR_SEX',         '4'); // À­ÊÌ
+define('EBiS_TAG_ATTR_AGE',         '5'); // Ç¯Îð
+define('EBiS_TAG_ATTR_IS_CUSTOMER', '6'); // ²ñ°÷¡¦Èó²ñ°÷
+
+// ¸ÜµÒID¤Îradio buttonÍÑÇÛÎó
+$arrEBiSTagCustomerId = array(
+    EBiS_TAG_ATTR_CUSTOMER_ID => '¼èÆÀ¤¹¤ë',
+    EBiS_TAG_ATTR_NOTHING     => '¼èÆÀ¤·¤Ê¤¤',
+);
+
+// ¹ØÆþ¶â³Û¤Îradio buttonÍÑÇÛÎó
+$arrEBiSTagPayment = array(
+    EBiS_TAG_ATTR_PAYMENT => '¼èÆÀ¤¹¤ë',
+    EBiS_TAG_ATTR_NOTHING => '¼èÆÀ¤·¤Ê¤¤',
+);
+
+// Ç¤°Õ¹àÌÜ¤Î¿ô
+define('EBiS_TAG_OPTIONS_MAX', 5);
+
+// Ç¤°Õ¹àÌÜ¤ÎoptionsÍÑÇÛÎó
+$arrEBiSTagOptions = array(
+    EBiS_TAG_ATTR_NOTHING => '¼èÆÀ¤·¤Ê¤¤',
+    EBiS_TAG_ATTR_JOB     => '¿¦¶È',
+    EBiS_TAG_ATTR_SEX     => 'À­ÊÌ',
+    EBiS_TAG_ATTR_AGE     => 'Ç¯Îð',
+    EBiS_TAG_ATTR_IS_CUSTOMER => '²ñ°÷¡¦Èó²ñ°÷'
+);
+
+// ¥¨¥Ó¥¹¥¿¥°Ì¾
+$arrEBiSTagAttrTagName = array(
+    'm1id', 'a1id',
+    'o1id', 'o2id', 'o3id', 'o4id', 'o5id',
+);
+
+// À­ÊÌ(±Ñ¸ì)
+$arrSexEN = array(
+    1 => 'male',
+    2 => 'female',
+);
+
+// ¿¦¶È(±Ñ¸ì)
+$arrJobEN = array(
+    1 => "Public Service",    // ¸øÌ³°÷
+    2 => "Consultant",        // ¥³¥ó¥µ¥ë¥¿¥ó¥È
+    3 => "Computers",         // ¥³¥ó¥Ô¥å¡¼¥¿´ØÏ¢µ»½Ñ¿¦
+    4 => "Electronics",       // ¥³¥ó¥Ô¥å¡¼¥¿´ØÏ¢°Ê³°¤Îµ»½Ñ¿¦
+    5 => "Finance",           // ¶âÍ»´Ø·¸
+    6 => "Doctor",            // °å»Õ
+    7 => "Lawyer",            // ÊÛ¸î»Î
+    8 => "General",           // ÁíÌ³¡¦¿Í»ö¡¦»öÌ³
+    9 => "Sales",             // ±Ä¶È¡¦ÈÎÇä
+    10 => "Research/Develop", // ¸¦µæ¡¦³«È¯
+    11 => "Advertising",      // ¹­Êó¡¦ÀëÅÁ
+    12 => "Marketing/PR",     // ´ë²è¡¦¥Þ¡¼¥±¥Æ¥£¥ó¥°
+    13 => "Design",           // ¥Ç¥¶¥¤¥ó´Ø·¸
+    14 => "Management",       // ²ñ¼Ò·Ð±Ä¡¦Ìò°÷
+    15 => "Publishing/Media", // ½ÐÈÇ¡¦¥Þ¥¹¥³¥ß
+    16 => "Students",         // ³ØÀ¸¡¦¥Õ¥ê¡¼¥¿¡¼
+    17 => "Housewife",        // ¼çÉØ
+    18 => "Other"             // ¤½¤ÎÂ¾
+);
+
 /*--------- ¢¥View´ÉÍýÍÑ ---------*/
 
Index: /branches/beta/data/conf/core.php
===================================================================
--- /branches/beta/data/conf/core.php	(revision 14676)
+++ /branches/beta/data/conf/core.php	(revision 15120)
@@ -33,5 +33,4 @@
 //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 // WEBÉé²ÙÊ¬»¶ÀßÄê
-
 define ("MULTI_WEB_SERVER_MODE", false);    // Éé²ÙÊ¬»¶¥â¡¼¥É(true:ON false:OFF)
 
Index: /branches/beta/data/lib/glib.php
===================================================================
--- /branches/beta/data/lib/glib.php	(revision 14676)
+++ /branches/beta/data/lib/glib.php	(revision 15120)
@@ -170,8 +170,5 @@
 			for($i = $count; 1 <= $i; $i--) {
 				$move_number = $i + 1;
-				
-				if(file_exists("$path.$move_number")) unlink("$path.$move_number");
-				copy("$dirname/" . $arrLog[$i - 1], "$path.$move_number");		
-				
+				@copy("$dirname/" . $arrLog[$i - 1], "$path.$move_number");
 			}
 			$ret = copy($path, "$path.1");
Index: /branches/beta/data/lib/slib.php
===================================================================
--- /branches/beta/data/lib/slib.php	(revision 15056)
+++ /branches/beta/data/lib/slib.php	(revision 15120)
@@ -16,5 +16,4 @@
 // Á´¥Ú¡¼¥¸¶¦ÄÌ¥¨¥é¡¼
 $GLOBAL_ERR = "";
-
 // ¥¤¥ó¥¹¥È¡¼¥ë½é´ü½èÍý
 sfInitInstall();
@@ -1711,5 +1710,5 @@
  *  $template_id ¤¬ 1¡§·ÈÂÓÍÑ¥Æ¥ó¥×¥ì¡¼¥È¡¢0¡§PCÍÑ¥Æ¥ó¥×¥ì¡¼¥È
  */
-function sfSendOrderMail($order_id, $template_id, $subject = "", $body, $send = true) {
+function sfSendOrderMail($order_id, $template_id, $subject = "", $body = "", $send = true) {
 	global $arrMAILTPLPATH;
 	
@@ -1747,5 +1746,5 @@
 	$objPage->arrCustomer = $arrCustomer;
 	$objPage->arrOrder = $arrOrder;
-
+    
 	//¤½¤ÎÂ¾·èºÑ¾ðÊó
 	if($arrOrder['memo02'] != "") {
@@ -1773,5 +1772,5 @@
 	// ¥á¡¼¥ëËÜÊ¸¤Î¼èÆÀ
 	$objMailView->assignobj($objPage);
-    $name = $objPage->arrCustomer['name01']." ".$objPage->arrCustomer['name02'];
+    $name = $objPage->arrOrder['order_name01']." ".$objPage->arrOrder['order_name02'];
     $objPage->tpl_body = ereg_replace( "(\{name\})", $name ,  $objPage->tpl_body );
     $tmp_subject = ereg_replace( "(\{name\})", $name ,  $tmp_subject );
Index: /branches/beta/data/downloads/module/mdl_ebis_tag/ebis_tag.tpl
===================================================================
--- /branches/beta/data/downloads/module/mdl_ebis_tag/ebis_tag.tpl	(revision 15120)
+++ /branches/beta/data/downloads/module/mdl_ebis_tag/ebis_tag.tpl	(revision 15120)
@@ -0,0 +1,177 @@
+<!--{*
+/*
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ */
+*}-->
+<!--¡¡-->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
+
+<head>
+<meta http-equiv="content-type" content="application/xhtml+xml; charset=EUC-JP" />
+<meta http-equiv="content-script-type" content="text/javascript" />
+<meta http-equiv="content-style-type" content="text/css" />
+<link rel="stylesheet" href="<!--{$smarty.const.URL_DIR}-->admin/css/contents.css" type="text/css" media="all" />
+<script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/css.js"></script>
+<script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/navi.js"></script>
+<script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/win_op.js"></script>
+<script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/site.js"></script>
+<script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/admin.js"></script>
+<!--{include file='css/contents.tpl'}-->
+<title><!--{$tpl_subtitle}--></title>
+<script type="text/javascript">
+<!--
+self.moveTo(20,20);self.focus();
+//-->
+</script>
+</head>
+
+<body bgcolor="#ffffff" text="#666666" link="#007bb7" vlink="#007bb7" alink="#cc0000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="<!--{$tpl_onload}-->">
+<noscript>
+<link rel="stylesheet" href="<!--{$smarty.const.URL_DIR}-->admin/css/common.css" type="text/css" />
+</noscript>
+
+<div align="center">
+<!--¡ú¡ú¥á¥¤¥ó¥³¥ó¥Æ¥ó¥Ä¡ú¡ú-->
+<table width="500" border="0" cellspacing="0" cellpadding="0" summary=" ">
+<form name="form1" id="form1" method="post" action="<!--{$smarty.server.REQUEST_URI}-->">
+<input type="hidden" name="mode" value="edit">
+<input type="hidden" name="uniqid" value="<!--{$tpl_uniqid}-->">
+
+	<tr valign="top">
+		<td class="mainbg">
+			<!--¢§ÅÐÏ¿¥Æ¡¼¥Ö¥ë¤³¤³¤«¤é-->
+			<table width="500" border="0" cellspacing="0" cellpadding="0" summary=" ">
+				<!--¥á¥¤¥ó¥¨¥ê¥¢-->
+				<tr>
+					<td align="center">
+						<table width="470" border="0" cellspacing="0" cellpadding="0" summary=" ">
+							<tr><td height="14"></td></tr>
+							<tr>
+								<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_top.jpg" width="470" height="14" alt=""></td>
+							</tr>
+							<tr>
+								<td background="<!--{$smarty.const.URL_DIR}-->img/contents/main_left.jpg"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td>
+								<td bgcolor="#cccccc">
+									
+									<table width="440" border="0" cellspacing="0" cellpadding="0" summary=" ">
+										<tr>
+											<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_top.gif" width="440" height="7" alt=""></td>
+										</tr>
+										<tr>
+											<td background="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_left_bg.gif"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_left.gif" width="22" height="12" alt=""></td>
+											<td bgcolor="#636469" width="400" class="fs14n"><span class="white"><!--¥³¥ó¥Æ¥ó¥Ä¥¿¥¤¥È¥ë--><!--{$tpl_subtitle}--></span></td>
+											<td background="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_right_bg.gif"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="18" height="1" alt=""></td>
+										</tr>
+										<tr>
+											<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_bottom.gif" width="440" height="7" alt=""></td>
+										</tr>
+										<tr>
+											<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bar.jpg" width="440" height="10" alt=""></td>
+										</tr>
+									</table>
+									
+									<table width="440" border="0" cellspacing="1" cellpadding="8" summary=" ">
+										<tr class="fs12n">
+											<td width="90" bgcolor="#f3f3f3">¥í¥°¥¤¥óURL<span class="red">¢¨</span></td>
+											<td width="337" bgcolor="#ffffff">
+											<span class="red"><!--{$arrErr.login_url}--></span>
+											<input type="text" name="login_url" size="30" style="<!--{$arrErr.login_url|sfGetErrorColor}-->" value="<!--{$arrForm.login_url.value}-->" class="box30" maxlength="50"/>
+											</td>
+										</tr>
+										<tr class="fs12n">
+											<td width="90" bgcolor="#f3f3f3">EBiS°ú¿ô<span class="red">¢¨</span></td>
+											<td width="337" bgcolor="#ffffff">
+											<span class="red"><!--{$arrErr.cid}--></span>
+											<input type="text" name="cid" size="30" style="<!--{$arrErr.cid|sfGetErrorColor}-->" value="<!--{$arrForm.cid.value}-->" class="box30" maxlength="50"/>
+											</td>
+										</tr>
+										<tr class="fs12n">
+											<td width="90" bgcolor="#f3f3f3">¸ÜµÒID</td>
+											<td width="337" bgcolor="#ffffff">
+											<!--{* ¸ÜµÒID¡¢ebis¥¿¥°¤Ç¤Ï"m1id" *}-->
+											<!--{assign var=key value="m1id"}-->
+											<span class="red12"><!--{$arrErr[$key]}--></span>
+											<!--{html_radios name="$key" options=$arrEBiSTagCustomerId selected=$arrForm[$key].value}-->
+											</td>
+										</tr>
+										<tr class="fs12n">
+											<td width="90" bgcolor="#f3f3f3">¹ØÆþ¶â³Û</td>
+											<td width="337" bgcolor="#ffffff">
+											<!--{* ¹ØÆþ¶â³Û¡¢ebis¥¿¥°¤Ç¤Ï"a1id" *}-->
+											<!--{assign var=key value="a1id"}-->
+											<span class="red12"><!--{$arrErr[$key]}--></span>
+											<!--{html_radios name="$key" options=$arrEBiSTagPayment selected=$arrForm[$key].value}-->
+											</td>
+										</tr>
+										<!--{section name="options_loop" loop=$smarty.const.EBiS_TAG_OPTIONS_MAX}-->
+										<tr class="fs12n">
+											<!--{assign var=index value="`$smarty.section.options_loop.iteration`"}-->
+											<td width="90" bgcolor="#f3f3f3">Ç¤°Õ¹àÌÜ<!--{$index}--></td>
+											<td width="337" bgcolor="#ffffff">
+											<!--{* Ç¤°Õ¹àÌÜ¡¢ebis¥¿¥°¤Ç¤Ïo1id, o2id, o3id... *}-->
+											<!--{assign var=key value="o`$index`id"}-->
+											<span class="red12"><!--{$arrErr[$key]}--></span>
+											<select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
+											<!--{html_options options=$arrEBiSTagOptions selected=$arrForm[$key].value}-->
+											</select>
+											</td>
+										</tr>
+										<!--{/section}-->
+									</table>
+									
+									<table width="440" border="0" cellspacing="1" cellpadding="8" summary=" ">
+										<tr class="fs12n">
+											<td width="90" bgcolor="#f3f3f3" align="center">
+											<input type="button" onClick="fnModeSubmit('csv','','');document.form1.mode.value='edit';return false;" value="¥Ú¡¼¥¸ÅÐÏ¿CSV¤ò¥À¥¦¥ó¥í¡¼¥É">
+											</td>
+										</tr>
+									</table>
+									
+									<table width="440" border="0" cellspacing="0" cellpadding="0" summary=" ">
+										<tr>
+											<td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
+											<td><img src="<!--{$smarty.const.URL_DIR}-->img/contents/tbl_top.gif" width="438" height="7" alt=""></td>
+											<td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
+										</tr>
+										<tr>
+											<td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td>
+											<td bgcolor="#e9e7de" align="center">
+											<table border="0" cellspacing="0" cellpadding="0" summary=" ">
+												<tr>
+													<td><input type="image" onMouseover="chgImgImageSubmit('<!--{$smarty.const.URL_DIR}-->img/contents/btn_regist_on.jpg',this)" onMouseout="chgImgImageSubmit('<!--{$smarty.const.URL_DIR}-->img/contents/btn_regist.jpg',this)" src="<!--{$smarty.const.URL_DIR}-->img/contents/btn_regist.jpg" width="123" height="24" alt="¤³¤ÎÆâÍÆ¤ÇÅÐÏ¿¤¹¤ë" border="0" name="subm" ></td>
+												</tr>
+											</table>
+											</td>
+											<td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td>
+										</tr>
+										<tr>
+											<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/tbl_bottom.gif" width="440" height="8" alt=""></td>
+										</tr>
+									</table>
+								</td>
+								<td background="<!--{$smarty.const.URL_DIR}-->img/contents/main_right.jpg"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td>
+							</tr>
+							<tr>
+								<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bottom.jpg" width="470" height="14" alt=""></td>
+							</tr>
+							<tr><td height="30"></td></tr>
+						</table>
+					</td>
+				</tr>
+				<!--¥á¥¤¥ó¥¨¥ê¥¢-->
+			</table>
+			<!--¢¥ÅÐÏ¿¥Æ¡¼¥Ö¥ë¤³¤³¤Þ¤Ç-->
+		</td>
+	</tr>
+</form>
+</table>
+<!--¡ú¡ú¥á¥¤¥ó¥³¥ó¥Æ¥ó¥Ä¡ú¡ú-->
+</div>
+
+</body>
+</html>
+
+
Index: /branches/beta/data/downloads/module/mdl_ebis_tag/ebis_tag_text.tpl
===================================================================
--- /branches/beta/data/downloads/module/mdl_ebis_tag/ebis_tag_text.tpl	(revision 15120)
+++ /branches/beta/data/downloads/module/mdl_ebis_tag/ebis_tag_text.tpl	(revision 15120)
@@ -0,0 +1,14 @@
+<!-- EBiS tag version2.10 start -->
+<script type="text/javascript">
+if ( location.protocol == 'http:' ){ 
+	strServerName = '<!--{$arrEbis.login_url|escape}-->'; 
+} else { 
+	strServerName = 'https://secure2.ebis.ne.jp/ver3';
+}
+cid = '<!--{$arrEbis.cid|escape}-->'; pid = '<!--{$arrEbis.pid|escape}-->'; m1id='<!--{$arrEbis.m1id|escape}-->'; a1id='<!--{$arrEbis.a1id|escape}-->'; o1id='<!--{$arrEbis.o1id|escape}-->'; o2id='<!--{$arrEbis.o2id|escape}-->'; o3id='<!--{$arrEbis.o3id|escape}-->'; o4id='<!--{$arrEbis.o4id|escape}-->'; o5id='<!--{$arrEbis.o5id|escape}-->';
+document.write("<scr" + "ipt type=\"text\/javascript\" src=\"" + strServerName + "\/ebis_tag.php?cid=" + cid + "&pid=" + pid + "&m1id=" + m1id + "&a1id=" + a1id + "&o1id=" + o1id + "&o2id=" + o2id + "&o3id=" + o3id + "&o4id=" + o4id + "&o5id=" + o5id + "\"><\/scr" + "ipt>");
+</script>
+<noscript>
+<img src="https://secure2.ebis.ne.jp/ver3/log.php?argument=<!--{$arrEbis.cid|escape}-->&ebisPageID=<!--{$arrEbis.pid|escape}-->&ebisMember=<!--{$arrEbis.m1id|escape}-->&ebisAmount=<!--{$arrEbis.a1id|escape}-->&ebisOther1=<!--{$arrEbis.o1id|escape}-->&ebisOther2=<!--{$arrEbis.o2id|escape}-->&ebisOther3=<!--{$arrEbis.o3id|escape}-->&ebisOther4=<!--{$arrEbis.o4id|escape}-->&ebisOther5=<!--{$arrEbis.o5id|escape}-->" width="0" height="0">
+</noscript>
+<!-- EBiS tag end -->
Index: /branches/beta/data/downloads/module/mdl_ebis_tag/ebis_tag.php
===================================================================
--- /branches/beta/data/downloads/module/mdl_ebis_tag/ebis_tag.php	(revision 15120)
+++ /branches/beta/data/downloads/module/mdl_ebis_tag/ebis_tag.php	(revision 15120)
@@ -0,0 +1,241 @@
+<?php
+/**
+ * 
+ * @copyright	2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ * @version	CVS: $Id: ebis_tag.php,v 1.30 2007/07/18 04:02:40 adachi Exp $
+ * @link		http://www.lockon.co.jp/
+ *
+ */
+
+// Ç§¾Ú³ÎÇ§
+$objSess = new SC_Session();
+sfIsSuccess($objSess);
+
+//¥Ú¡¼¥¸´ÉÍý¥¯¥é¥¹
+class LC_Page {
+	//¥³¥ó¥¹¥È¥é¥¯¥¿
+	function LC_Page() {
+		//¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È¤Î»ØÄê
+		$this->tpl_mainpage  = MODULE_PATH . 'mdl_ebis_tag/ebis_tag.tpl';
+		$this->tpl_subtitle  = 'AD EBiS¥¿¥°Ëä¤á¹þ¤ßµ¡Ç½';
+        $this->tpl_uniqid    = '';
+        
+        global $arrEBiSTagCustomerId;
+        $this->arrEBiSTagCustomerId = $arrEBiSTagCustomerId;
+        global $arrEBiSTagPayment;
+        $this->arrEBiSTagPayment = $arrEBiSTagPayment;
+        global $arrEBiSTagOptions;
+        $this->arrEBiSTagOptions = $arrEBiSTagOptions;
+	}
+}
+
+$objPage = new LC_Page();
+$objView = new SC_AdminView();
+
+// ¥Ñ¥é¥á¡¼¥¿´ÉÍý¥¯¥é¥¹
+$objFormParam = new SC_FormParam();
+$objFormParam = lfInitParam($objFormParam);
+// POSTÃÍ¤Î¼èÆÀ
+$objFormParam->setParam($_POST);
+
+switch($_POST['mode']) {
+case 'edit':
+    // ²èÌÌÁ«°Ü¤ÎÀµÅöÀ­¥Á¥§¥Ã¥¯
+    //if (sfIsValidTransition($objSess) == false) {
+    //    sfDispError(INVALID_MOVE_ERRORR);
+    //}
+    
+	// ÆþÎÏ¥¨¥é¡¼È½Äê
+	$objPage->arrErr = $objFormParam->checkError();
+	if(count($objPage->arrErr) == 0) {
+		$arrRet = $objFormParam->getHashArray();
+		$sqlval['sub_data'] = serialize($arrRet);
+		$objQuery = new SC_Query();
+		$objQuery->update("dtb_module", $sqlval, "module_id = ?", array(EBIS_TAG_MID));
+		// javascript¼Â¹Ô
+		$objPage->tpl_onload = "window.close();";
+	}
+	break;
+case 'csv':
+    // ²èÌÌÁ«°Ü¤ÎÀµÅöÀ­¥Á¥§¥Ã¥¯
+    //if (sfIsValidTransition($objSess) == false) {
+    //    sfDispError(INVALID_MOVE_ERRORR);
+    //}
+    $csv = lgGetCsvData();
+    sfCSVDownload($csv, 'ebis_tag_');
+    exit;
+default:
+	$arrRet = $objQuery->select("sub_data", "dtb_module", "module_id = ?", array(EBIS_TAG_MID));
+	$arrSubData = unserialize($arrRet[0]['sub_data']);
+	$objFormParam->setParam($arrSubData);
+    
+    // ¥æ¥Ë¡¼¥¯ID¤òËä¤á¹þ¤ß
+    // $objPage->tpl_uniqid = $objSess->getUniqId();
+	break;
+}
+
+$objPage->arrForm = $objFormParam->getFormParamList();
+$objView->assignobj($objPage);		//ÊÑ¿ô¤ò¥Æ¥ó¥×¥ì¡¼¥È¤Ë¥¢¥µ¥¤¥ó¤¹¤ë
+$objView->display($objPage->tpl_mainpage);		//¥Æ¥ó¥×¥ì¡¼¥È¤Î½ÐÎÏ
+//-------------------------------------------------------------------------------------------------------
+/* ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½ */
+function lfInitParam($objFormParam) {
+    $objFormParam->addParam("¥í¥°¥¤¥óURL", "login_url", STEXT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "URL_CHECK"));
+    $objFormParam->addParam("EBiS°ú¿ô", "cid", STEXT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK"));
+    
+    $objFormParam->addParam("¸ÜµÒID", "m1id", INT_LEN, "", array("MAX_LENGTH_CHECK", 'NUM_CHECK'));
+    $objFormParam->addParam("¹ØÆþ¶â³Û", "a1id", INT_LEN, "", array("MAX_LENGTH_CHECK", 'NUM_CHECK'));
+    
+    for ($i = 1; $i <= EBiS_TAG_OPTIONS_MAX; $i++) {
+        $title = "Ç¤°Õ¹àÌÜ$i";
+        $name  = 'o' . $i . 'id';
+        $objFormParam->addParam(
+            $title, $name, INT_LEN, "",
+            array("MAX_LENGTH_CHECK", "NUM_CHECK")
+        );
+    }
+	return $objFormParam;
+}
+
+/**
+ * ¥«¥Æ¥´¥êÊ¸»úÎó¤ò¼èÆÀ(¥«¥Æ¥´¥ê¡ä¥«¥Æ¥´¥ê¡ä¥«¥Æ¥´¥ê¡ä)
+ * 
+ * @param int $category_id ¥«¥Æ¥´¥êID
+ * @param str $sep ¥«¥Æ¥´¥ê¤Î¶èÀÚ¤êÊ¸»ú
+ * return ¥«¥Æ¥´¥êÊ¸»úÎó(¥«¥Æ¥´¥ê¡ä¥«¥Æ¥´¥ê¡ä¥«¥Æ¥´¥ê¡ä)
+ */ 
+function lfGetCategoriesStr($category_id, $sep = ' > ') {
+    $tbl_category = 'dtb_category';
+    
+    // ¿Æ¥«¥Æ¥´¥êID¤ÎÇÛÎó
+    $arrParentsCatId = sfGetParents(null, $tbl_category, 'parent_category_id', 'category_id', $category_id);
+    
+    // WHERE¶ç¤ò¹½ÃÛ
+    $where = str_repeat('category_id = ? OR ' , count($arrParentsCatId));
+    $where = preg_replace('/OR $/', '', $where);
+
+    // ¥«¥Æ¥´¥êÌ¾¤ò¼èÆÀ
+    $objQuery = new SC_Query();
+    $arrRet   = $objQuery->select('category_name', $tbl_category, $where, $arrParentsCatId);
+    
+    // ¥«¥Æ¥´¥ê¡ä¥«¥Æ¥´¥ê¡ä¥«¥Æ¥´¥ê...¤ò¹½ÃÛ
+    $categories_str = '';
+    foreach($arrRet as $category) {
+        $categories_str .= $category['category_name'] . $sep;
+    }
+    
+    return $categories_str;
+}
+
+/** CSV¼èÆÀ **/
+function lgGetCsvData() {
+    $csv  = '"¥Ú¡¼¥¸ID","¥¿¥¤¥È¥ë","URL"' . "\n";
+    $csv .= lfGetDetailPageCSV();
+    $csv .= lfGetListPageCSV();
+    $csv .= lfGetFrontPageCSV();
+    return $csv;
+}
+
+/** ¾¦ÉÊ¾ÜºÙ¥Ú¡¼¥¸¤ÎCSV¤ò¼èÆÀ **/
+function lfGetDetailPageCSV() {
+    $table    = 'dtb_products';
+    $colmuns  = 'product_id, name, category_id';
+    $objQuery = new SC_Query();
+    
+    $arrRet = $objQuery->select($colmuns, $table);
+    
+    $arrCSV = array();
+    foreach ($arrRet as $index => $product) {
+        $id  = $product['product_id'];
+        $url = SITE_URL . 'products/detail.php?product_id=';
+        $title = lfGetCategoriesStr($product['category_id']) . $product['name'];
+        
+        $arrCSV[$index]['page_id']    = 'detail-p' . $id;
+        $arrCSV[$index]['page_title'] = $title;
+        $arrCSV[$index]['url']        = $url . $id;
+    }
+    
+    return lfCreateCSV($arrCSV);
+}
+
+/** ¾¦ÉÊ°ìÍ÷¥Ú¡¼¥¸¤ÎCSV¤ò¼èÆÀ **/
+function lfGetListPageCSV() {
+    $table    = 'dtb_category';
+    $colmuns  = 'category_id, category_name';
+    $objQuery = new SC_Query();
+    
+    $arrRet = $objQuery->select($colmuns, $table);
+    
+    $arrCSV = array();
+    foreach ($arrRet as $index => $category) {
+        $id  = $category['category_id'];
+        $url = SITE_URL . 'products/list.php?category_id=';
+        $title = $category['category_name'];
+        
+        $arrCSV[$index]['page_id']    = 'list-c' . $id;
+        $arrCSV[$index]['page_title'] = $title;
+        $arrCSV[$index]['url']        = $url . $id;
+    }
+    return lfCreateCSV($arrCSV);
+}
+
+function lfCreateCSV ($arrCSV) {
+    $csv_str = '';
+    $max = count($arrCSV);
+    for ($i=0; $i < $max; $i++) {
+        foreach (array('page_id', 'page_title', 'url') as $key) {
+            $arrCSV[$i][$key] = sprintf(
+                '"%s"',
+                str_replace('"', '""', $arrCSV[$i][$key])
+            );
+        }
+        $csv_str .= join(',', $arrCSV[$i]) . "\n";
+    }
+    
+    return $csv_str;
+}
+
+/** ¤½¤ÎÂ¾¥Ú¡¼¥¸¤ÎCSV¤ò¼èÆÀ **/
+function lfGetFrontPageCSV() {
+    // ¹àÌÜÄÉ²Ã¤ÎºÝ¤Ï²¼µ­Ï¢ÁÛÇÛÎó¤òÄÉ²Ã¡£
+    // page_title,url¤ÏÇ¤°Õ¡¢¤Ê¤¤¾ì¹ç¤Ïpage_id¤«¤é¼«Æ°À¸À®¤µ¤ì¤ë
+    // 'page_id' => 'top', 'page_title' => '¥È¥Ã¥×' , 'url' => 'index.php'
+    $arrList = array(
+        array('page_id' => 'top', 'page_title' => '¥È¥Ã¥×' , 'url' => 'index.php'),
+        array('page_id' => 'abouts_index', 'page_title' => 'Åö¥µ¥¤¥È¤Ë¤Ä¤¤¤Æ'),
+        array('page_id' => 'cart_index', 'page_title' => 'Çã¤¤Êª¤«¤´¡Ê¥È¥Ã¥×¡Ë'),
+        array('page_id' => 'contact_index', 'page_title' => '¤ªÌä¤¤¹ç¤ï¤»¡ÊÆþÎÏ¡Ë'),
+        array('page_id' => 'contact_confirm', 'page_title' => '¤ªÌä¤¤¹ç¤ï¤»¡Ê³ÎÇ§¡Ë', 'url' => 'contact/index.php'),
+        array('page_id' => 'contact_complete', 'page_title' => '¤ªÌä¤¤¹ç¤ï¤»¡Ê´°Î»¡Ë'),
+        array('page_id' => 'order_index', 'page_title' => '¹ØÆþ¡ÊÆþÎÏ¡Ë'),
+        array('page_id' => 'entry_kiyaku', 'page_title' => '¤´ÍøÍÑµ¬Ìó'),
+        array('page_id' => 'entry_index', 'page_title' => '²ñ°÷ÅÐÏ¿¡ÊÆþÎÏ'),
+        array('page_id' => 'entry_confirm', 'page_title' => '²ñ°÷ÅÐÏ¿¡Ê³ÎÇ§¡Ë', 'url' => 'entry/index.php'),
+        array('page_id' => 'regist_complete', 'page_title' => '²ñ°÷ÅÐÏ¿¡Ê´°Î»¡Ë', 'url' => 'entry/complete.php'),
+        array('page_id' => 'shopping_deliv', 'page_title' => '¹ØÆþ¡Ê¤ªÆÏ¤±Àè»ØÄê¡Ë'),
+        array('page_id' => 'shopping_payment', 'page_title' => '¹ØÆþ¡Ê¤ª»ÙÊ§¤¤ÊýË¡»ØÄê¡Ë'),
+        array('page_id' => 'shopping_confirm', 'page_title' => '¹ØÆþ¡Ê³ÎÇ§¡Ë'),
+        array('page_id' => 'thanks', 'page_title' => '¹ØÆþ¡Ê´°Î»)', 'url' => 'shopping/complete.php'),
+        array('page_id' => 'mypage_index', 'page_title' => 'MY¥Ú¡¼¥¸¡Ê¥È¥Ã¥×¡Ë'),
+        array('page_id' => 'mypage_change', 'page_title' => 'MY¥Ú¡¼¥¸ > ²ñ°÷ÅÐÏ¿ÆâÍÆÊÑ¹¹¡ÊÆþÎÏ¡Ë'),
+        array('page_id' => 'mypage_change_confirm', 'page_title' => 'MY¥Ú¡¼¥¸ > ²ñ°÷ÅÐÏ¿ÆâÍÆÊÑ¹¹¡Ê³ÎÇ§¡Ë', 'url' => 'mypage/change.php'),
+        array('page_id' => 'mypage_change_complete', 'page_title' => 'MY¥Ú¡¼¥¸ > ²ñ°÷ÅÐÏ¿ÆâÍÆÊÑ¹¹¡Ê´°Î»¡Ë', 'url' => 'mypage/change_complete.php'),
+    );
+    
+    foreach ($arrList as $key => $list) {
+        if ( empty($arrList[$key]['page_title']) ) {
+            $arrList[$key]['page_title'] = $arrList[$key]['page_id'];
+        }
+        
+        if ( empty($arrList[$key]['url']) ) {
+            $url = SITE_URL . str_replace('_', '/', $arrList[$key]['page_id']);
+            $arrList[$key]['url'] = $url . '.php';
+        } else {
+            $arrList[$key]['url'] = SITE_URL . $arrList[$key]['url'];
+        }
+    }
+    
+    return lfCreateCSV($arrList);
+}
+
+?>
Index: /branches/beta/data/downloads/module/mdl_zero/recv.php
===================================================================
--- /branches/beta/data/downloads/module/mdl_zero/recv.php	(revision 15120)
+++ /branches/beta/data/downloads/module/mdl_zero/recv.php	(revision 15120)
@@ -0,0 +1,452 @@
+<?php
+
+$objSiteSess = new SC_SiteSession();
+$objCartSess = new SC_CartSession();
+$objCampaignSess = new SC_CampaignSession();
+$objCustomer = new SC_Customer();
+
+$objSiteInfo = $objView->objSiteInfo;
+$arrInfo = $objSiteInfo->data;
+
+$log_path = DATA_PATH . "logs/zero.log";
+gfPrintLog("**************************************** zero start ****************************************", $log_path);
+
+$arrResult = $_GET;
+// GET¤ÎÆâÍÆ¤òÁ´¤Æ¥í¥°ÊÝÂ¸
+foreach($arrResult as $key => $val){
+	gfPrintLog( "\t" . $key . " => " . $val, $log_path);
+}
+
+$objQuery->begin();
+$order_id = lfDoComplete($objQuery, $arrResult);
+$objQuery->commit();
+
+// ´°Î»¥á¡¼¥ëÁ÷¿®
+if(sfIsInt($order_id)) {
+
+    $order_email = $objQuery->select("order_email", "dtb_order", "order_id = ?", array($order_id));
+    
+    //ÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¥á¡¼¥ë¥¢¥É¥ì¥¹¤¬·ÈÂÓ¤«PC¤«¤Ë±þ¤¸¤ÆÃíÊ¸´°Î»¥á¡¼¥ë¤Î¥Æ¥ó¥×¥ì¡¼¥È¤òÊÑ¤¨¤ë
+    if(ereg("(ezweb.ne.jp$|docomo.ne.jp$|softbank.ne.jp$|vodafone.ne.jp$)",$order_email[0]['order_email'])){
+        sfSendOrderMail($order_id, '1',"","");
+    }else{
+      sfSendOrderMail($order_id, '0',"","");
+    }
+    print("OK");
+}else{
+    // ¥¨¥é¡¼¤Î¾ì¹ç¼õ¿®¥Ç¡¼¥¿¤òÁ÷¿®
+    gfPrintLog("!!!!!!!!!!!! zero error !!!!!!!!!!!!!!", $log_path);
+    ob_start();
+    print($order_id . "\n");
+    print_r($arrResult);
+    $msg = ob_get_contents();
+    ob_end_clean();
+    mb_send_mail("kakinaka@lockon.co.jp", "¥¼¥í¥¯¥ì¥¸¥Ã¥È¥¨¥é¡¼:" . $arrResult['sendid'], $msg . "\n");
+    print("NG");
+}
+gfPrintLog("**************************************** zero end ****************************************", $log_path);
+//---------------------------------------------------------------------------------------------------------------------------------
+// ´°Î»½èÍý
+function lfDoComplete($objQuery, $arrResult) {
+	global $objCartSess;
+	global $objSiteSess;
+    $objCampaignSess = new SC_CampaignSession();
+    $objCustomer = new SC_Customer();
+	global $arrInfo;
+    
+    gfprintlog($objCustomer->isLoginSuccess(),DATA_PATH . "logs/zero.log");
+    
+    // sendid ¤ÎÃÍ¤ò¶èÀÚ¤ë
+    $arrSendid = preg_split("/\\".SEND_PARAM_DELIMITER."/", $arrResult["sendid"]);
+    
+    $uniqid = $arrSendid[0];          // order_temp_id
+    $money =  $arrResult["money"];    // payment_total
+
+    $arrCrilentIP = $objQuery->select("memo02, memo04", "dtb_payment", "payment_id = ? and del_flg = 0", array($arrSendid[1]));
+    //$client_id = $objQuery->getAll("SELECT memo04 FROM dtb_payment WHERE payment_id = ? and del_flg = 0", array($arrSendid[1]));
+    
+    // ²ÃÌÁÅ¹¥³¡¼¥É¤¬°ã¤¦¾ì¹ç¤Ë¤Ï¥¨¥é¡¼
+    if(count($arrResult)){
+        if(in_array($arrResult["clientip"], $arrCrilentIP)) return "²ÃÌÁÅ¹¥³¡¼¥É¤¬°ã¤¤¤Þ¤¹¡£";
+    }else{
+        return "²ÃÌÁÅ¹¥³¡¼¥É¤¬°ã¤¤¤Þ¤¹¡£";
+    }
+    
+	// °ì»þ¼õÃí¥Æ¡¼¥Ö¥ë¤ÎÆÉ¹þ
+	$arrData = sfGetOrderTemp($uniqid);
+    
+    // °ì»þ¼õÃí¥Æ¡¼¥Ö¥ë¤«¤é¥Ç¡¼¥¿¤¬¼èÆÀ¤Ç¤­¤Ê¤±¤ì¤Ð¡¢¥¨¥é¡¼
+    if(count($arrData) <= 0) return "¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤Ë»ØÄê¤·¤¿ID¤Î¥Ç¡¼¥¿¤¬¤¢¤ê¤Þ¤»¤ó¡£";
+    
+    // ·èºÑ´°Î»ºÑ¤ß¤Ç¤¢¤ì¤Ð¥¨¥é¡¼
+    if($arrData["del_flg"] == 1) return "»ØÄê¤·¤¿ID¤Î¥Ç¡¼¥¿¤Ï·èºÑ´°Î»ºÑ¤ß¤Ç¤¹¡£";
+    
+    // °ì»þ¼õÃí¥Æ¡¼¥Ö¥ë¤Î¤ª»ÙÊ§¤¤¹ç·×¤È¡¢¥¼¥í¤«¤éÊÖ¤Ã¤Æ¤­¤¿¶â³Û¤È¤¬°ã¤¦¾ì¹ç¤Ï¥¨¥é¡¼
+    if($arrData["payment_total"] != $money) return "555¤ª»ÙÊ§¤¤¶â³Û¤¬°ã¤¤¤Þ¤¹¡£";
+    
+    // ¥»¥Ã¥·¥ç¥ó¾ðÊó¤ÎÉüµ¢
+    $_SESSION = unserialize($arrData["session"]);
+
+	// ²ñ°÷¾ðÊóÅÐÏ¿½èÍý
+	if ($objCustomer->isLoginSuccess()) {
+		// ¿·¤ªÆÏ¤±Àè¤ÎÅÐÏ¿
+		lfSetNewAddr($uniqid, $objCustomer->getValue('customer_id'));
+		// ¹ØÆþ½¸·×¤ò¸ÜµÒ¥Æ¡¼¥Ö¥ë¤ËÈ¿±Ç
+		lfSetCustomerPurchase($objCustomer->getValue('customer_id'), $arrData, $objQuery);
+	} else {
+		//¹ØÆþ»þ¶¯À©²ñ°÷ÅÐÏ¿
+		switch(PURCHASE_CUSTOMER_REGIST) {
+		//Ìµ¸ú
+		case '0':
+			// ¹ØÆþ»þ²ñ°÷ÅÐÏ¿
+			if($arrData['member_check'] == '1') {
+				// ²¾²ñ°÷ÅÐÏ¿
+				$customer_id = lfRegistPreCustomer($arrData, $arrInfo);
+				// ¹ØÆþ½¸·×¤ò¸ÜµÒ¥Æ¡¼¥Ö¥ë¤ËÈ¿±Ç
+				lfSetCustomerPurchase($customer_id, $arrData, $objQuery);
+			}
+			break;
+		//Í­¸ú
+		case '1':
+			// ²¾²ñ°÷ÅÐÏ¿
+			$customer_id = lfRegistPreCustomer($arrData, $arrInfo);
+			// ¹ØÆþ½¸·×¤ò¸ÜµÒ¥Æ¡¼¥Ö¥ë¤ËÈ¿±Ç
+			lfSetCustomerPurchase($customer_id, $arrData, $objQuery);
+			break;
+		}
+	}
+
+	// °ì»þ¥Æ¡¼¥Ö¥ë¤ò¼õÃí¥Æ¡¼¥Ö¥ë¤Ë³ÊÇ¼¤¹¤ë
+	$order_id = lfRegistOrder($objQuery, $arrData);
+	// ¥«¡¼¥È¾¦ÉÊ¤ò¼õÃí¾ÜºÙ¥Æ¡¼¥Ö¥ë¤Ë³ÊÇ¼¤¹¤ë
+	lfRegistOrderDetail($objQuery, $order_id, $objCartSess);
+	// ¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤Î¾ðÊó¤òºï½ü¤¹¤ë¡£
+	lfDeleteTempOrder($objQuery, $uniqid);
+	// ¥­¥ã¥ó¥Ú¡¼¥ó¤«¤é¤ÎÁ«°Ü¤Î¾ì¹çÅÐÏ¿¤¹¤ë¡£
+	if($objCampaignSess->getIsCampaign()) {
+		lfRegistCampaignOrder($objQuery, $objCampaignSess, $order_id);
+	}
+	
+	return $order_id;
+}
+
+// ²ñ°÷ÅÐÏ¿¡Ê²¾ÅÐÏ¿¡Ë
+function lfRegistPreCustomer($arrData, $arrInfo) {
+	// ¹ØÆþ»þ¤Î²ñ°÷ÅÐÏ¿
+	$sqlval['name01'] = $arrData['order_name01'];
+	$sqlval['name02'] = $arrData['order_name02'];
+	$sqlval['kana01'] = $arrData['order_kana01'];
+	$sqlval['kana02'] = $arrData['order_kana02'];
+	$sqlval['zip01'] = $arrData['order_zip01'];
+	$sqlval['zip02'] = $arrData['order_zip02'];
+	$sqlval['pref'] = $arrData['order_pref'];
+	$sqlval['addr01'] = $arrData['order_addr01'];
+	$sqlval['addr02'] = $arrData['order_addr02'];
+	$sqlval['email'] = $arrData['order_email'];
+	$sqlval['tel01'] = $arrData['order_tel01'];
+	$sqlval['tel02'] = $arrData['order_tel02'];
+	$sqlval['tel03'] = $arrData['order_tel03'];
+	$sqlval['fax01'] = $arrData['order_fax01'];
+	$sqlval['fax02'] = $arrData['order_fax02'];
+	$sqlval['fax03'] = $arrData['order_fax03'];
+	$sqlval['sex'] = $arrData['order_sex'];
+	$sqlval['password'] = $arrData['password'];
+	$sqlval['reminder'] = $arrData['reminder'];
+	$sqlval['reminder_answer'] = $arrData['reminder_answer'];
+	
+	// ¥á¥ë¥Þ¥¬ÇÛ¿®ÍÑ¥Õ¥é¥°¤ÎÈ½Äê
+	switch($arrData['mail_flag']) {
+	case '1':	// HTML¥á¡¼¥ë
+		$mail_flag = 4;
+		break;
+	case '2':	// TEXT¥á¡¼¥ë
+		$mail_flag = 5;
+		break;
+	case '3':	// ´õË¾¤Ê¤·
+		$mail_flag = 6;
+		break;
+	default:
+		$mail_flag = 6;
+		break;
+	}
+	// ¥á¥ë¥Þ¥¬¥Õ¥é¥°
+	$sqlval['mailmaga_flg'] = $mail_flag;
+		
+	// ²ñ°÷²¾ÅÐÏ¿
+	$sqlval['status'] = 1;
+	// URLÈ½ÄêÍÑ¥­¡¼
+	$sqlval['secret_key'] = sfGetUniqRandomId("t"); 
+	
+	$objQuery = new SC_Query();
+	$sqlval['create_date'] = "now()";
+	$sqlval['update_date'] = "now()";
+	$objQuery->insert("dtb_customer", $sqlval);
+	
+	// ¸ÜµÒID¤Î¼èÆÀ
+	$arrRet = $objQuery->select("customer_id", "dtb_customer", "secret_key = ?", array($sqlval['secret_key']));
+	$customer_id = $arrRet[0]['customer_id'];
+	
+	//¡¡²¾ÅÐÏ¿´°Î»¥á¡¼¥ëÁ÷¿®
+	$objMailPage = new LC_Page();
+	$objMailPage->to_name01 = $arrData['order_name01'];
+	$objMailPage->to_name02 = $arrData['order_name02'];
+	$objMailPage->CONF = $arrInfo;
+	$objMailPage->uniqid = $sqlval['secret_key'];
+	$objMailView = new SC_SiteView();
+	$objMailView->assignobj($objMailPage);
+	$body = $objMailView->fetch("mail_templates/customer_mail.tpl");
+	
+	$objMail = new GC_SendMail();
+	$objMail->setItem(
+						''										//¡¡°¸Àè
+						, sfMakeSubject("²ñ°÷ÅÐÏ¿¤Î¤´³ÎÇ§")		//¡¡¥µ¥Ö¥¸¥§¥¯¥È
+						, $body									//¡¡ËÜÊ¸
+						, $arrInfo['email03']					//¡¡ÇÛÁ÷¸µ¥¢¥É¥ì¥¹
+						, $arrInfo['shop_name']					//¡¡ÇÛÁ÷¸µ¡¡Ì¾Á°
+						, $arrInfo["email03"]					//¡¡reply_to
+						, $arrInfo["email04"]					//¡¡return_path
+						, $arrInfo["email04"]					//  Errors_to
+						, $arrInfo["email01"]					//  Bcc
+														);
+	// °¸Àè¤ÎÀßÄê
+	$name = $arrData['order_name01'] . $arrData['order_name02'] ." ÍÍ";
+	$objMail->setTo($arrData['order_email'], $name);			
+	$objMail->sendMail();
+	
+	return $customer_id;
+}
+
+// ¼õÃí¥Æ¡¼¥Ö¥ë¤ØÅÐÏ¿
+function lfRegistOrder($objQuery, $arrData) {
+    $objCampaignSess = new SC_CampaignSession();
+	$sqlval = $arrData;
+
+	// ¼õÃí¥Æ¡¼¥Ö¥ë¤Ë½ñ¤­¹þ¤Þ¤Ê¤¤Îó¤ò½üµî
+	unset($sqlval['mailmaga_flg']);		// ¥á¥ë¥Þ¥¬¥Á¥§¥Ã¥¯
+	unset($sqlval['deliv_check']);		// ÊÌ¤Î¤ªÆÏ¤±Àè¥Á¥§¥Ã¥¯
+	unset($sqlval['point_check']);		// ¥Ý¥¤¥ó¥ÈÍøÍÑ¥Á¥§¥Ã¥¯
+	unset($sqlval['member_check']);		// ¹ØÆþ»þ²ñ°÷¥Á¥§¥Ã¥¯
+	unset($sqlval['password']);			// ¥í¥°¥¤¥ó¥Ñ¥¹¥ï¡¼¥É
+	unset($sqlval['reminder']);			// ¥ê¥Þ¥¤¥ó¥À¡¼¼ÁÌä
+	unset($sqlval['reminder_answer']);	// ¥ê¥Þ¥¤¥ó¥À¡¼Åú¤¨
+	unset($sqlval['mail_flag']);		// ¥á¡¼¥ë¥Õ¥é¥°
+	unset($sqlval['session']);		    // ¥»¥Ã¥·¥ç¥ó¾ðÊó
+	
+	// ÃíÊ¸¥¹¥Æ¡¼¥¿¥¹:»ØÄê¤¬Ìµ¤±¤ì¤Ð¿·µ¬¼õÉÕ¤ËÀßÄê
+	if($sqlval["status"] == ""){
+		$sqlval['status'] = '1';			
+	}
+	
+	// ÊÌ¤Î¤ªÆÏ¤±Àè¤ò»ØÄê¤·¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢ÇÛÁ÷Àè¤ËÅÐÏ¿½»½ê¤ò¥³¥Ô¡¼¤¹¤ë¡£
+	if($arrData["deliv_check"] == "-1") {
+		$sqlval['deliv_name01'] = $arrData['order_name01'];
+		$sqlval['deliv_name02'] = $arrData['order_name02'];
+		$sqlval['deliv_kana01'] = $arrData['order_kana01'];
+		$sqlval['deliv_kana02'] = $arrData['order_kana02'];
+		$sqlval['deliv_pref'] = $arrData['order_pref'];
+		$sqlval['deliv_zip01'] = $arrData['order_zip01'];
+		$sqlval['deliv_zip02'] = $arrData['order_zip02'];
+		$sqlval['deliv_addr01'] = $arrData['order_addr01'];
+		$sqlval['deliv_addr02'] = $arrData['order_addr02'];
+		$sqlval['deliv_tel01'] = $arrData['order_tel01'];
+		$sqlval['deliv_tel02'] = $arrData['order_tel02'];
+		$sqlval['deliv_tel03'] = $arrData['order_tel03'];
+	}
+	
+	$order_id = $arrData['order_id'];		// ¥ª¡¼¥À¡¼ID
+	$sqlval['create_date'] = 'now()';		// ¼õÃíÆü
+	
+	// ¥­¥ã¥ó¥Ú¡¼¥óID
+	if($objCampaignSess->getIsCampaign()) $sqlval['campaign_id'] = $objCampaignSess->getCampaignId();
+
+	// ¥²¥Ã¥È¤ÎÃÍ¤ò¥¤¥ó¥µ¡¼¥È
+	//$sqlval = lfGetInsParam($sqlval);
+	
+	// INSERT¤Î¼Â¹Ô
+	$objQuery->insert("dtb_order", $sqlval);
+	
+	return $order_id;
+}
+
+// ¼õÃí¾ÜºÙ¥Æ¡¼¥Ö¥ë¤ØÅÐÏ¿
+function lfRegistOrderDetail($objQuery, $order_id) {
+    $objCartSess = new SC_CartSession();
+    
+	// ¥«¡¼¥ÈÆâ¾ðÊó¤Î¼èÆÀ
+	$arrCart = $objCartSess->getCartList();
+	$max = count($arrCart);
+	
+	// ´û¤ËÂ¸ºß¤¹¤ë¾ÜºÙ¥ì¥³¡¼¥É¤ò¾Ã¤·¤Æ¤ª¤¯¡£
+	$objQuery->delete("dtb_order_detail", "order_id = $order_id");
+
+	// µ¬³ÊÌ¾°ìÍ÷
+	$arrClassName = sfGetIDValueList("dtb_class", "class_id", "name");
+	// µ¬³ÊÊ¬ÎàÌ¾°ìÍ÷
+	$arrClassCatName = sfGetIDValueList("dtb_classcategory", "classcategory_id", "name");
+			
+	for ($i = 0; $i < $max; $i++) {
+		// ¾¦ÉÊµ¬³Ê¾ðÊó¤Î¼èÆÀ	
+		$arrData = sfGetProductsClass($arrCart[$i]['id']);
+		
+		// Â¸ºß¤¹¤ë¾¦ÉÊ¤Î¤ßÉ½¼¨¤¹¤ë¡£
+		if($arrData != "") {
+			$sqlval['order_id'] = $order_id;
+			$sqlval['product_id'] = $arrCart[$i]['id'][0];
+			$sqlval['classcategory_id1'] = $arrCart[$i]['id'][1];
+			$sqlval['classcategory_id2'] = $arrCart[$i]['id'][2];
+			$sqlval['product_name'] = $arrData['name'];
+			$sqlval['product_code'] = $arrData['product_code'];
+			$sqlval['classcategory_name1'] = $arrClassCatName[$arrData['classcategory_id1']];
+			$sqlval['classcategory_name2'] = $arrClassCatName[$arrData['classcategory_id2']];
+			$sqlval['point_rate'] = $arrCart[$i]['point_rate'];			
+			$sqlval['price'] = $arrCart[$i]['price'];
+			$sqlval['quantity'] = $arrCart[$i]['quantity'];
+			lfReduceStock($objQuery, $arrCart[$i]['id'], $arrCart[$i]['quantity']);
+			// INSERT¤Î¼Â¹Ô
+			$objQuery->insert("dtb_order_detail", $sqlval);
+		} else {
+			sfDispSiteError(CART_NOT_FOUND);
+		}
+	}
+}
+
+// ¥­¥ã¥ó¥Ú¡¼¥ó¼õÃí¥Æ¡¼¥Ö¥ë¤ØÅÐÏ¿
+function lfRegistCampaignOrder($objQuery, $objCampaignSess, $order_id) {
+
+	// ¼õÃí¥Ç¡¼¥¿¤ò¼èÆÀ
+	$cols = "order_id, campaign_id, customer_id, message, order_name01, order_name02,".
+			"order_kana01, order_kana02, order_email, order_tel01, order_tel02, order_tel03,".
+			"order_fax01, order_fax02, order_fax03, order_zip01, order_zip02, order_pref, order_addr01,".
+			"order_addr02, order_sex, order_birth, order_job, deliv_name01, deliv_name02, deliv_kana01,".
+			"deliv_kana02, deliv_tel01, deliv_tel02, deliv_tel03, deliv_fax01, deliv_fax02, deliv_fax03,".
+			"deliv_zip01, deliv_zip02, deliv_pref, deliv_addr01, deliv_addr02, payment_total";
+
+	$arrOrder = $objQuery->select($cols, "dtb_order", "order_id = ?", array($order_id)); 
+			
+	$sqlval = $arrOrder[0];
+    $sqlval['create_date'] = 'now()';
+		
+	// INSERT¤Î¼Â¹Ô
+	$objQuery->insert("dtb_campaign_order", $sqlval);
+	
+	// ¿½¤·¹þ¤ß¿ô¤Î¹¹¿·
+	$total_count = $objQuery->get("dtb_campaign", "total_count", "campaign_id = ?", array($sqlval['campaign_id']));
+	$arrCampaign['total_count'] = $total_count += 1;
+	$objQuery->update("dtb_campaign", $arrCampaign, "campaign_id = ?", array($sqlval['campaign_id']));
+	
+}
+
+/* ¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤Îºï½ü */
+function lfDeleteTempOrder($objQuery, $uniqid) {
+	$where = "order_temp_id = ?";
+	$sqlval['del_flg'] = 1;
+	$objQuery->update("dtb_order_temp", $sqlval, $where, array($uniqid));
+	// $objQuery->delete("dtb_order_temp", $where, array($uniqid));
+}
+
+// ¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤Î½»½ê¤¬ÅÐÏ¿ºÑ¤ß¥Æ¡¼¥Ö¥ë¤È°Û¤Ê¤ë¾ì¹ç¤Ï¡¢ÊÌ¤Î¤ªÆÏ¤±Àè¤ËÄÉ²Ã¤¹¤ë
+function lfSetNewAddr($uniqid, $customer_id) {
+	$objQuery = new SC_Query();
+	$diff = false;
+	$find_same = false;
+	
+	$col = "deliv_name01,deliv_name02,deliv_kana01,deliv_kana02,deliv_tel01,deliv_tel02,deliv_tel03,deliv_zip01,deliv_zip02,deliv_pref,deliv_addr01,deliv_addr02";
+	$where = "order_temp_id = ?";
+	$arrRet = $objQuery->select($col, "dtb_order_temp", $where, array($uniqid));
+	
+	// Í×ÁÇÌ¾¤Îdeliv_¤òºï½ü¤¹¤ë¡£
+	foreach($arrRet[0] as $key => $val) {
+		$keyname = ereg_replace("^deliv_", "", $key);
+		$arrNew[$keyname] = $val;
+	}
+	
+	// ²ñ°÷¾ðÊó¥Æ¡¼¥Ö¥ë¤È¤ÎÈæ³Ó
+	$col = "name01,name02,kana01,kana02,tel01,tel02,tel03,zip01,zip02,pref,addr01,addr02";
+	$where = "customer_id = ?";
+	$arrCustomerAddr = $objQuery->select($col, "dtb_customer", $where, array($customer_id));
+	
+	// ²ñ°÷¾ðÊó¤Î½»½ê¤È°Û¤Ê¤ë¾ì¹ç
+	if($arrNew != $arrCustomerAddr[0]) {
+		// ÊÌ¤Î¤ªÆÏ¤±Àè¥Æ¡¼¥Ö¥ë¤Î½»½ê¤ÈÈæ³Ó¤¹¤ë
+		$col = "name01,name02,kana01,kana02,tel01,tel02,tel03,zip01,zip02,pref,addr01,addr02";
+		$where = "customer_id = ?";
+		$arrOtherAddr = $objQuery->select($col, "dtb_other_deliv", $where, array($customer_id));
+
+		foreach($arrOtherAddr as $arrval) {
+			if($arrNew == $arrval) {
+				// ¤¹¤Ç¤ËÆ±¤¸½»½ê¤¬ÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë
+				$find_same = true;
+			}
+		}
+		
+		if(!$find_same) {
+			$diff = true;
+		}
+	}
+	
+	// ¿·¤·¤¤¤ªÆÏ¤±Àè¤¬ÅÐÏ¿ºÑ¤ß¤Î¤â¤Î¤È°Û¤Ê¤ë¾ì¹ç¤ÏÊÌ¤Î¤ªÆÏ¤±Àè¥Æ¡¼¥Ö¥ë¤ËÅÐÏ¿¤¹¤ë
+	if($diff) {
+		$sqlval = $arrNew;
+		$sqlval['customer_id'] = $customer_id;
+		$objQuery->insert("dtb_other_deliv", $sqlval);
+	}
+}
+
+/* ¹ØÆþ¾ðÊó¤ò²ñ°÷¥Æ¡¼¥Ö¥ë¤ËÅÐÏ¿¤¹¤ë */
+function lfSetCustomerPurchase($customer_id, $arrData, $objQuery) {
+	$col = "first_buy_date, last_buy_date, buy_times, buy_total, point";
+	$where = "customer_id = ?";
+	$arrRet = $objQuery->select($col, "dtb_customer", $where, array($customer_id));
+	$sqlval = $arrRet[0];
+	
+	if($sqlval['first_buy_date'] == "") {
+		$sqlval['first_buy_date'] = "Now()";
+	}
+	$sqlval['last_buy_date'] = "Now()";
+	$sqlval['buy_times']++;
+	$sqlval['buy_total']+= $arrData['total'];
+	$sqlval['point'] = ($sqlval['point'] + $arrData['add_point'] - $arrData['use_point']);
+	
+	// ¥Ý¥¤¥ó¥È¤¬ÉÔÂ­¤·¤Æ¤¤¤ë¾ì¹ç
+	if($sqlval['point'] < 0) {
+		$objQuery->rollback();
+		sfDispSiteError(LACK_POINT);
+	}
+	
+	$objQuery->update("dtb_customer", $sqlval, $where, array($customer_id));
+}
+
+// ºß¸Ë¤ò¸º¤é¤¹½èÍý
+function lfReduceStock($objQuery, $arrID, $quantity) {
+	$where = "product_id = ? AND classcategory_id1 = ? AND classcategory_id2 = ?";
+	$arrRet = $objQuery->select("stock, stock_unlimited", "dtb_products_class", $where, $arrID);
+	
+	// Çä¤êÀÚ¤ì¥¨¥é¡¼
+	if(($arrRet[0]['stock_unlimited'] != '1' && $arrRet[0]['stock'] < $quantity) || $quantity == 0) {
+		$objQuery->rollback();
+		sfDispSiteError(SOLD_OUT, "", true);
+	// ÌµÀ©¸Â¤Î¾ì¹ç¡¢ºß¸Ë¤ÏNULL
+	} elseif($arrRet[0]['stock_unlimited'] == '1') {
+		$sqlval['stock'] = null;
+		$objQuery->update("dtb_products_class", $sqlval, $where, $arrID);
+	// ºß¸Ë¤ò¸º¤é¤¹
+	} else {
+		$sqlval['stock'] = ($arrRet[0]['stock'] - $quantity);
+		if($sqlval['stock'] == "") {
+			$sqlval['stock'] = '0';
+		}		
+		$objQuery->update("dtb_products_class", $sqlval, $where, $arrID);
+	}
+}
+
+// GET¤ÎÃÍ¤ò¥¤¥ó¥µ¡¼¥ÈÍÑ¤ËÀ°¤¨¤ë
+function lfGetInsParam($sqlVal){
+	
+	foreach($_GET as $key => $val){
+		// ¥«¥é¥à¤ÎÂ¸ºß¥Á¥§¥Ã¥¯
+		if(sfColumnExists("dtb_order", $key)) $sqlVal[$key] = $val;
+	}
+	
+	return $sqlVal;
+}
+?>
Index: /branches/beta/data/downloads/module/mdl_zero/mdl_zero.tpl
===================================================================
--- /branches/beta/data/downloads/module/mdl_zero/mdl_zero.tpl	(revision 15120)
+++ /branches/beta/data/downloads/module/mdl_zero/mdl_zero.tpl	(revision 15120)
@@ -0,0 +1,239 @@
+<!--{*
+/*
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ */
+*}-->
+<!--¡¡-->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
+
+<head>
+<meta http-equiv="content-type" content="application/xhtml+xml; charset=<!--{$smarty.const.CHAR_CODE}-->" />
+<meta http-equiv="content-script-type" content="text/javascript" />
+<meta http-equiv="content-style-type" content="text/css" />
+<link rel="stylesheet" href="<!--{$smarty.const.URL_DIR}-->admin/css/contents.css" type="text/css" media="all" />
+<script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/css.js"></script>
+<script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/navi.js"></script>
+<script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/win_op.js"></script>
+<script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/site.js"></script>
+<script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/admin.js"></script>
+<!--{include file='css/contents.tpl'}-->
+<title><!--{$tpl_subtitle}--></title>
+<script type="text/javascript">
+<!--
+self.moveTo(20,20);self.focus();
+
+function lfnChangeEnable(obj) {
+	
+	var name = obj.name;
+	var checked = obj.checked;
+	
+	var send = name+"_send";
+	var clientip = name+"_clientip";
+	
+	
+	if(name = 'pc'){
+		document.form1[send].disabled = !checked;
+		document.form1[clientip].disabled = !checked;
+		
+		if(checked){
+			if(document.form1[send].style.backgroundColor == "#f0f0f0") document.form1[send].style.backgroundColor = "";
+			if(document.form1[clientip].style.backgroundColor == "#f0f0f0") document.form1[clientip].style.backgroundColor = "";
+		}else{
+			document.form1[send].style.backgroundColor = "#f0f0f0";
+			document.form1[clientip].style.backgroundColor = "#f0f0f0";
+		}
+	}
+
+}
+
+function win_open(URL){
+	var WIN;
+	WIN = window.open(URL);
+	WIN.focus();
+}
+//-->
+</script>
+</head>
+
+<body bgcolor="#ffffff" text="#666666" link="#007bb7" vlink="#007bb7" alink="#cc0000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload='lfnChangeEnable(document.form1.pc);lfnChangeEnable(document.form1.mobile); <!--{$tpl_onload}-->'>
+<noscript>
+<link rel="stylesheet" href="<!--{$smarty.const.URL_DIR}-->admin/css/common.css" type="text/css" />
+</noscript>
+
+<div align="center">
+<!--¡ú¡ú¥á¥¤¥ó¥³¥ó¥Æ¥ó¥Ä¡ú¡ú-->
+<table width="500" border="0" cellspacing="0" cellpadding="0" summary=" ">
+<form name="form1" id="form1" method="post" action="<!--{$smarty.server.REQUEST_URI|escape}-->">
+<input type="hidden" name="mode" value="edit">
+	<tr valign="top">
+		<td class="mainbg">
+			<!--¢§ÅÐÏ¿¥Æ¡¼¥Ö¥ë¤³¤³¤«¤é-->
+			<table width="500" border="0" cellspacing="0" cellpadding="0" summary=" ">
+				<!--¥á¥¤¥ó¥¨¥ê¥¢-->
+				<tr>
+					<td align="center">
+						<table width="470" border="0" cellspacing="0" cellpadding="0" summary=" ">
+							<tr><td height="14"></td></tr>
+							<tr>
+								<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_top.jpg" width="470" height="14" alt=""></td>
+							</tr>
+							<tr>
+								<td background="<!--{$smarty.const.URL_DIR}-->img/contents/main_left.jpg"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td>
+								<td bgcolor="#cccccc" >
+									<table width="442" border="0" cellspacing="0" cellpadding="0" summary=" ">
+										<tr>
+											<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_top.gif" width="442" height="7" alt=""></td>
+										</tr>
+										<tr>
+											<td background="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_left_bg.gif"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_left.gif" width="22" height="12" alt=""></td>
+											<td bgcolor="#636469" width="402" class="fs14n"><span class="white"><!--¥³¥ó¥Æ¥ó¥Ä¥¿¥¤¥È¥ë--><!--{$tpl_subtitle}--></span></td>
+											<td background="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_right_bg.gif"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="18" height="1" alt=""></td>
+										</tr>
+										<tr>
+											<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_bottom.gif" width="442" height="7" alt=""></td>
+										</tr>
+										<tr>
+											<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bar.jpg" width="442" height="10" alt=""></td>
+										</tr>
+									</table>
+
+									<table width="442" border="0" cellspacing="1" cellpadding="8" summary=" ">
+										<tr class="fs12n">
+											<td bgcolor="#ffffff">
+												¥¼¥í·èºÑ¥â¥¸¥å¡¼¥ë¤ò¤´ÍøÍÑÄº¤¯°Ù¤Ë¤Ï¡¢¥æ¡¼¥¶ÍÍ¤´¼«¿È¤Ç
+												³ô¼°²ñ¼Ò¥¼¥íÍÍ¤È¤´·ÀÌó¤ò¹Ô¤Ã¤Æ¤¤¤¿¤À¤¯É¬Í×¤¬¤¢¤ê¤Þ¤¹¡£ <br/>
+												¤ª¿½¤·¹þ¤ß¤Ë¤Ä¤­¤Þ¤·¤Æ¤Ï¡¢²¼µ­¤Î¥Ú¡¼¥¸¤«¤é¡¢¤ª¿½¤·¹þ¤ß¤ò¹Ô¤Ã¤Æ²¼¤µ¤¤¡£<br/><br/>
+												<a href="#" onClick="win_open('http://www.zeroweb.co.jp/')" > ¡ä¡ä ¥¼¥í·èºÑ¥·¥¹¥Æ¥à¤Ë¤Ä¤¤¤Æ</a><br/>
+												<a href="#" onClick="win_open('http://wiki.ec-cube.net/')" > ¡ä¡ä ¥¼¥í·èºÑ¥â¥¸¥å¡¼¥ëÀßÄê¥Þ¥Ë¥å¥¢¥ë</a>
+											</td>
+										</tr>
+									</table>
+									
+									<table width="442" border="0" cellspacing="0" cellpadding="0" summary=" ">
+										<tr><td><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bar.jpg" width="442" height="10" alt=""></td></tr>
+									</table>
+
+									<table width="442" border="0" cellspacing="1" cellpadding="8" summary=" ">
+										<tr class="fs12n"><!--{assign var=key value="pc"}-->
+											<td bgcolor="#f3f3f3" colspan="2"><input type="checkbox" name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" value="1" id="<!--{$key}-->" onClick="lfnChangeEnable(this);" <!--{if $arrForm[$key].value != ""}-->checked<!--{/if}-->><label for="<!--{$key}-->">PCÈÇ</label></td>
+										</tr>
+										<tr class="fs12n">
+											<td width="" bgcolor="#f3f3f3">²ÃÌÁÅ¹¥³¡¼¥É<span class="red"> ¢¨</span></td>
+											<td width="300" bgcolor="#ffffff">
+											<!--{assign var=key value="pc_send"}-->
+											<span class="red12"><!--{$arrErr[$key]}--></span>
+											<input type="text" name="<!--{$key}-->" style="ime-mode:disabled; <!--{$arrErr[$key]|sfGetErrorColor}-->" value="<!--{$arrForm[$key].value}-->" class="box10" maxlength="<!--{$arrForm[$key].length}-->">
+											</td>
+										</tr>
+										<tr class="fs12n">
+											<td width="" bgcolor="#f3f3f3">ÈÖÁÈ¥³¡¼¥É<span class="red"> ¢¨</span></td>
+											<td width="300" bgcolor="#ffffff">
+											<!--{assign var=key value="pc_clientip"}-->
+											<span class="red12"><!--{$arrErr[$key]}--></span>
+											<input type="text" name="<!--{$key}-->" style="ime-mode:disabled; <!--{$arrErr[$key]|sfGetErrorColor}-->" value="<!--{$arrForm[$key].value}-->" class="box10" maxlength="<!--{$arrForm[$key].length}-->">
+											</td>
+										</tr>
+										<tr class="fs12n">
+											<td width="" bgcolor="#f3f3f3">ÀÜÂ³ÀèURL</td>
+											<td width="300" bgcolor="#ffffff">
+												<!--{$smarty.const.SEND_PARAM_PC_URL}-->
+											</td>
+										</tr>
+										<!--{assign var=key value="pc_service"}-->
+										<!--{if $arrErr[$key] != ""}-->
+										<tr class="fs12n">
+											<td bgcolor="#ffffff" colspan=2>
+											<span class="red12"><!--{$arrErr[$key]}--></span>
+											</td>
+										</tr>
+										<!--{/if}-->
+									</table>
+									
+									<table width="442" border="0" cellspacing="0" cellpadding="0" summary=" ">
+										<tr><td><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bar.jpg" width="442" height="10" alt=""></td></tr>
+									</table>
+
+									<table width="442" border="0" cellspacing="1" cellpadding="8" summary=" ">
+										<tr class="fs12n"><!--{assign var=key value="mobile"}-->
+											<td bgcolor="#f3f3f3" colspan="2"><input type="checkbox" name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" value="1" id="<!--{$key}-->" onClick="lfnChangeEnable(this);" <!--{if $arrForm[$key].value != ""}-->checked<!--{/if}-->><label for="<!--{$key}-->">·ÈÂÓÈÇ</label></td>
+										</tr>
+										<tr class="fs12n">
+											<td width="" bgcolor="#f3f3f3">²ÃÌÁÅ¹¥³¡¼¥É<span class="red"> ¢¨</span></td>
+											<td width="300" bgcolor="#ffffff">
+											<!--{assign var=key value="mobile_send"}-->
+											<span class="red12"><!--{$arrErr[$key]}--></span>
+											<input type="text" name="<!--{$key}-->" style="ime-mode:disabled; <!--{$arrErr[$key]|sfGetErrorColor}-->" value="<!--{$arrForm[$key].value}-->" class="box10" maxlength="<!--{$arrForm[$key].length}-->">
+											</td>
+										</tr>
+										<tr class="fs12n">
+											<td width="" bgcolor="#f3f3f3">ÈÖÁÈ¥³¡¼¥É<span class="red"> ¢¨</span></td>
+											<td width="300" bgcolor="#ffffff">
+											<!--{assign var=key value="mobile_clientip"}-->
+											<span class="red12"><!--{$arrErr[$key]}--></span>
+											<input type="text" name="<!--{$key}-->" style="ime-mode:disabled; <!--{$arrErr[$key]|sfGetErrorColor}-->" value="<!--{$arrForm[$key].value}-->" class="box10" maxlength="<!--{$arrForm[$key].length}-->">
+											</td>
+										</tr>
+										<tr class="fs12n">
+											<td width="" bgcolor="#f3f3f3">ÀÜÂ³ÀèURL</td>
+											<td width="300" bgcolor="#ffffff">
+												<!--{$smarty.const.SEND_PARAM_MOBILE_URL}-->
+											</td>
+										</tr>
+										<!--{assign var=key value="mobile_service"}-->
+										<!--{if $arrErr[$key] != ""}-->
+										<tr class="fs12n">
+											<td bgcolor="#ffffff" colspan=2>
+											<span class="red12"><!--{$arrErr[$key]}--></span>
+											</td>
+										</tr>
+										<!--{/if}-->
+									</table>
+
+									<table width="442" border="0" cellspacing="0" cellpadding="0" summary=" ">
+										<tr>
+											<td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
+											<td><img src="<!--{$smarty.const.URL_DIR}-->img/contents/tbl_top.gif" width="440" height="7" alt=""></td>
+											<td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
+										</tr>
+										<tr>
+											<td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td>
+											<td bgcolor="#e9e7de" align="center">
+											<table border="0" cellspacing="0" cellpadding="0" summary=" ">
+												<tr>
+													<td><input type="image" onMouseover="chgImgImageSubmit('<!--{$smarty.const.URL_DIR}-->img/contents/btn_regist_on.jpg',this)" onMouseout="chgImgImageSubmit('<!--{$smarty.const.URL_DIR}-->img/contents/btn_regist.jpg',this)" src="<!--{$smarty.const.URL_DIR}-->img/contents/btn_regist.jpg" width="123" height="24" alt="¤³¤ÎÆâÍÆ¤ÇÅÐÏ¿¤¹¤ë" border="0" name="subm" onClick="document.body.style.cursor = 'wait';"></td>
+												</tr>
+											</table>
+											</td>
+											<td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td>
+										</tr>
+										<tr>
+											<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/tbl_bottom.gif" width="442" height="8" alt=""></td>
+										</tr>
+									</table>
+								</td>
+								<td background="<!--{$smarty.const.URL_DIR}-->img/contents/main_right.jpg"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td>
+							</tr>
+							<tr>
+								<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bottom.jpg" width="470" height="14" alt=""></td>
+							</tr>
+							<tr><td height="30"></td></tr>
+						</table>
+					</td>
+				</tr>
+				<!--¥á¥¤¥ó¥¨¥ê¥¢-->
+			</table>
+			<!--¢¥ÅÐÏ¿¥Æ¡¼¥Ö¥ë¤³¤³¤Þ¤Ç-->
+		</td>
+	</tr>
+</form>
+</table>
+<!--¡ú¡ú¥á¥¤¥ó¥³¥ó¥Æ¥ó¥Ä¡ú¡ú-->
+</div>
+
+</body>
+</html>
+
+
Index: /branches/beta/data/downloads/module/mdl_zero/card_mobile.tpl
===================================================================
--- /branches/beta/data/downloads/module/mdl_zero/card_mobile.tpl	(revision 15120)
+++ /branches/beta/data/downloads/module/mdl_zero/card_mobile.tpl	(revision 15120)
@@ -0,0 +1,24 @@
+<!--{*
+/*
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ */
+*}-->
+<center>¥¯¥ì¥¸¥Ã¥È·èºÑ</center>
+
+<hr>
+<br>
+<form method="post" action="<!--{$order_url|escape}-->">
+	<!--{foreach key=key item=item from=$arrSendData}-->
+	<input type="hidden" name="<!--{$key}-->" value="<!--{$item}-->">
+	<!--{/foreach}-->
+	<center><input type="submit" value="¥¯¥ì¥¸¥Ã¥È·èºÑ¤Ë¿Ê¤à"></center>
+</form>
+
+<br>
+<hr>
+
+<!-- ¢§¥Õ¥Ã¥¿¡¼ ¤³¤³¤«¤é -->
+<!--{include file='footer.tpl'}-->
+<!-- ¢¥¥Õ¥Ã¥¿¡¼ ¤³¤³¤Þ¤Ç -->
Index: /branches/beta/data/downloads/module/mdl_zero/card.php
===================================================================
--- /branches/beta/data/downloads/module/mdl_zero/card.php	(revision 15120)
+++ /branches/beta/data/downloads/module/mdl_zero/card.php	(revision 15120)
@@ -0,0 +1,131 @@
+<?php
+/*
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ */
+
+require_once(MODULE_PATH . "mdl_zero/mdl_zero.inc");
+
+class LC_Page {
+	function LC_Page() {
+        $this->tpl_mainpage = MODULE_PATH . 'mdl_zero/card_mobile.tpl';
+		/*
+		 session_start»þ¤Îno-cache¥Ø¥Ã¥À¡¼¤òÍÞÀ©¤¹¤ë¤³¤È¤Ç
+		 ¡ÖÌá¤ë¡×¥Ü¥¿¥ó»ÈÍÑ»þ¤ÎÍ­¸ú´ü¸ÂÀÚ¤ìÉ½¼¨¤òÍÞÀ©¤¹¤ë¡£
+		 private-no-expire:¥¯¥é¥¤¥¢¥ó¥È¤Î¥­¥ã¥Ã¥·¥å¤òµö²Ä¤¹¤ë¡£
+		*/
+		session_cache_limiter('private-no-expire');		
+	} 
+}
+
+$objPage = new LC_Page();
+$objView = new SC_MobileView();
+$objSiteSess = new SC_SiteSession();
+$objCartSess = new SC_CartSession();
+$objCampaignSess = new SC_CampaignSession();
+$objSiteInfo = $objView->objSiteInfo;
+$arrInfo = $objSiteInfo->data;
+
+// ¥æ¡¼¥¶¥æ¥Ë¡¼¥¯ID¤Î¼èÆÀ¤È¹ØÆþ¾õÂÖ¤ÎÀµÅöÀ­¤ò¥Á¥§¥Ã¥¯
+$uniqid = sfCheckNormalAccess($objSiteSess, $objCartSess);
+
+// ¥«¡¼¥È½¸·×½èÍý
+$objPage = sfTotalCart($objPage, $objCartSess, $arrInfo);
+
+// °ì»þ¼õÃí¥Æ¡¼¥Ö¥ë¤ÎÆÉ¹þ
+$arrData = sfGetOrderTemp($uniqid);
+
+// ¥«¡¼¥È½¸·×¤ò¸µ¤ËºÇ½ª·×»»
+$arrData = sfTotalConfirm($arrData, $objPage, $objCartSess, $arrInfo);
+
+// »ÙÊ§¤¤¾ðÊó¤ò¼èÆÀ
+$arrPayment = $objQuery->getall("SELECT module_id, memo01, memo02, memo03, memo04, memo05, memo06, memo07, memo08, memo09, memo10 FROM dtb_payment WHERE payment_id = ? ", array($arrData["payment_id"]));
+
+// ¥Ç¡¼¥¿Á÷¿®ÀèCGI ·ÈÂÓÃ¼Ëö¤Î¾ì¹ç¤Ï ·ÈÂÓÍÑ¤ËÈô¤Ð¤¹
+if(GC_MobileUserAgent::isMobile()) {
+    $objPage = lfSendMobileCredit($arrData, $arrPayment, $objPage);
+}else{
+    lfSendPcCredit($arrData, $arrPayment);
+}
+
+$objPage = lfSendMobileCredit($arrData, $arrPayment, $objPage);
+
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+
+//---------------------------------------------------------------------------------------------------------------------------------------------------------
+
+// ¥Ç¡¼¥¿Á÷¿®½èÍý(PC)
+function lfSendPcCredit($arrData, $arrPayment){
+    global $objCartSess;
+    global $objSiteSess;
+ 
+	// Á÷¿®¥Ç¡¼¥¿À¸À®
+	$arrSendData = array(
+		'clientip' => $arrPayment[0]["memo02"],						                                // ÈÖÁÈ¥³¡¼¥É
+		'custom' => SEND_PARAM_CUSTOM ,										                        // yes¸ÇÄê
+		'send' => SEND_PARAM_SEND,	                                                                // jpall¸ÇÄê
+		'money' => $arrData["payment_total"],							                            // ¶â³Û
+		'usrtel' => $arrData["order_tel01"] . $arrData["order_tel02"] . $arrData["order_tel03"],	// ÅÅÏÃÈÖ¹æ
+		'usrmail' => $arrData["order_email"],					                                    // ¥á¡¼¥ë¥¢¥É¥ì¥¹
+		'sendid' => $arrData["order_temp_id"] . SEND_PARAM_DELIMITER . $arrData["payment_id"],      // ¥ª¡¼¥À¡¼TEMPID , payment_id
+		'sendpoint' => ECCUBE_PAYMENT	    									                    // EC-CUBE
+	);
+    
+	// ¥»¥Ã¥·¥ç¥ó¥«¡¼¥ÈÆâ¤Î¾¦ÉÊ¤òºï½ü¤¹¤ë¡£
+	$objCartSess->delAllProducts();
+	// ÃíÊ¸°ì»þID¤ò²ò½ü¤¹¤ë¡£
+	$objSiteSess->unsetUniqId();
+    
+    $order_url = SEND_PARAM_PC_URL;
+    $html = '';
+    $html .= '<body onload="document.form1.submit();">';
+    $html .= '<form name="form1" id="form1" method="post" action="' . $order_url . '">';
+    foreach($arrSendData as $key => $val){
+        $html .= '	<input type="hidden" name="' . $key . '" value="' . $val . '">';
+    }
+    $html .= '	</form>';
+    $html .= '	</body>';
+//    $html .= "<script type='text/javascript'>document.form1.submit();</script>";
+    
+    echo $html;
+    exit();
+}
+
+// ¥Ç¡¼¥¿Á÷¿®½èÍý(MOBILE)
+function lfSendMobileCredit($arrData, $arrPayment, $objPage){
+    global $objCartSess;
+    global $objSiteSess;
+ 
+	// Èó²ñ°÷¤Î¤È¤­¤Ï user_id ¤Ë not_member¤ÈÁ÷¤ë
+	($arrData["customer_id"] == 0) ? $user_id = "not_member" : $user_id = $arrData["customer_id"];	
+	
+	// Á÷¿®¥Ç¡¼¥¿À¸À®
+	$arrSendData = array(
+		'clientip' => $arrPayment[0]["memo05"],						                                // ÈÖÁÈ¥³¡¼¥É
+		'act' => SEND_PARAM_ACT ,										                            // imode¸ÇÄê
+		'send' => SEND_PARAM_SEND,	                                                                // jpall¸ÇÄê
+		'money' => $arrData["payment_total"],						                    	        // ¶â³Û
+		'usrtel' => $arrData["order_tel01"] . $arrData["order_tel02"] . $arrData["order_tel03"],	// ÅÅÏÃÈÖ¹æ
+		'usrmail' => $arrData["order_email"],					                                    // ¥á¡¼¥ë¥¢¥É¥ì¥¹
+        'sendid' => $arrData["order_temp_id"] . SEND_PARAM_DELIMITER . $arrData["payment_id"],		                // ¥ª¡¼¥À¡¼TEMPID , payment_id
+		'sendpoint' => ECCUBE_PAYMENT,	    									                    // EC-CUBE
+		'siteurl' => SITE_URL . "mobile/",	    							                        		    // Ìá¤êÀèURL
+		'sitestr' => "TOP¤ØÌá¤ë"                                						        	// Ìá¤êÀè¥ê¥ó¥¯Ì¾
+	);
+    
+	// ¥»¥Ã¥·¥ç¥ó¥«¡¼¥ÈÆâ¤Î¾¦ÉÊ¤òºï½ü¤¹¤ë¡£
+	$objCartSess->delAllProducts();
+	// ÃíÊ¸°ì»þID¤ò²ò½ü¤¹¤ë¡£
+	$objSiteSess->unsetUniqId();
+    
+    // ¥Ç¡¼¥¿Á÷¿®ÀèCGI ·ÈÂÓÃ¼Ëö¤Î¾ì¹ç¤Ï ·ÈÂÓÍÑ¤ËÈô¤Ð¤¹
+    $objPage->order_url = SEND_PARAM_MOBILE_URL;
+    $objPage->arrSendData = $arrSendData;
+    
+    return $objPage;
+}
+
+
+?>
Index: /branches/beta/data/downloads/module/mdl_zero/mdl_zero.php
===================================================================
--- /branches/beta/data/downloads/module/mdl_zero/mdl_zero.php	(revision 15120)
+++ /branches/beta/data/downloads/module/mdl_zero/mdl_zero.php	(revision 15120)
@@ -0,0 +1,260 @@
+<?php
+/**
+ * 
+ * @copyright    2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ * @version CVS: $Id: 1.0 2006-06-04 06:38:01Z kakinaka $ 
+ * @link        http://www.lockon.co.jp/
+ *
+ */
+require_once(MODULE_PATH . "mdl_zero/mdl_zero.inc");
+
+//¥Ú¡¼¥¸´ÉÍý¥¯¥é¥¹
+class LC_Page {
+    //¥³¥ó¥¹¥È¥é¥¯¥¿
+    function LC_Page() {
+        //¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È¤Î»ØÄê
+        $this->tpl_mainpage = MODULE_PATH . 'mdl_zero/mdl_zero.tpl';
+        $this->tpl_subtitle = '¥¼¥í·èºÑ¥â¥¸¥å¡¼¥ë';
+    }
+}
+$objPage = new LC_Page();
+$objView = new SC_AdminView();
+$objQuery = new SC_Query();
+
+// ¥¯¥ì¥¸¥Ã¥È¥Á¥§¥Ã¥¯
+lfZeroCheck();
+
+// Ç§¾Ú³ÎÇ§
+$objSess = new SC_Session();
+sfIsSuccess($objSess);
+
+// ¥Ñ¥é¥á¡¼¥¿´ÉÍý¥¯¥é¥¹
+$objFormParam = new SC_FormParam();
+$objFormParam = lfInitParam($objFormParam);
+// POSTÃÍ¤Î¼èÆÀ
+$objFormParam->setParam($_POST);
+
+// ÈÆÍÑ¹àÌÜ¤òÄÉ²Ã(É¬¿Ü¡ª¡ª)
+sfAlterMemo();
+
+switch($_POST['mode']) {
+case 'edit':
+    // ÆþÎÏ¥¨¥é¡¼È½Äê
+    $objPage->arrErr = lfCheckError();
+
+    // ¥¨¥é¡¼¤Ê¤·¤Î¾ì¹ç¤Ë¤Ï¥Ç¡¼¥¿¤ò¹¹¿·    
+    if(count($objPage->arrErr) == 0) {
+        // ¥Ç¡¼¥¿¹¹¿·
+        lfUpdPaymentDB();
+        
+        // javascript¼Â¹Ô
+        $objPage->tpl_onload = 'alert("ÅÐÏ¿´°Î»¤·¤Þ¤·¤¿¡£\n´ðËÜ¾ðÊó¡ä»ÙÊ§ÊýË¡ÀßÄê¤è¤ê¾ÜºÙÀßÄê¤ò¤·¤Æ¤¯¤À¤µ¤¤¡£"); window.close();';
+    }
+    break;
+case 'module_del':
+    // ÈÆÍÑ¹àÌÜ¤ÎÂ¸ºß¥Á¥§¥Ã¥¯
+    if(sfColumnExists("dtb_payment", "memo01")){
+        // ¥Ç¡¼¥¿¤Îºï½ü¥Õ¥é¥°¤ò¤¿¤Æ¤ë
+        $objQuery->query("UPDATE dtb_payment SET del_flg = 1 WHERE module_id = ?", array(MDL_ZERO_ID));
+    }
+    break;
+default:
+    // ¥Ç¡¼¥¿¤Î¥í¡¼¥É
+    lfLoadData();    
+    break;
+}
+
+$objPage->arrForm = $objFormParam->getFormParamList();
+
+$objView->assignobj($objPage);                    //ÊÑ¿ô¤ò¥Æ¥ó¥×¥ì¡¼¥È¤Ë¥¢¥µ¥¤¥ó¤¹¤ë
+$objView->display($objPage->tpl_mainpage);        //¥Æ¥ó¥×¥ì¡¼¥È¤Î½ÐÎÏ
+//-------------------------------------------------------------------------------------------------------
+/* ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½ */
+function lfInitParam($objFormParam) {
+    $objFormParam->addParam("PCÈÇ", "pc", INT_LEN, "n");
+    $objFormParam->addParam("²ÃÌÁÅ¹¥³¡¼¥É", "pc_send", SEND_LEN, "KVa", array("MAX_LENGTH_CHECK", "SPTAB_CHECK"));
+    $objFormParam->addParam("ÈÖÁÈ¥³¡¼¥É ", "pc_clientip", CLIENTIP_LEN, "KVa", array("MAX_LENGTH_CHECK", "NUM_CHECK"));
+
+    $objFormParam->addParam("·ÈÂÓÈÇ", "mobile", INT_LEN, "n");
+    $objFormParam->addParam("²ÃÌÁÅ¹¥³¡¼¥É", "mobile_send", SEND_LEN, "KVa", array("MAX_LENGTH_CHECK", "SPTAB_CHECK"));
+    $objFormParam->addParam("ÈÖÁÈ¥³¡¼¥É ", "mobile_clientip", CLIENTIP_LEN, "KVa", array("MAX_LENGTH_CHECK", "NUM_CHECK"));
+    
+    return $objFormParam;
+}
+
+// ¥¨¥é¡¼¥Á¥§¥Ã¥¯¤ò¹Ô¤¦
+function lfCheckError(){
+    global $objFormParam;
+    
+    $arrErr = $objFormParam->checkError();
+    
+    if($_POST["pc"]){
+        if(empty($_POST["pc_send"])) $arrErr["pc_send"] = "¢¨ ²ÃÌÁÅ¹¥³¡¼¥É ¤¬ÆþÎÏ¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£<br>";
+        if(empty($_POST["pc_clientip"])) $arrErr["pc_clientip"] = "¢¨ ÈÖÁÈ¥³¡¼¥É ¤¬ÆþÎÏ¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£<br>";
+    }
+
+    if($_POST["mobile"]){
+        if(empty($_POST["mobile_send"])) $arrErr["mobile_send"] = "¢¨ ²ÃÌÁÅ¹¥³¡¼¥É ¤¬ÆþÎÏ¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£<br>";
+        if(empty($_POST["mobile_clientip"])) $arrErr["mobile_clientip"] = "¢¨ ÈÖÁÈ¥³¡¼¥É ¤¬ÆþÎÏ¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£<br>";
+    }
+    
+    // ÀÜÂ³¥Á¥§¥Ã¥¯¤ò¹Ô¤¦
+    if(count($arrErr) == 0) $arrErr = lfChkConnect();
+    
+    return $arrErr;
+}
+
+// ÀÜÂ³¥Á¥§¥Ã¥¯¤ò¹Ô¤¦
+function lfChkConnect(){
+    $arrRet = array();
+    
+    // PCÈÇ¤ÎÀÜÂ³³ÎÇ§
+    if($_POST["pc"]){
+        // Á÷¿®¥Ç¡¼¥¿À¸À®
+        $arrSendData = array(
+            'clientip' => $_POST["pc_clientip"],    // ÈÖÁÈ¥³¡¼¥É
+            'custom' => SEND_PARAM_CUSTOM,            // yes¸ÇÄê
+            'send' => $_POST["pc_send"],            // ²ÃÌÁÅ¹¥³¡¼¥É
+            'money' => 0                            // ¶â³Û
+        );
+        
+        // ¥Ç¡¼¥¿Á÷¿®
+        $arrResponse = sfPostPaymentData(SEND_PARAM_PC_URL, $arrSendData, false);
+        
+        // ¥¨¥é¡¼¤¬¤¢¤ë¤«¥Á¥§¥Ã¥¯¤¹¤ë
+        if(!ereg("^<HTML>",$arrResponse )){
+            $arrRet["pc_clientip"] = "ÆþÎÏ¥Ç¡¼¥¿¤¬Àµ¤·¤¯¤¢¤ê¤Þ¤»¤ó<br>";
+        }
+    }
+
+    // ·ÈÂÓÈÇ¤ÎÀÜÂ³³ÎÇ§
+    if($_POST["mobile"]){
+        // Á÷¿®¥Ç¡¼¥¿À¸À®
+        $arrSendData = array(
+            'clientip' => $_POST["mobile_clientip"],    // ÈÖÁÈ¥³¡¼¥É
+            'act' => SEND_PARAM_ACT,                    // imode¸ÇÄê
+            'money' => 0                                // ¶â³Û
+        );
+         
+        // ¥Ç¡¼¥¿Á÷¿®
+        $arrResponse = sfPostPaymentData(SEND_PARAM_MOBILE_URL, $arrSendData, false);
+        
+        // ¥¨¥é¡¼¤¬¤¢¤ë¤«¥Á¥§¥Ã¥¯¤¹¤ë
+        if(!ereg("^<HTML>",$arrResponse )){
+            $arrRet["mobile_clientip"] = "ÆþÎÏ¥Ç¡¼¥¿¤¬Àµ¤·¤¯¤¢¤ê¤Þ¤»¤ó<br>";
+        }
+    }
+    
+    return $arrRet;    
+}
+
+// ÅÐÏ¿¥Ç¡¼¥¿¤òÆÉ¤ß¹þ¤à
+function lfLoadData(){
+    global $objFormParam;
+    
+    //¥Ç¡¼¥¿¤ò¼èÆÀ
+    $arrRet = lfGetPaymentDB(" AND del_flg = '0'");
+    
+    // ÃÍ¤ò¥»¥Ã¥È
+    $objFormParam->setParam($arrRet[0]);
+
+    // ²èÌÌÉ½¼¨ÍÑ¤Ë¥Ç¡¼¥¿¤òÊÑ´¹
+    $arrDisp = array();
+    $arrDisp = $arrRet[0];
+    if (!empty($arrDisp["pc_send"])) $arrDisp["pc"] = 1;
+    if (!empty($arrDisp["mobile_send"])) $arrDisp["mobile"] = 1;
+    $objFormParam->setParam($arrDisp);
+}
+
+// DB¤«¤é¥Ç¡¼¥¿¤ò¼èÆÀ¤¹¤ë
+function lfGetPaymentDB($where = "", $arrWhereVal = array()){
+    global $objQuery;
+    
+    $arrVal = array(MDL_ZERO_ID);
+    $arrVal = array_merge($arrVal, $arrWhereVal);
+    
+    $arrRet = array();
+    $sql = "SELECT 
+                module_id, 
+                memo01 as pc_send, 
+                memo02 as pc_clientip,
+                memo04 as mobile_send, 
+                memo05 as mobile_clientip
+            FROM dtb_payment WHERE module_id = ? " . $where;
+    $arrRet = $objQuery->getall($sql, $arrVal);
+
+    return $arrRet;
+}
+
+
+// ¥Ç¡¼¥¿¤Î¹¹¿·½èÍý
+function lfUpdPaymentDB(){
+    global $objQuery;
+    global $objSess;
+    $arrData = array();
+
+    // del_flg¤òºï½ü¤Ë¤·¤Æ¤ª¤¯
+    $del_sql = "UPDATE dtb_payment SET del_flg = 1 WHERE module_id = ? ";
+    $arrDel = array(MDL_ZERO_ID);
+    $objQuery->query($del_sql, $arrDel);
+
+    // PCÍÑ¥Ç¡¼¥¿ÅÐÏ¿
+    if($_POST["pc"]){
+		$arrData["payment_method"] = "Zero¥¯¥ì¥¸¥Ã¥È";
+		$arrData["fix"] = 3;
+		$arrData["creator_id"] = $objSess->member_id;
+		$arrData["update_date"] = "now()";
+		$arrData["module_id"] = MDL_ZERO_ID;
+		$arrData["module_path"] = MODULE_PATH . "mdl_zero/card.php";
+		$arrData["memo01"] = $_POST["pc_send"];
+		$arrData["memo02"] = $_POST["pc_clientip"];
+		$arrData["memo03"] = ZERO_CREDIT_ID;
+		$arrData["del_flg"] = "0";
+    }
+    
+    // ·ÈÂÓÍÑ¥Ç¡¼¥¿ÅÐÏ¿
+    if($_POST["mobile"]){
+		$arrData["payment_method"] = "Zero¥¯¥ì¥¸¥Ã¥È";
+		$arrData["fix"] = 3;
+		$arrData["creator_id"] = $objSess->member_id;
+		$arrData["update_date"] = "now()";
+		$arrData["module_id"] = MDL_ZERO_ID;
+		$arrData["module_path"] = MODULE_PATH . "mdl_zero/card.php";
+		$arrData["memo03"] = ZERO_CREDIT_ID;
+		$arrData["memo04"] = $_POST["mobile_send"];
+		$arrData["memo05"] = $_POST["mobile_clientip"];
+		$arrData["del_flg"] = "0";
+    }
+    
+    // ¹¹¿·¥Ç¡¼¥¿¤¬¤¢¤ì¤Ð¹¹¿·¤¹¤ë¡£
+    if(count($arrData) > 0){
+	    // ¥é¥ó¥¯¤ÎºÇÂçÃÍ¤ò¼èÆÀ¤¹¤ë
+	    $max_rank = $objQuery->getone("SELECT max(rank) FROM dtb_payment");
+	    
+	    // »ÙÊ§ÊýË¡¥Ç¡¼¥¿¤ò¼èÆÀ
+	    $arrPaymentData = lfGetPaymentDB();
+	    
+	    // ¥Ç¡¼¥¿¤¬Â¸ºß¤·¤Æ¤¤¤ì¤ÐUPDATE¡¢Ìµ¤±¤ì¤ÐINSERT
+	    if(count($arrPaymentData) > 0){
+            $objQuery->update("dtb_payment", array("memo01"=>"","memo02"=>"","memo03"=>"","memo04"=>"","memo05"=>""), " module_id = '" . MDL_ZERO_ID . "'");
+	        $objQuery->update("dtb_payment", $arrData, " module_id = '" . MDL_ZERO_ID . "'");
+	    }else{
+	        $arrData["rank"] = $max_rank + 1;
+	        $objQuery->insert("dtb_payment", $arrData);
+	    }
+    }
+}
+
+
+function lfZeroCheck(){
+    if(!empty($_GET["clientip"])){
+        global $objPage;
+        global $objView;
+        global $objQuery;
+        require_once(MODULE_PATH . "mdl_zero/recv.php");
+        exit();
+    }
+}
+
+
+?>
Index: /branches/beta/data/downloads/module/mdl_zero/mdl_zero.inc
===================================================================
--- /branches/beta/data/downloads/module/mdl_zero/mdl_zero.inc	(revision 15120)
+++ /branches/beta/data/downloads/module/mdl_zero/mdl_zero.inc	(revision 15120)
@@ -0,0 +1,112 @@
+<?php
+/**
+ * 
+ * @copyright	2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ * @version	CVS: $Id: mdl_epsilon.inc 7162 2006-11-18 09:53:33Z kakinaka $
+ * @link		http://www.lockon.co.jp/
+ *
+ */
+
+/**** ¢§Äê¿ôÀë¸À *********************************************************************************************/
+
+define("MDL_ZERO_ID", 8);
+define("ZERO_PC", 1);        // dtb_payment ¤Î¶èÊ¬ÍÑ
+define("ZERO_MOBILE", 2);    // dtb_payment ¤Î¶èÊ¬ÍÑ
+define("ZERO_CREDIT_ID", 1);      // dtb_payment ¤Î¶èÊ¬ÍÑ
+
+
+// Á÷¿®¥Ñ¥é¥á¡¼¥¿
+define ("SEND_PARAM_CUSTOM", "yes");
+define ("SEND_PARAM_ACT", "imode");
+define ("SEND_PARAM_SEND", "jpall");
+define ("SEND_PARAM_PC_URL", "https://credit.zeroweb.ne.jp/cgi-bin/order.cgi?orders");
+define ("SEND_PARAM_MOBILE_URL", "https://credit.zeroweb.ne.jp/cgi-bin/order.cgi");
+define ("SEND_PARAM_DELIMITER", "_");                           // sendid¤ÎÊ¬³äÊ¸»ú
+
+// Ê¸»ú¿ôÀ©¸Â
+define ("CLIENTIP_LEN", 5);
+define ("SEND_LEN", 20);
+
+/**** ¢§ÊÑ¿ôÀë¸À *********************************************************************************************/
+
+
+/**** ¢§´Ø¿ô *********************************************************************************************/
+
+/**
+ * XML¥¿¥°¤ÎÆâÍÆ¤ò¼èÆÀ¤¹¤ë
+ * @param array $arrVal Value¥Ç¡¼¥¿
+ * @param string $tag Tag¥Ç¡¼¥¿
+ * @param string $att ÂÐ¾Ý¥¿¥°Ì¾
+ * @return string
+ */
+function sfGetXMLValue($arrVal, $tag, $att) {
+	$ret = "";
+	foreach((array)$arrVal as $array) {
+		if($tag == $array['tag']) {
+			if(!is_array($array['attributes'])) {
+				continue;
+			}
+			foreach($array['attributes'] as $key => $val) {
+				if($key == $att) {
+					$ret = mb_convert_encoding(urldecode($val), 'EUC-JP', 'SJIS');
+					break;
+				}
+			}			
+		}
+	}
+	
+	return $ret;
+}
+
+/**
+ * ¥¼¥í¤Ø¥Ç¡¼¥¿¤òÁ÷¿®¤¹¤ë¡£
+ * @param string $order_url	 Á÷¿®ÀèURL
+ * @param array $arrData POST¥Ç¡¼¥¿
+ * @param boolean $err_page ¥¨¥é¡¼¥Ú¡¼¥¸É½¼¨Í­Ìµ
+ * @param boolean $is_xml XML¤Ç±þÅú¾ðÊó¤¬µ¢¤Ã¤Æ¤¯¤ë¾ì¹ç
+ * @return array ±þÅú¾ðÊó
+ */
+function sfPostPaymentData($order_url, $arrData, $err_page = true, $is_xml = false){
+	$arrVal = array();
+	$response = "";
+
+	// POST¥Ç¡¼¥¿¤òÁ÷¿®¤·¡¢±þÅú¾ðÊó¤ò¼èÆÀ¤¹¤ë
+	$response = sfSendPostData($order_url, $arrData, array(200));
+    
+	// ¤Ê¤Ë¤âÊÖ¤Ã¤Æ¤³¤Ê¤ì¤Ð¡¢¥¨¥é¡¼
+	if ($response == "") {
+		if ($err_page) {
+			// ¥¨¥é¡¼²èÌÌ¤òÉ½¼¨¤¹¤ë¡£
+			$_SESSION['site']['now_page'] ="";
+			sfDispSiteError(FREE_ERROR_MSG, "", true, "¹ØÆþ½èÍýÃæ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡£<br>¤³¤Î¼êÂ³¤­¤ÏÌµ¸ú¤È¤Ê¤ê¤Þ¤·¤¿¡£");
+		}else{
+			return "" ;
+		}
+	}
+
+	// ±þÅú¤Î¥¨¥ó¥³¡¼¥É¤âUNICODE¤ËÊÑ´¹
+	$response = mb_convert_encoding($response, CHAR_CODE, auto);
+
+    // ±þÅú¤¬XML¤Î¾ì¹ç
+    if($is_xml){
+		
+		// XML¥Ñ¡¼¥µ¤òÀ¸À®¤¹¤ë¡£
+		$parser = xml_parser_create('utf-8');
+		
+		// ¶õÇòÊ¸»ú¤ÏÆÉ¤ßÈô¤Ð¤·¤ÆXML¤òÆÉ¤ß¼è¤ë
+		xml_parser_set_option($parser,XML_OPTION_TARGET_ENCODING,"UTF-8");
+		xml_parser_set_option($parser,XML_OPTION_SKIP_WHITE,1);
+		
+		// ÇÛÎó¤ËXML¤Î¥Ç¡¼¥¿¤ò³ÊÇ¼¤¹¤ë
+		$err = xml_parse_into_struct($parser,$response,$arrVal,$idx);
+		
+		// ³«Êü¤¹¤ë
+		xml_parser_free($parser);
+    }else{
+        $arrVal = $response;
+    }
+
+	return $arrVal;
+}
+
+?>
Index: /branches/beta/data/downloads/module/module.txt
===================================================================
--- /branches/beta/data/downloads/module/module.txt	(revision 14676)
+++ /branches/beta/data/downloads/module/module.txt	(revision 15120)
@@ -1,6 +1,7 @@
-"1", "EBiS¥¿¥°Ëä¤á¹þ¤ß", "", "1.0", "¥¢¥¯¥»¥¹²òÀÏLOG-EBiS¤Î¥¿¥°¤òËä¤á¹þ¤ß¤Þ¤¹", "ebis_tag.php", "ebis_tag.php", "", "", "ebis_tag.tpl|ebis_tag_text.tpl", "0", "", "2006-10-16 00:00:00","0.9.9","500","330"
-"3", "¥¢¥Õ¥£¥ê¥¨¥¤¥È¥¿¥°Ëä¤á¹þ¤ß", "", "1.21", "²ñ°÷ÅÐÏ¿´°Î»¡¢¾¦ÉÊ¹ØÆþ´°Î»¥Ú¡¼¥¸¤Ë¥¿¥°¤òËä¤á¹þ¤ß¤Þ¤¹", "affiliate.php", "affiliate.php", "", "", "affiliate.tpl", "0", "", "2006-10-16 00:00:00","1.0.1","500","460"
-"4", "¥¤¥×¥·¥í¥ó·èºÑ¥â¥¸¥å¡¼¥ë", "", "1.2", "¥¤¥×¥·¥í¥ó·èºÑ¥â¥¸¥å¡¼¥ë¤ò»ÈÍÑ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£(¤³¤Î¥â¥¸¥å¡¼¥ë¤ò»ÈÍÑ¤¹¤ë¤Ë¤Ï<a href="#" onClick="window.open('http://www.rapidsite.jp/product/support/shop/epsilon.html'); return false;" >¥¤¥×¥·¥í¥ó</a>¤Ë·ÀÌó¤¹¤ëÉ¬Í×¤¬¤¢¤ê¤Þ¤¹¡£)", "mdl_epsilon/mdl_epsilon.php", "mdl_epsilon/mdl_epsilon.php", "", "", "mdl_epsilon/mdl_epsilon.tpl|mdl_epsilon/card.php|mdl_epsilon/convenience.php|mdl_epsilon/convenience.tpl|mdl_epsilon/mdl_epsilon.inc", "0", "", "2006-12-19 00:00:00","1.0.2","500","460"
-"5", "¥ë¥ß¡¼¥º·èºÑ¥â¥¸¥å¡¼¥ë", "", "1.0", "¥ë¥ß¡¼¥º·èºÑ¥â¥¸¥å¡¼¥ë¤ò»ÈÍÑ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£(¤³¤Î¥â¥¸¥å¡¼¥ë¤ò»ÈÍÑ¤¹¤ë¤Ë¤Ï<a href="#" onClick="window.open('http://www.remise.jp/'); return false;" >¥ë¥ß¡¼¥º</a>¤Ë·ÀÌó¤¹¤ëÉ¬Í×¤¬¤¢¤ê¤Þ¤¹¡£)", "mdl_remise/mdl_remise.php", "mdl_remise/mdl_remise.php", "", "", "mdl_remise/mdl_remise.tpl|mdl_remise/card.php|mdl_remise/convenience.php|mdl_remise/card.tpl|mdl_remise/convenience.tpl|mdl_remise/mdl_remise.inc", "0", "", "2007-03-15 00:00:00","1.2.0-beta","500","600"
-"6", "¥»¥­¥å¥ê¥Æ¥£¥Á¥§¥Ã¥¯¥Ä¡¼¥ë", "", "1.0", "¥µ¥¤¥È¤ÎÀÈ¼åÀ­¤ò¥Á¥§¥Ã¥¯¤·¤Þ¤¹", "security/security.php", "security/security.php", "", "", "security/security.tpl", "0", "", "2007-04-03 00:00:00","0.9.9","500","330"
-"7", "¤Æ¤¹¤È", "", "1.0", "¥Ö¥ì¥¤¥óML¤ÎÀßÄê¤¬¤Ç¤­¤Þ¤¹¡£", "blayn/blayn.php", "blayn/blayn.php", "", "", "blayn/blayn.tpl", "0", "", "2007-06-07 00:00:00","1.3.0","500","330"
+"1", "AD EBiS¥¿¥°Ëä¤á¹þ¤ß", "", "1.30", "¥¢¥É¥¨¥Ó¥¹¡Ê¥¢¥¯¥»¥¹²òÀÏ¥ª¥×¥·¥ç¥ó¤ò´Þ¤à¡Ë¤Î¥¿¥°¤ò¼«Æ°Åª¤ËËä¤á¹þ¤ß¤Þ¤¹", "mdl_ebis_tag/ebis_tag.php", "mdl_ebis_tag/ebis_tag.php", "", "", "mdl_ebis_tag/ebis_tag.tpl|mdl_ebis_tag/ebis_tag_text.tpl", "0", "", "2007-07-21 00:00:00","1.4.2-beta","500","620","mdl_icons/icon_ebis_tag.gif", "http://www.ebis.ne.jp/"
+"3", "¥¢¥Õ¥£¥ê¥¨¥¤¥È¥¿¥°Ëä¤á¹þ¤ß", "", "1.21", "²ñ°÷ÅÐÏ¿´°Î»¡¢¾¦ÉÊ¹ØÆþ´°Î»¥Ú¡¼¥¸¤Ë¥¿¥°¤òËä¤á¹þ¤ß¤Þ¤¹", "affiliate.php", "affiliate.php", "", "", "affiliate.tpl", "0", "", "2006-10-16 00:00:00","1.0.1","500","460","mdl_icons/icon_affiliate.gif","http://www.ec-cube.net/"
+"4", "¥¤¥×¥·¥í¥ó·èºÑ¥â¥¸¥å¡¼¥ë", "", "1.2", "¥¤¥×¥·¥í¥ó·èºÑ¥â¥¸¥å¡¼¥ë¤ò»ÈÍÑ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£", "mdl_epsilon/mdl_epsilon.php", "mdl_epsilon/mdl_epsilon.php", "", "", "mdl_epsilon/mdl_epsilon.tpl|mdl_epsilon/card.php|mdl_epsilon/convenience.php|mdl_epsilon/convenience.tpl|mdl_epsilon/mdl_epsilon.inc", "0", "", "2006-12-19 00:00:00","1.0.2","500","460","","http://www.epsilon.jp/"
+"5", "¥ë¥ß¡¼¥º·èºÑ¥â¥¸¥å¡¼¥ë", "", "1.0", "¥ë¥ß¡¼¥º·èºÑ¥â¥¸¥å¡¼¥ë¤ò»ÈÍÑ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£", "mdl_remise/mdl_remise.php", "mdl_remise/mdl_remise.php", "", "", "mdl_remise/mdl_remise.tpl|mdl_remise/card.php|mdl_remise/convenience.php|mdl_remise/card.tpl|mdl_remise/convenience.tpl|mdl_remise/mdl_remise.inc", "0", "", "2007-03-15 00:00:00","1.2.0-beta","500","600","","http://www.remise.jp/"
+"6", "¥»¥­¥å¥ê¥Æ¥£¥Á¥§¥Ã¥¯¥Ä¡¼¥ë", "", "1.0", "¥µ¥¤¥È¤ÎÀÈ¼åÀ­¤ò¥Á¥§¥Ã¥¯¤·¤Þ¤¹", "security/security.php", "security/security.php", "", "", "security/security.tpl", "0", "", "2007-04-03 00:00:00","0.9.9","500","330","mdl_icons/icon_security.gif","http://www.ec-cube.net/"
+"7", "¥Ö¥ì¥¤¥ó¥á¡¼¥ëÇÛ¿®¤ÎÀßÄê¥â¥¸¥å¡¼¥ë", "", "1.0", "¥Ö¥ì¥¤¥ó¥á¡¼¥ëÇÛ¿®¤ÎÀßÄê¤¬¤Ç¤­¤Þ¤¹¡£", "blayn/blayn.php", "blayn/blayn.php", "", "", "blayn/blayn.tpl", "0", "", "2007-06-07 00:00:00","1.4.0-beta","500","330","","http://www.blaynmail.jp/"
+"8", "¥¼¥í·èºÑ¥â¥¸¥å¡¼¥ë", "", "1.0", "¥¼¥í·èºÑ¥â¥¸¥å¡¼¥ë¤ò»ÈÍÑ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£", "mdl_zero/mdl_zero.php", "mdl_zero/mdl_zero.php", "", "", "mdl_zero/mdl_zero.tpl|mdl_zero/card.php|mdl_zero/mdl_zero.inc|mdl_zero/card_mobile.tpl|mdl_zero/recv.php", "0", "", "2007-06-20 00:00:00","1.4.1-beta","500","560","","http://www.zeroweb.co.jp/"
Index: anches/beta/data/downloads/module/ebis_tag_text.tpl
===================================================================
--- /branches/beta/data/downloads/module/ebis_tag_text.tpl	(revision 8)
+++ 	(revision )
@@ -1,14 +1,0 @@
-<!-- EBiS tag version2.00 start -->
-<script type="text/javascript">
-if ( location.protocol == 'http:' ){ 
-	strServerName = 'http://daikoku.ebis.ne.jp'; 
-} else { 
-	strServerName = 'https://secure2.ebis.ne.jp/ver3';
-}
-cid = '<!--{$arrEbis.cid}-->'; pid = '<!--{$arrEbis.pid}-->'; m1id='<!--{$arrEbis.m1id}-->'; a1id='<!--{$arrEbis.a1id}-->'; o1id='<!--{$arrEbis.o1id}-->'; o2id='<!--{$arrEbis.o2id}-->'; o3id='<!--{$arrEbis.o3id}-->'; o4id='<!--{$arrEbis.o4id}-->'; o5id='<!--{$arrEbis.o5id}-->';
-document.write("<scr" + "ipt type=\"text\/javascript\" src=\"" + strServerName + "\/ebis_tag.php?cid=" + cid + "&pid=" + pid + "&m1id=" + m1id + "&a1id=" + a1id + "&o1id=" + o1id + "&o2id=" + o2id + "&o3id=" + o3id + "&o4id=" + o4id + "&o5id=" + o5id + "\"><\/scr" + "ipt>");
-</script>
-<noscript>
-<img src="https://secure2.ebis.ne.jp/ver3/log.php?argument=<!--{$smarty.const.EBIS_CID}-->&ebisPageID=<!--{$arrEbis.pid}-->" width="0" height="0">
-</noscript>
-<!-- EBiS tag end -->
Index: anches/beta/data/downloads/module/ebis_tag.php
===================================================================
--- /branches/beta/data/downloads/module/ebis_tag.php	(revision 17)
+++ 	(revision )
@@ -1,65 +1,0 @@
-<?php
-/**
- * 
- * @copyright	2000-2007 LOCKON CO.,LTD. All Rights Reserved.
- * @version	CVS: $Id: ebis_tag.php 7224 2006-11-19 06:38:01Z kakinaka $
- * @link		http://www.lockon.co.jp/
- *
- */
-
-require_once("../../require.php");
-
-//¥Ú¡¼¥¸´ÉÍý¥¯¥é¥¹
-class LC_Page {
-	//¥³¥ó¥¹¥È¥é¥¯¥¿
-	function LC_Page() {
-		//¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È¤Î»ØÄê
-		$this->tpl_mainpage = MODULE_PATH . 'ebis_tag.tpl';
-		$this->tpl_subtitle = 'EBiS¥¿¥°Ëä¤á¹þ¤ßµ¡Ç½';
-	}
-}
-$objPage = new LC_Page();
-$objView = new SC_AdminView();
-
-// Ç§¾Ú³ÎÇ§
-$objSess = new SC_Session();
-sfIsSuccess($objSess);
-
-// ¥Ñ¥é¥á¡¼¥¿´ÉÍý¥¯¥é¥¹
-$objFormParam = new SC_FormParam();
-$objFormParam = lfInitParam($objFormParam);
-// POSTÃÍ¤Î¼èÆÀ
-$objFormParam->setParam($_POST);
-
-switch($_POST['mode']) {
-case 'edit':
-	// ÆþÎÏ¥¨¥é¡¼È½Äê
-	$objPage->arrErr = $objFormParam->checkError();
-	if(count($objPage->arrErr) == 0) {
-		$arrRet = $objFormParam->getHashArray();
-		$sqlval['sub_data'] = serialize($arrRet);
-		$objQuery = new SC_Query();
-		$objQuery->update("dtb_module", $sqlval, "module_id = ?", array(EBIS_TAG_MID));
-		// javascript¼Â¹Ô
-		$objPage->tpl_onload = "window.close();";
-	}
-	break;
-default:
-	$arrRet = $objQuery->select("sub_data", "dtb_module", "module_id = ?", array(EBIS_TAG_MID));
-	$arrSubData = unserialize($arrRet[0]['sub_data']);
-	$objFormParam->setParam($arrSubData);
-	break;
-}
-
-$objPage->arrForm = $objFormParam->getFormParamList();
-$objView->assignobj($objPage);		//ÊÑ¿ô¤ò¥Æ¥ó¥×¥ì¡¼¥È¤Ë¥¢¥µ¥¤¥ó¤¹¤ë
-$objView->display($objPage->tpl_mainpage);		//¥Æ¥ó¥×¥ì¡¼¥È¤Î½ÐÎÏ
-//-------------------------------------------------------------------------------------------------------
-/* ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½ */
-function lfInitParam($objFormParam) {
-	$objFormParam->addParam("¥æ¡¼¥¶ID", "user", STEXT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK"));
-	$objFormParam->addParam("¥Ñ¥¹¥ï¡¼¥É", "pass", STEXT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK"));
-	$objFormParam->addParam("¥¿¥°¼±ÊÌID", "cid", STEXT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK"));
-	return $objFormParam;
-}
-?>
Index: anches/beta/data/downloads/module/ebis_tag.tpl
===================================================================
--- /branches/beta/data/downloads/module/ebis_tag.tpl	(revision 17)
+++ 	(revision )
@@ -1,142 +1,0 @@
-<!--{*
-/*
- * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
- *
- * http://www.lockon.co.jp/
- */
-*}-->
-<!--¡¡-->
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
-
-<head>
-<meta http-equiv="content-type" content="application/xhtml+xml; charset=<!--{$smarty.const.CHAR_CODE}-->" />
-<meta http-equiv="content-script-type" content="text/javascript" />
-<meta http-equiv="content-style-type" content="text/css" />
-<link rel="stylesheet" href="/ec-cube/admin/css/contents.css" type="text/css" media="all" />
-<script type="text/javascript" src="/ec-cube/js/css.js"></script>
-<script type="text/javascript" src="/ec-cube/js/navi.js"></script>
-<script type="text/javascript" src="/ec-cube/js/win_op.js"></script>
-<script type="text/javascript" src="/ec-cube/js/site.js"></script>
-<script type="text/javascript" src="/ec-cube/js/admin.js"></script>
-<!--{include file='css/contents.tpl'}-->
-<title><!--{$tpl_subtitle}--></title>
-<script type="text/javascript">
-<!--
-self.moveTo(20,20);self.focus();
-//-->
-</script>
-</head>
-
-<body bgcolor="#ffffff" text="#666666" link="#007bb7" vlink="#007bb7" alink="#cc0000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="<!--{$tpl_onload}-->">
-<noscript>
-<link rel="stylesheet" href="/ec-cube/admin/css/common.css" type="text/css" />
-</noscript>
-
-<div align="center">
-<!--¡ú¡ú¥á¥¤¥ó¥³¥ó¥Æ¥ó¥Ä¡ú¡ú-->
-<table width="500" border="0" cellspacing="0" cellpadding="0" summary=" ">
-<form name="form1" id="form1" method="post" action="<!--{$smarty.server.REQUEST_URI|escape}-->">
-<input type="hidden" name="mode" value="edit">
-	<tr valign="top">
-		<td class="mainbg">
-			<!--¢§ÅÐÏ¿¥Æ¡¼¥Ö¥ë¤³¤³¤«¤é-->
-			<table width="500" border="0" cellspacing="0" cellpadding="0" summary=" ">
-				<!--¥á¥¤¥ó¥¨¥ê¥¢-->
-				<tr>
-					<td align="center">
-						<table width="470" border="0" cellspacing="0" cellpadding="0" summary=" ">
-							<tr><td height="14"></td></tr>
-							<tr>
-								<td colspan="3"><img src="/ec-cube/img/contents/main_top.jpg" width="470" height="14" alt=""></td>
-							</tr>
-							<tr>
-								<td background="/ec-cube/img/contents/main_left.jpg"><img src="/ec-cube/img/common/_.gif" width="14" height="1" alt=""></td>
-								<td bgcolor="#cccccc">
-									
-									<table width="440" border="0" cellspacing="0" cellpadding="0" summary=" ">
-										<tr>
-											<td colspan="3"><img src="/ec-cube/img/contents/contents_title_top.gif" width="440" height="7" alt=""></td>
-										</tr>
-										<tr>
-											<td background="/ec-cube/img/contents/contents_title_left_bg.gif"><img src="/ec-cube/img/contents/contents_title_left.gif" width="22" height="12" alt=""></td>
-											<td bgcolor="#636469" width="400" class="fs14n"><span class="white"><!--¥³¥ó¥Æ¥ó¥Ä¥¿¥¤¥È¥ë--><!--{$tpl_subtitle}--></span></td>
-											<td background="/ec-cube/img/contents/contents_title_right_bg.gif"><img src="/ec-cube/img/common/_.gif" width="18" height="1" alt=""></td>
-										</tr>
-										<tr>
-											<td colspan="3"><img src="/ec-cube/img/contents/contents_title_bottom.gif" width="440" height="7" alt=""></td>
-										</tr>
-										<tr>
-											<td colspan="3"><img src="/ec-cube/img/contents/main_bar.jpg" width="440" height="10" alt=""></td>
-										</tr>
-									</table>
-									
-									<table width="440" border="0" cellspacing="1" cellpadding="8" summary=" ">
-										<tr class="fs12n">
-											<td width="90" bgcolor="#f3f3f3">¥æ¡¼¥¶ID<span class="red">¢¨</span></td>
-											<td width="337" bgcolor="#ffffff">
-											<span class="red"><!--{$arrErr.user}--></span>
-											<input type="text" name="user" size="30" style="<!--{$arrErr.user|sfGetErrorColor}-->" value="<!--{$arrForm.user.value}-->" class="box30" maxlength="50"/>
-											</td>
-										</tr>	
-										<tr class="fs12n">
-											<td width="90" bgcolor="#f3f3f3">¥Ñ¥¹¥ï¡¼¥É<span class="red">¢¨</span></td>
-											<td width="337" bgcolor="#ffffff">
-											<span class="red"><!--{$arrErr.pass}--></span>
-											<input type="password" name="pass" size="30" style="<!--{$arrErr.pass|sfGetErrorColor}-->" value="<!--{$arrForm.pass.value}-->" class="box30" maxlength="50"/>
-											</td>
-										</tr>	
-										<tr class="fs12n">
-											<td width="90" bgcolor="#f3f3f3">¥¿¥°¼±ÊÌID<span class="red">¢¨</span></td>
-											<td width="337" bgcolor="#ffffff">
-											<span class="red"><!--{$arrErr.cid}--></span>
-											<input type="text" name="cid" size="30" style="<!--{$arrErr.cid|sfGetErrorColor}-->" value="<!--{$arrForm.cid.value}-->" class="box30" maxlength="50"/>
-											</td>
-										</tr>										
-									</table>
-
-									<table width="440" border="0" cellspacing="0" cellpadding="0" summary=" ">
-										<tr>
-											<td bgcolor="#cccccc"><img src="/ec-cube/img/common/_.gif" width="1" height="5" alt=""></td>
-											<td><img src="/ec-cube/img/contents/tbl_top.gif" width="438" height="7" alt=""></td>
-											<td bgcolor="#cccccc"><img src="/ec-cube/img/common/_.gif" width="1" height="5" alt=""></td>
-										</tr>
-										<tr>
-											<td bgcolor="#cccccc"><img src="/ec-cube/img/common/_.gif" width="1" height="10" alt=""></td>
-											<td bgcolor="#e9e7de" align="center">
-											<table border="0" cellspacing="0" cellpadding="0" summary=" ">
-												<tr>
-													<td><input type="image" onMouseover="chgImgImageSubmit('/ec-cube/img/contents/btn_regist_on.jpg',this)" onMouseout="chgImgImageSubmit('/ec-cube/img/contents/btn_regist.jpg',this)" src="/ec-cube/img/contents/btn_regist.jpg" width="123" height="24" alt="¤³¤ÎÆâÍÆ¤ÇÅÐÏ¿¤¹¤ë" border="0" name="subm" ></td>
-												</tr>
-											</table>
-											</td>
-											<td bgcolor="#cccccc"><img src="/ec-cube/img/common/_.gif" width="1" height="10" alt=""></td>
-										</tr>
-										<tr>
-											<td colspan="3"><img src="/ec-cube/img/contents/tbl_bottom.gif" width="440" height="8" alt=""></td>
-										</tr>
-									</table>
-								</td>
-								<td background="/ec-cube/img/contents/main_right.jpg"><img src="/ec-cube/img/common/_.gif" width="14" height="1" alt=""></td>
-							</tr>
-							<tr>
-								<td colspan="3"><img src="/ec-cube/img/contents/main_bottom.jpg" width="470" height="14" alt=""></td>
-							</tr>
-							<tr><td height="30"></td></tr>
-						</table>
-					</td>
-				</tr>
-				<!--¥á¥¤¥ó¥¨¥ê¥¢-->
-			</table>
-			<!--¢¥ÅÐÏ¿¥Æ¡¼¥Ö¥ë¤³¤³¤Þ¤Ç-->
-		</td>
-	</tr>
-</form>
-</table>
-<!--¡ú¡ú¥á¥¤¥ó¥³¥ó¥Æ¥ó¥Ä¡ú¡ú-->
-</div>
-
-</body>
-</html>
-
-
