Beispiel #1
0
 static function getElementsByAttributeValue($nodeList, $attributeName, $attributeValue)
 {
     $nodes = new _hx_array(array());
     while ($nodeList->hasNext()) {
         $node = $nodeList->next();
         if ($node->nodeType == Xml::$Element && $attributeValue === com_wiris_util_xml_WXmlUtils::getAttribute($node, $attributeName)) {
             $nodes->push($node);
         }
         unset($node);
     }
     return $nodes;
 }