PHP Help....
Posted: Tue Jun 09, 2009 2:02 am
$xml = '<head><script>(function (){
function ti_(b){this.t={};this.tick=function(c,d,a){var e=a?a:(new Date).getTime();this.t[c]=[e,d]};this.tick("start",null,b)}var ti_a=new ti_;window.jstiming={Timer:ti_,load:ti_a};try{window.jstiming.pt=window.external.pageT}catch(ti_b){};
})()
</script></head><iframe></iframe><table><tr><td> First Word </td></tr><tr><td> Hello WOrld! </td></tr></table>';
now, what i want to do is to parse this $xml variable...
but before i parse, i should remove unnecessary tags, because I should start to parse with the tag <table> and end with the tag </table>...
do you know of a function that would remove some tags, so that i can start parsing with the <table> tag and end in the </table> tag.....
so basically <table><tr><td> First Word </td></tr><tr><td> Hello WOrld! </td></tr></table> is the only thing i want to parse....
Any help is greatly appreciated... thanks!!!!!!!
function ti_(b){this.t={};this.tick=function(c,d,a){var e=a?a:(new Date).getTime();this.t[c]=[e,d]};this.tick("start",null,b)}var ti_a=new ti_;window.jstiming={Timer:ti_,load:ti_a};try{window.jstiming.pt=window.external.pageT}catch(ti_b){};
})()
</script></head><iframe></iframe><table><tr><td> First Word </td></tr><tr><td> Hello WOrld! </td></tr></table>';
now, what i want to do is to parse this $xml variable...
but before i parse, i should remove unnecessary tags, because I should start to parse with the tag <table> and end with the tag </table>...
do you know of a function that would remove some tags, so that i can start parsing with the <table> tag and end in the </table> tag.....
so basically <table><tr><td> First Word </td></tr><tr><td> Hello WOrld! </td></tr></table> is the only thing i want to parse....
Any help is greatly appreciated... thanks!!!!!!!