/* * 360Link XML Utility Methods */ // Checking for a diagnostic message: function docxml_has_diagnostic($xmldomdoc) { $diagnostics = $xmldomdoc->get_elements_by_tagname('diagnostics'); if (count($diagnostics) > 0) { return true; } else { return false; } } // Checking for multiple articles: function docxml_has_multiple_article_results($xmldomdoc) { $results = $xmldomdoc->get_elements_by_tagname('result'); if (count($results) > 1) { return true; } else { return false; } } // Checking for fulltext links: function docxml_has_link_groups($xmldomdoc) { $link_groups = $xmldomdoc->get_elements_by_tagname('linkGroups'); if (count($link_groups) > 0) { return true; } else { return false; } }