Tax Strategies For Individuals

“;
/*** a new dom object ***/
$doc = new domDocument;

/*** load the html into the object ***/
@$doc->loadHTMLFile(“http://cp3.cpasitesolutions.com/~rnaccoun/taxstrategies-individuals.php?”.$_SERVER[“QUERY_STRING”]);

/*** discard white space ***/
$doc->preserveWhiteSpace = false;

$doc->formatOutput = true;

/*** Get the divs ***/
$tables = $doc->getElementsByTagName(‘table’);
$i = 0;
if (!is_null($tables)) {
foreach ($tables as $table) {
if ( $i++ == 1 ) {
$tbodies = $table->childNodes;

if (!is_null($tbodies)) {
foreach ( $tbodies as $tbody ) {
$trs = $tbody->childNodes;

if (!is_null($trs)) {

foreach ( $trs as $tr ) {
$tds = $tr->childNodes;

if (!is_null($tds)) {
foreach ( $tds as $td ) {
echo $doc->saveXML($td);
}
}
}

}

}
}

}
}
}
echo “

“;
?>