I need the SAX parser code for my DOM Document code.
If anybody would be kind enough to provide me the code for the same.
function flipkart_price_fetch($sel_image){
global $sel_image;
$price = file_get_contents("{$sel_image['flipkart_content']}");
$dom = new DOMDocument();
@$dom->loadHTML($price);
$divs = $dom->getElementsByTagName('span');
foreach($divs as $div){
if($div->getAttribute('class') == 'fk-font-verybig pprice fk-bold'){
echo $div->nodeValue;
}
}
}