1--TEST-- 2SimpleXML: Split text content 3--SKIPIF-- 4<?php 5 if (!extension_loaded('simplexml')) print 'skip'; 6?> 7--FILE-- 8<?php 9 10$xml =<<<EOF 11<?xml version="1.0" encoding="ISO-8859-1" ?> 12<foo>bar<baz/>bar</foo> 13EOF; 14 15$sxe = simplexml_load_string($xml); 16 17var_dump((string)$sxe); 18 19?> 20--EXPECT-- 21string(6) "barbar" 22