Lines Matching refs:xw
10 $xw = xmlwriter_open_memory();
11 xmlwriter_set_indent($xw, true);
12 xmlwriter_start_document($xw);
13 xmlwriter_start_element_ns($xw, 'test', 'test', 'urn:x-test:');
14 xmlwriter_write_element_ns($xw, 'test', 'foo', null, '');
15 xmlwriter_write_element_ns($xw, null, 'bar', 'urn:x-test:', '');
16 xmlwriter_write_element_ns($xw, null, 'bar', '', '');
17 xmlwriter_end_element($xw);
18 xmlwriter_end_document($xw);
19 print xmlwriter_flush($xw, true);
22 $xw = new XMLWriter();
23 $xw->openMemory();
24 $xw->setIndent(true);
25 $xw->startDocument();
26 $xw->startElementNS('test', 'test', 'urn:x-test:');
27 $xw->writeElementNS('test', 'foo', null, '');
28 $xw->writeElementNS(null, 'bar', 'urn:x-test:', '');
29 $xw->writeElementNS(null, 'bar', '', '');
30 $xw->endElement();
31 $xw->endDocument();
32 print $xw->flush(true);