Forum Moderators: coopster
furhtermore is the follwoing a proper method to go about determining if the xml_text_node actually contains data and not white space?
if ($child -> nodeType == XML_TEXT_NODE)
{
if (trim($child -> textContent))
{
$output = '<div class="currentTagName">' . $child -> textContent . '</div>' . "\n";
print $output;
}
}
thanks!
jd
is the follwoing a proper method to go about determining if the xml_text_node actually contains data and not white space
You mean by trimming it first? Yes.
with attributes you can go:
$attribute -> name
i want something like $element -> name