/**
  * @param DOMElement $xml
  *      * should only be called from a Rule constructor
  * @ignore
  */
 public function load_from_domxml($xml)
 {
     $this->xmlroot = $xml;
     $toBeCleaned = array();
     foreach ($xml->childNodes as $node) {
         if ($node->nodeType != 1) {
             continue;
         }
         if (strlen($node->textContent) < 1) {
             mwarning('invalid (empty) tag name found in rule "' . $this->owner->toString() . '", IT WILL BE CLEANED', $node);
             $toBeCleaned[] = $node;
         } else {
             $f = $this->parentCentralStore->findOrCreate($node->textContent, $this);
             $this->o[] = $f;
         }
     }
     foreach ($toBeCleaned as $cleanMe) {
         $xml->removeChild($cleanMe);
     }
 }