PHP Velho Oeste 2024

XMLReader::readInnerXml

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

XMLReader::readInnerXml現在のノードから XML を取得する

説明

public XMLReader::readInnerXml(): string

現在のノードの中身を、子ノードやマークアップも含めて読み込みます。

パラメータ

この関数にはパラメータはありません。

戻り値

現在のノードの中身を文字列で返します。失敗した場合は空文字列を返します。

注意

警告

この関数は、PHP を libxml 20620 以降と組み合わせてコンパイルした場合にのみ使用可能です。

参考

add a note add a note

User Contributed Notes 2 notes

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