<?php function parseAndOutput($s) { $p = xml_parser_create(); // xml_parser_set_option($p, XML_OPTION_SKIP_WHITE, 1); xml_parse_into_struct($p, $s, $values, $index); var_dump($values); // echo $values[0]['value'] . "\n\n"; } // $s = "<a>b\nc</a>"; // parseAndOutput($s); $s = "<a><b><d>\n <e></b><![CDATA[]]><c>\n \t</c></a>"; parseAndOutput($s);
You have javascript disabled. You will not be able to edit any code.