Skip to content
Thomas Weinert edited this page Jul 12, 2018 · 5 revisions

FluentDOM\DOM\Text

FluentDOM\DOM\Text extends DOMText and allows it to be cast to a string.

$document = new FluentDOM\DOM\Document();
$document->loadXml('<xml>Hello World!</xml>');
echo $document->documentElement->firstChild;

Output:

Hello World!
Clone this wiki locally