array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'xmlreader.expand.php', 1 => 'XMLReader::expand', 2 => 'Returns a copy of the current node as a DOM object', ), 'up' => array ( 0 => 'class.xmlreader.php', 1 => 'XMLReader', ), 'prev' => array ( 0 => 'xmlreader.close.php', 1 => 'XMLReader::close', ), 'next' => array ( 0 => 'xmlreader.fromstream.php', 1 => 'XMLReader::fromStream', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/xmlreader/xmlreader/expand.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

XMLReader::expand

(PHP 5 >= 5.1.0, PHP 7, PHP 8)

XMLReader::expandReturns a copy of the current node as a DOM object

说明

public XMLReader::expand(?DOMNode $baseNode = null): DOMNode|false

This method copies the current node and returns the appropriate DOM object.

参数

baseNode

A DOMNode defining the target DOMDocument for the created DOM object.

返回值

The resulting DOMNode or false on error.