Lines Matching refs:xw
14 $xw = xmlwriter_open_memory();
15 xmlwriter_set_indent($xw, TRUE);
16 xmlwriter_start_document($xw, NULL, "UTF-8");
17 xmlwriter_start_element($xw, 'root');
18 xmlwriter_write_attribute($xw, 'id', 'elem1');
19 xmlwriter_start_element($xw, 'elem1');
20 xmlwriter_write_attribute($xw, 'attr1', 'first');
21 xmlwriter_write_comment($xw, 'start PI');
22 xmlwriter_start_element($xw, 'pi');
23 xmlwriter_write_pi($xw, 'php', 'echo "hello world"; ');
24 xmlwriter_end_element($xw);
25 xmlwriter_start_element($xw, 'cdata');
26 xmlwriter_start_cdata($xw);
27 xmlwriter_text($xw, '<>&"');
28 xmlwriter_end_cdata($xw);
29 xmlwriter_end_element($xw);
30 xmlwriter_end_element($xw);
31 xmlwriter_end_element($xw);
32 xmlwriter_end_document($xw);
34 $output = xmlwriter_flush($xw, true);