php[world] 2015 Schedule Announced

XMLReader::readInnerXML

(PHP 5 >= 5.2.0)

XMLReader::readInnerXMLRetrieve XML from current node

Descrição

public string XMLReader::readInnerXML ( void )

Reads the contents of the current node, including child nodes and markup.

Parâmetros

Esta função não possui parâmetros.

Valor Retornado

Returns the contents of the current node as a string. Empty string on failure.

Notas

Cuidado

Esta função está somente disponível quando o PHP é compilado com libxml 20620 ou superior.

Veja Também

add a note add a note

User Contributed Notes 2 notes

up
1
Evert Pot
3 months ago
Disregard my other comment.

readInnerXml does not advance the cursor, so you can call it more than once. I made a mistake testing this.
up
-3
Evert Pot
3 months ago
Note that readInnerXml() also advances the cursor.
To Top