Lines Matching refs:xw
12 $xw = xmlwriter_open_memory();
13 xmlwriter_set_indent($xw, TRUE);
14 xmlwriter_set_indent_string($xw, ' ');
15 xmlwriter_start_document($xw, '1.0', "UTF-8");
16 xmlwriter_start_element($xw, 'root');
17 xmlwriter_start_element_ns($xw, 'ns1', 'child1', 'urn:ns1');
18 xmlwriter_start_attribute_ns($xw, 'ns1', 'att1', 'urn:ns1');
19 xmlwriter_text($xw, 'a&b');
20 xmlwriter_end_attribute($xw);
21 xmlwriter_write_attribute($xw, 'att2', "double\" single'");
22 xmlwriter_start_attribute_ns($xw, 'ns1', 'att2', 'urn:ns1');
23 xmlwriter_text($xw, "<>\"'&");
24 xmlwriter_end_attribute($xw);
25 xmlwriter_write_element($xw, 'chars', "special characters: <>\"'&");
26 xmlwriter_end_element($xw);
27 xmlwriter_end_document($xw);
29 $output = xmlwriter_flush($xw, true);