&reftitle.examples;
Creating a simple XML document This example shows how to use XMLWriter to create a XML document in memory. Creating a simple XML document &example.outputs; This is a sample text, ä ]]>
Working with XML namespaces This example shows how to create namespaced XML elements. Working with XML namespaces &example.outputs; book1 ]]>
Working with the OO API This example shows how to work with XMLWriter's object oriented API. Working with the OO API openMemory(); $xw->startDocument("1.0"); $xw->startElement("book"); $xw->text("example"); $xw->endElement(); $xw->endDocument(); echo $xw->outputMemory(); ]]> &example.outputs; example ]]>