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.

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)

class parse{
function startElement($parser, $name, $attrs){
	 global $currentTag;
function endElement($parser, $tag){
	 global $currentTag;
function getInfo($parser, $data){
	 global $currentTag;
	 // echo("$currentTag<br>");
	 switch ($currentTag) {
		 case 'TITLE':
			 global $title;
			 $title = $data;
		 case 'ART_DATE':
				 global $artDate;
				 $artDate = $data;
		 case 'AUTHOR':
				 global $author;
				 $author = $data;
		 case 'FOOTER':
				 global $footer;
				 $footer = $data;
	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);
$fp=fopen("test.xml", "r"); 
$info=fread($fp, 4096);
$parse=new parse;