(PHP 5 >= 5.2.0, PHP 7)
Retrieve XML from current node, including it self
public string XMLReader::readOuterXML ( void )
Reads the contents of the current node, including the node itself.
Returns:
Returns the contents of current node, including itself, as a string. Empty string on failure.
See also:
XMLReader