Index: trunk/xpressme_integration_kit/include/xml.php
===================================================================
--- trunk/xpressme_integration_kit/include/xml.php	(revision 386)
+++ trunk/xpressme_integration_kit/include/xml.php	(revision 387)
@@ -88,5 +88,6 @@
 		//libxml2 ver.2.7.0 -2.7.2 stripping leading angle brackets bug patch
 		if ( 
-			LIBXML_DOTTED_VERSION == '2.7.0' 
+			$GLOBALS['DO_LIBXML_PATCH'] == '1' 
+			|| LIBXML_DOTTED_VERSION == '2.7.0' 
 			|| LIBXML_DOTTED_VERSION == '2.7.1' 
 			|| LIBXML_DOTTED_VERSION == '2.7.2' 
Index: trunk/xpressme_integration_kit/include/xpress_block_render.php
===================================================================
--- trunk/xpressme_integration_kit/include/xpress_block_render.php	(revision 386)
+++ trunk/xpressme_integration_kit/include/xpress_block_render.php	(revision 387)
@@ -24,5 +24,7 @@
 			$xml_name = $block_name . '.xml';
 			$xml_data = xpress_cache_read($mydirname,$xml_name);
-
+			
+			$GLOBALS['DO_LIBXML_PATCH'] = get_xpress_mod_config($mydirname,'libxml_patch');
+			
 			$ret = @xpress_XML_unserialize($xml_data);
 			if (strstr($xml_data, '<?xml version="1.0" encoding="EUC-JP" ?>') !== false){
@@ -266,4 +268,24 @@
         } 
     } 
+    
+    function get_xpress_mod_config($mydirname,$conf_name=''){
+		$module_handler =& xoops_gethandler('module');
+		$xoopsModule =& $module_handler->getByDirname($mydirname);
+		$mid = $xoopsModule->getVar('mid');
+		$xoopsDB =& Database::getInstance();
+		$db_config = $xoopsDB->prefix('config');
+	    
+		$wu_sql  = 	"SELECT conf_value FROM  $db_config ";
+		$wu_sql .=	"WHERE (conf_modid = $mid ) AND (conf_name LIKE '$conf_name')";
+		$wu_res = $xoopsDB->queryF($wu_sql, 0, 0);
+			
+		if ($wu_res === false){
+			return 0;
+		} else {
+			$xu_row = $xoopsDB->fetchArray($wu_res);
+			return $xu_row['conf_value'];
+		}
+	}
+
 }	
 ?>
Index: trunk/xpressme_integration_kit/language/english/modinfo.php
===================================================================
--- trunk/xpressme_integration_kit/language/english/modinfo.php	(revision 386)
+++ trunk/xpressme_integration_kit/language/english/modinfo.php	(revision 387)
@@ -22,4 +22,10 @@
 	define("_MI_XP2_MENU_XPRESS","XPressME Setting");
 	define("_MI_XP2_MENU_TO_MODULE","to Modules");
+
+	// Module Config
+	define("_MI_LIBXML_PATCH","Force a patch for the libxml2 bug in a block");
+	define("_MI_LIBXML_PATCH_DESC","libxml2 Ver 2.70-2.72 have the bug that '<' and '>' are removed. 
+XPressME acquires a version of libxml2 automatically, and it is adapted a patch if it is necessary. 
+When XPressME cannot acquire a version of libxml2, you can let a patch fit it with this option forcibly.");
 
 	// Block Name
Index: trunk/xpressme_integration_kit/language/ja_utf8/modinfo.php
===================================================================
--- trunk/xpressme_integration_kit/language/ja_utf8/modinfo.php	(revision 386)
+++ trunk/xpressme_integration_kit/language/ja_utf8/modinfo.php	(revision 387)
@@ -22,4 +22,10 @@
 	define("_MI_XP2_MENU_XPRESS","XPressME設定");
 	define("_MI_XP2_MENU_TO_MODULE","モジュールへ");
+
+	// Module Config
+	define("_MI_LIBXML_PATCH","ブロックでlibxml2 バグに対するパッチを強制適応する");
+	define("_MI_LIBXML_PATCH_DESC","libxml2 Ver 2.70-2.72には'<'と'>'が取り除かれるバグがあります。
+XPressMEはlibxml2のバージョンを自動的に取得し、必要であればパッチが適応されます。
+XPressMEがlibxml2のバージョンを取得できない場合、このオプションで強制的にパッチを適応させることができます。");
 
 	// Block Name
Index: trunk/xpressme_integration_kit/xoops_version.php
===================================================================
--- trunk/xpressme_integration_kit/xoops_version.php	(revision 386)
+++ trunk/xpressme_integration_kit/xoops_version.php	(revision 387)
@@ -118,15 +118,13 @@
 $modversion['templates'] = array() ;
 
-if (defined('ICMS_ROOT_PATH')){
-	$modversion['hasconfig'] = 1;
-	$modversion['config'][] = array(
-		'name'			=> 'dummy' ,
-		'title'			=>  'Dummy Value' ,
-		'description'	=>  'This is Dummy Value' ,
-		'formtype'		=> 'yesno' ,
-		'valuetype'		=> 'int' ,
-		'default'		=> 0 ,
-	);
-}
+$modversion['hasconfig'] = 1;
+$modversion['config'][] = array(
+	'name'			=> 'libxml_patch' ,
+	'title'			=>  '_MI_LIBXML_PATCH' ,
+	'description'	=>  '_MI_LIBXML_PATCH_DESC' ,
+	'formtype'		=> 'yesno' ,
+	'valuetype'		=> 'int' ,
+	'default'		=> 0 ,
+);
 
 //BLOCKS
