i search alot for this but can't find an aswer...
I have made a working xml parser using php.
till today i host my files on a free web host, and everything works just fine.
today i got access to my college server and i host my files there.

now for some reason.. i can't make the parser work as i was in the free host...

**look on those files please:**
working site:

xml file:
[http://ofear.onlinewebshop.net/asce/calendar.xml]

working parser is this: [http://ofear.onlinewebshop.net/asce/calendar.php]

(the lower table is the xml,it's hebrew)

**not working site:**

xml file: [http://apps.sce.ac.il/agoda/calendar.xml]

not working parser is this: [http://apps.sce.ac.il/agoda/calendar.php]

anyone have idea why it's not working.. those are the same files and they should work.

**maybe it a server problem?**

calendar.xml:

```
<?xml version="1.0" encoding="UTF-8" ?>
<events>
    <record>
        <event>ערב פתוח לקורס מורי דרך</event>
        <eventDate>30/12/2010</eventDate>
        <desc>בשלוחת תל אביב</desc>
    </record>
        <record>
        <event>כנס חיפה לתיירות - 2 : נכנס יין יצאה תיירות</event>
        <eventDate>22/12/2010</eventDate>
        <desc>המרכז לחקר התיירות בשיתוף בית הספר לתיירות בישראל שמחים להודיע על כנס חיפה לתיירות 2 שיתקיים בחיפה בתאריכים 22-23 בדצמבר 2010. השנה יוקדש הכנס לנושא "תיירות היין"</desc>
    </record>
        <record>
        <event>פתיחת קורס מפעילי תיירות - תל אביב</event>
        <eventDate>5/12/2010</eventDate>
        <desc>ימי ראשון 17:30-20:45</desc>
    </record>
</events>

```

parser:

```
<?php
$doc = new DOMDocument();
$doc->load( 'calendar.xml' );

$events = $doc->getElementsByTagName( "record" );
foreach( $events as $record )
{
  $events = $record->getElementsByTagName( "event" );
  $event = $events->item(0)->nodeValue;

  $eventDates= $record->getElementsByTagName( "eventDate" );
  $eventDate= $eventDates->item(0)->nodeValue;

  $descs = $record->getElementsByTagName( "desc" );
  $desc = $descs->item(0)->nodeValue;

  echo "<tr><td>$event</td><td>$eventDate</td><td>$desc</td></tr>";
  }
?>

```

after a little debugging i saw that it's stop here:
 $doc = new DOMDocument();
and it's not doing anything after that. i think that the line above is the cos