14 <root xmlns=
"http://sabredav.org/ns">
20 $reader->contextUri =
'http://example.org/';
22 '{http://sabredav.org/ns}uri' =>
'Sabre\\Xml\\Element\\Uri',
30 'name' =>
'{http://sabredav.org/ns}root',
33 'name' =>
'{http://sabredav.org/ns}uri',
34 'value' =>
new Uri(
'http://example.org/foo/bar'),
48 $writer->namespaceMap = [
49 'http://sabredav.org/ns' => null
51 $writer->openMemory();
52 $writer->startDocument(
'1.0');
53 $writer->setIndent(
true);
54 $writer->contextUri =
'http://example.org/';
56 '{http://sabredav.org/ns}root' => [
57 '{http://sabredav.org/ns}uri' =>
new Uri(
'/foo/bar'),
61 $output = $writer->outputMemory();
65 <root xmlns=
"http://sabredav.org/ns">
71 $this->assertEquals($expected,
$output);
static http()
Fetches the global http state from ILIAS.
The Reader class expands upon PHP's built-in XMLReader.