title: Parsing google calendar XML feed
body: <p>I've got XML feed from public google calendar. Looks like this:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt;
      &lt;feed xmlns='................' xmlns:gd='http://schemas.google.com/g/2005'&gt;
          &lt;id&gt;http://www.google.com/calendar/feeds/........./public/full&lt;/id&gt;
          &lt;updated&gt;2009-08-24T10:57:00.000Z&lt;/updated&gt;
          &lt;category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/g/2005#event'/&gt;
              &lt;title type='text'&gt;Sports Events&lt;/title&gt;
      .....
          &lt;entry&gt;
              &lt;id&gt;...........&lt;/id&gt;
              &lt;published&gt;2009-08-14T00:29:58.000Z&lt;/published&gt;
              &lt;updated&gt;2009-08-14T00:29:58.000Z&lt;/updated&gt;
              &lt;category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/g/2005#event'/&gt;
  ..............
              &lt;georss:where&gt;
                  &lt;gml:Point&gt;
                      &lt;gml:pos&gt;11.111111 -22.22222&lt;/gml:pos&gt;
                  &lt;/gml:Point&gt;
              &lt;/georss:where&gt;
              &lt;gd:eventStatus value='http://schemas.google.com/g/2005#event.confirmed'/&gt;
              &lt;gd:transparency value='http://schemas.google.com/g/2005#event.transparent'/&gt;
              &lt;gCal:uid value='.........@google.com'/&gt;
              &lt;gCal:sequence value='0'/&gt;
              &lt;gd:when startTime='2009-10-03' endTime='2009-10-04'/&gt;
  
  .............
  </code></pre>
  
  <p>Now to PHP:</p>
  
  <pre><code>$calendar = simplexml_load_file('http://my.feed.com');
  foreach ($calendar-&gt;entry as $item) {
      //here I get the whole &lt;entry&gt; node
      $gd = $item-&gt;children('http://schemas.google.com/g/2005');
      // now in $gd I have all nodes like &lt;gd:XXXXX&gt;
  }
  </code></pre>
  
  <p>The problem is how to get value from here?</p>
  
  <pre><code>&lt;gml:pos&gt;11.111111 -22.22222&lt;/gml:pos&gt;
  </code></pre>
  
  <p>Its not present in my $gd variable, how to get this node?</p>