I am trying to use xml as a datastore. I am using PHP code to retrieve the data, assign the data bits to a variable, then write the variable to the page. One "field" I have is for an article body of text. When I try to display this, only part of the article is displayed. At first I was thinking it was an xml issue, but now I'm not so sure.

Is this an issue with my PHP code or XML? Any ideas what's happening or what I am doing wrong?

Here are links to the xml page, the php page and below is the code used to pull the data from the xml page.

Thanks.
Irvin Amoraal. <><

http://www.ivan-isabel.com/test/test.xml <- XML datastore
http://www.ivan-isabel.com/test/articles.php <- PHP/XML (cut-off text)
http://www.ivan-isabel.com/articles.html <- Static version (full text)

Code:
class parse{
function startElement($parser, $name, $attrs){
	 global $currentTag;
	 $currentTag=$name;
}
function endElement($parser, $tag){
	 global $currentTag;
	 $currentTag="";
}
function getInfo($parser, $data){
	 global $currentTag;
	 $this->info_array[$currentTag]=$data;
	 // echo("$currentTag<br>");
	 switch ($currentTag) {
		 case 'TITLE':
			 global $title;
			 $title = $data;
			 break;
		 case 'ART_DATE':
				 global $artDate;
				 $artDate = $data;
				 break;
		 case 'AUTHOR':
				 global $author;
				 $author = $data;
				 break;
		 case 'FOOTER':
				 global $footer;
				 $footer = $data;
				 break;	
		 } 
	 }
 
	function parseXML($data){
		 // make the parser to get the XML
		$xml_parser = xml_parser_create();
		xml_set_object($xml_parser, $this);
		 xml_set_element_handler($xml_parser, "startElement", "endElement");
		xml_set_character_data_handler($xml_parser, "getInfo");
		 xml_parse($xml_parser, $data);
		 xml_parser_free($xml_parser);
	}
}
$fp=fopen("test.xml", "r"); 
$info=fread($fp, 4096);
$parse=new parse;
$parse->parseXML($info);