AtomEntry example

function start_element($parser$name$attrs) {

        $name_parts = explode(":", $name);
        $tag        = array_pop($name_parts);

        switch($name) {
            case $this->NS . ':feed':
                $this->current = $this->feed;
                break;
            case $this->NS . ':entry':
                $this->current = new AtomEntry();
                break;
        };

        $this->_p("start_element('$name')");
        #$this->_p(print_r($this->ns_contexts,true));         #$this->_p('current(' . $this->current . ')');
        array_unshift($this->ns_contexts, $this->ns_decls);

        $this->depth++;

        
Home | Imprint | This part of the site doesn't use cookies.