XMLReader::readInnerXml

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

XMLReader::readInnerXmlRecupera el XML del actual nodo

Descripción

public XMLReader::readInnerXml(): string

Lee el contenido del actual nodo, incluyendo notas pequeñas y marcado.

Parámetros

Esta función no tiene parámetros.

Valores devueltos

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

Notas

Precaución

Esta función sólo esta disponible cuando PHP ha sido compilado con libxml 20620 o superior.

Ver también

add a note add a note

User Contributed Notes 2 notes

up
14
Evert Pot
8 years 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
-34
Evert Pot
8 years ago
Note that readInnerXml() also advances the cursor.
To Top