// First, get the citation container, it has everything we need $citation_container = array_pop( $xmldomdoc->get_elements_by_tagname('citation')); // Then, get the container and content for each variable to display: // author $creator_container = array_pop( $citation_container->get_elements_by_tagname('creator')); if (is_callable(array($creator_container,'get_content'))) { $au = $creator_container->get_content(); } // journal title $source_container = array_pop( $citation_container->get_elements_by_tagname('source')); if (is_callable(array($source_container,'get_content'))) { $jtitle = $source_container->get_content(); } // article title $atitle_container = array_pop( $citation_container->get_elements_by_tagname('title')); if (is_callable(array($atitle_container,'get_content'))) { $atitle = $atitle_container->get_content(); } // volume $volume_container = array_pop( $citation_container->get_elements_by_tagname('volume')); if (is_callable(array($volume_container,'get_content'))) { $volume = $volume_container->get_content(); } // issue $issue_container = array_pop( $citation_container->get_elements_by_tagname('issue')); if (is_callable(array($issue_container,'get_content'))) { $issue = $issue_container->get_content(); } // page numbers $pages_container = array_pop( $citation_container->get_elements_by_tagname('spage')); if (is_callable(array($pages_container,'get_content'))) { $pages = $pages_container->get_content(); }