Back to index

php5  5.3.10
xmlwriter_oo.php
Go to the documentation of this file.
00001 <?php
00002 $xw = new XMLWriter();
00003 $xw->openUri('test.xml');
00004 $xw->startDocument("1.0");
00005 $xw->startElement("book");
00006 $xw->text("example");
00007 $xw->endElement();
00008 $xw->endDocument();
00009 $xw->flush(0);