Lines Matching refs:xw
4 $xw = xmlwriter_open_memory(); 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_text($xw, utf8_encode('This is a sample text, ä'));
19 xmlwriter_end_element($xw); // tag1
22 $res = xmlwriter_start_comment($xw);
23 xmlwriter_text($xw, "Demo text comment");
24 $res = xmlwriter_end_comment($xw);
26 xmlwriter_end_document($xw);
27 $out = xmlwriter_output_memory($xw, 0);
33 $out = xmlwriter_output_memory($xw, 1);
37 $out = xmlwriter_output_memory($xw);