17 <root xmlns=
"http://sabredav.org/ns">
24 '{http://sabredav.org/ns}blabla' =>
'Sabre\\Xml\\Element\\Cdata',
35 $writer->namespaceMap = [
36 'http://sabredav.org/ns' => null
38 $writer->openMemory();
39 $writer->startDocument(
'1.0');
40 $writer->setIndent(
true);
42 '{http://sabredav.org/ns}root' =>
new Cdata(
'<foo&bar>'),
45 $output = $writer->outputMemory();
49 <root xmlns=
"http://sabredav.org/ns"><![CDATA[<foo&bar>]]></root>
53 $this->assertEquals($expected,
$output);
The Reader class expands upon PHP's built-in XMLReader.