Lines Matching refs:xw
4 $xw = xmlwriter_open_uri('./a.xml'); variable
5 xmlwriter_set_indent($xw, 1);
6 $res = xmlwriter_set_indent_string($xw, ' ');
8 xmlwriter_start_document($xw, '1.0', 'UTF-8');
11 xmlwriter_start_element($xw, 'tag1');
14 xmlwriter_start_attribute($xw, 'att1');
15 xmlwriter_text($xw, 'valueofatt1');
16 xmlwriter_end_attribute($xw);
18 xmlwriter_write_comment($xw, 'this is a comment.');
21 xmlwriter_start_element($xw, 'tag11');
22 xmlwriter_text($xw, utf8_encode('This is a sample text, ä'));
23 xmlwriter_end_element($xw); // tag11
25 xmlwriter_end_element($xw); // tag1
29 xmlwriter_start_element($xw, 'testc');
30 xmlwriter_write_cdata($xw, "This is a cdata content");
31 xmlwriter_end_element($xw); // testctag
33 xmlwriter_start_element($xw, 'testc');
34 xmlwriter_start_cdata($xw);
35 xmlwriter_text($xw, "test cdata2");
36 xmlwriter_end_cdata($xw);
37 xmlwriter_end_element($xw); // testctag
40 xmlwriter_start_pi($xw, 'php');
41 xmlwriter_text($xw, '$foo=2;echo $foo;');
42 xmlwriter_end_pi($xw);
44 xmlwriter_end_document($xw);