',trim($link),trim($title)); if ($show_detail) printf('',trim($description)); $title = ""; $description = ""; $link = ""; $insideitem = false; } else if ($count >= $max) { $title = ""; $description = ""; $link = ""; $insideitem = false; } } function characterData($parser, $data) { global $insideitem, $tag, $title, $description, $link, $insideimage; if ($insideimage) { switch ($tag) { case "URL": break; } } if ($insideitem ) { switch ($tag) { case "TITLE": $title .= $data; break; case "DESCRIPTION": $description .= $data; break; case "LINK": if (!is_string($link)) $link=""; $link .= $data; break; } } }?>

NATURAL GAS DAILY NEWS FEED

Click Here to view all of Today's Natural Gas News

Syndicated content not available'; } // Free up memory used by the XML parser xml_parser_free($xml_parser); } function startElement($parser, $name, $attrs) { global $insideitem, $tag, $title, $description, $link, $insideimage; if ($insideitem || $insideimage) { $tag = $name; } if ($name == "ITEM" ) { $insideitem = true; } if ($name == "IMAGE") { $insideimage = true; } } function endElement($parser, $name) { global $insideitem, $tag, $title, $description, $link, $insideimage, $show_detail, $headline_style, $detail_style, $count, $max; if ($name == "ITEM" && $count < $max) { $count++; printf('

%s

%s