Beispiel #1
0
 /**
  * Returns a \DOMNodeList of all child elements of the element.
  *
  * @return \DOMNodeList of all child elements
  */
 public function getChildNodes()
 {
     $prefix = $this->ownerDocument->getDefaultNamespacePrefix();
     if ($prefix) {
         return $this->ownerDocument->getXpath()->query(sprintf('child::%s:*', $prefix), $this);
     } else {
         return $this->ownerDocument->getXpath()->query('child::*', $this);
     }
 }