Lines Matching refs:xw
9 $xw = new XMLWriter();
10 $xw->openMemory();
11 $xw->startDocument('1.0', 'UTF-8');
12 $xw->startElement("tag1");
14 $res = $xw->startAttribute('attr1');
15 $xw->text("attr1_value");
16 $xw->endAttribute();
18 $res = $xw->startAttribute('attr2');
19 $xw->text("attr2_value");
20 $xw->endAttribute();
22 $xw->text("Test text for tag1");
23 $res = $xw->startElement('tag2');
28 $xw->endDocument();
31 echo $xw->flush(true);