mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-07 09:17:29 +00:00
10 lines
185 B
PHP
10 lines
185 B
PHP
<?php
|
|
$xw = new XMLWriter();
|
|
$xw->openUri('test.xml');
|
|
$xw->startDocument("1.0");
|
|
$xw->startElement("book");
|
|
$xw->text("example");
|
|
$xw->endElement();
|
|
$xw->endDocument();
|
|
$xw->flush(0);
|