Index: trunk/xpressme_integration_kit/include/xml.php
===================================================================
--- trunk/xpressme_integration_kit/include/xml.php	(revision 232)
+++ trunk/xpressme_integration_kit/include/xml.php	(revision 353)
@@ -85,4 +85,21 @@
 		$this->stack    = array();
 		$this->parent   = &$this->document;
+		
+		//libxml2 ver.2.7.0 -2.7.2 stripping leading angle brackets bug patch
+		if ( 
+			LIBXML_DOTTED_VERSION == '2.7.0' 
+			|| LIBXML_DOTTED_VERSION == '2.7.1' 
+			|| LIBXML_DOTTED_VERSION == '2.7.2' 
+			|| (
+				LIBXML_DOTTED_VERSION == '2.7.3'
+				&& version_compare( PHP_VERSION, '5.2.9', '<' )
+			)
+		) {
+			$data =str_replace('&lt;','&#60;',$data );
+			$data =str_replace('&gt;','&#62;',$data );
+			$data =str_replace('&amp;','&#38;',$data );
+		}
+		//end Fix
+		
 		// return xml_parse(&$this->parser, &$data, true) ? $this->document : NULL; // GIJ
 		$ret = @xml_parse($this->parser, $data, true) ? $this->document : NULL;
