# Xml Parser Script Not showing up

**URL:** <https://forum.kirupa.com/t/xml-parser-script-not-showing-up/239588>\
**Category:** Uncategorized\
**Created:** [September 23, 2007, 10:24pm UTC](https://forum.kirupa.com/t/xml-parser-script-not-showing-up/239588 "2007-09-23T22:24:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeremy1987](https://avatars.discourse-cdn.com/v4/letter/j/c5a1d2/32.png) [@jeremy1987](https://forum.kirupa.com/u/jeremy1987)\
**Post date:** [September 23, 2007, 10:24pm UTC](https://forum.kirupa.com/t/xml-parser-script-not-showing-up/239588/1 "2007-09-23T22:24:45Z")

</div>

For some reason my script it just not showing up at all im just seeing a blank white screen and im not getting any errors. Ive tried a number of things and ive been working on this same problem for hours and im getting no where.

Can someone please help me out.

```php
<?php
error_reporting( E_ALL ); ini_set( 'display_errors', 'on' );
$uploadLocation = "images/";

   
    if (isset($_POST['submitBtn'])){

$target_path = $uploadLocation . basename( $_FILES['upfile']['name']);
    }
if(move_uploaded_file($_FILES['upfile']['tmp_name'], $target_path)) {
    echo "The file: ". basename( $_FILES['upfile']['name']).
    " has been uploaded!";
} else{
    echo "There was an error uploading the file, please try again!";
}     

$file = "test.xml";

function contents($parser, $description){
    echo $description;
}
if(isset($_POST['description'])) 
$description = $_POST['description']; 
else /**/error

function {startTag($parser, $description)
    echo "<b>";
}

function endTag($parser, $description){
    echo "</b><br />";
}

$xml_parser = xml_parser_create();

xml_set_element_handler($xml_parser, "startTag", "endTag");

xml_set_character_data_handler($xml_parser, "contents");

$fp = fopen($file, "r");

if((xml_parser($xml_parser, $description, feof($fp))))
{
    die("Error on line " . xml_get_current_line_number($xml_parser));
}

xml_parser_free($xml_parser);

fclose($fp);

?>

```
