Example #1
0
function parseArtist($n)
{
    return (object) array('uri' => $n->getAttribute('href'), 'name' => firstChild($n, 'name')->nodeValue);
}
Example #2
0
 function hasChildren($elementname = NULL)
 {
     if ($elementname) {
         return firstChild($elementname) != NULL;
     } else {
         return isset($this->_subelements[0]);
     }
 }