Index: articles_event_handler.php =================================================================== --- articles_event_handler.php (revision 13961) +++ articles_event_handler.php (working copy) @@ -315,8 +315,8 @@ */ function getNodeContent(&$node, $content_type = null) { - if (!isset($content_type)) { - $content_type = array_key_exists('TYPE', $node->Attributes) ? $node->Attributes['TYPE'] : false; + if ( !isset($content_type) ) { + $content_type = $node->GetAttribute('TYPE'); } switch ($content_type) { @@ -325,11 +325,11 @@ break; case 'html': - $data = unhtmlentities($node->firstChild->Data); // $node->Data + $data = unhtmlentities( $node->GetXML(true) ); // $node->firstChild->Data // $node->Data break; default: - $data = $node->firstChild->Data; // $node->Data; also for 'text' + $data = $node->GetXML(true); // $node->firstChild->Data; // $node->Data; also for 'text' break; } @@ -361,15 +361,15 @@ do { if ($sub_node->Name == 'LINK') { - if ($sub_node->Attributes['REL'] == 'alternate') { - $data[$sub_node->Name] = $sub_node->Attributes['HREF']; + if ($sub_node->GetAttribute('REL') === false || $sub_node->GetAttribute('REL') == 'alternate') { + $data[$sub_node->Name] = $sub_node->GetAttribute('HREF'); } } elseif ($sub_node->Name == 'CONTENT' || $sub_node->Name == 'SUMMARY' || $sub_node->Name == 'TITLE') { $data[$sub_node->Name] = $this->getNodeContent($sub_node); } else { - $data[$sub_node->Name] = $sub_node->firstChild->Data; // $sub_node->Data + $data[$sub_node->Name] = $sub_node->GetXML(true); // firstChild->Data; // $sub_node->Data } } while ( ($sub_node =& $sub_node->NextSibling()) );