<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >XMLWriter Functions</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="Manual do PHP" HREF="index.html"><LINK REL="UP" TITLE="Referência das Funções" HREF="funcref.html"><LINK REL="PREVIOUS" TITLE="XMLReader::XML" HREF="function.xmlreader-xml.html"><LINK REL="NEXT" TITLE="XMLWriter::endAttribute" HREF="function.xmlwriter-end-attribute.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8"></HEAD ><BODY CLASS="reference" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >Manual do PHP</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.xmlreader-xml.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.xmlwriter-end-attribute.html" ACCESSKEY="N" >Próxima</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="reference" ><A NAME="ref.xmlwriter" ></A ><DIV CLASS="TITLEPAGE" ><H1 CLASS="title" >CLXXXII. XMLWriter Functions</H1 ><DIV CLASS="PARTINTRO" ><A NAME="AEN236555" ></A ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="xmlwriter.intro" >Introdução</A ></H1 ><P > This is the XMLWriter extension. It wraps the libxml xmlWriter API. </P ><P > This extension represents a writer that provides a non-cached, forward-only means of generating streams or files containing XML data. </P ><P > This extension can be used in an object oriented style or a procedural one. Every method documented describes the alternative procedural call. </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="xmlwriter.classes" >Classes pré-definidas</A ></H1 ><P > </P ><DIV CLASS="section" ><H2 CLASS="section" ><A NAME="xmlwriter.class.xmlwriter" ><B CLASS="classname" >XMLWriter</B ></A ></H2 ><P > </P ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="xmlreader.class.xmlwriter.methods" >Métodos</A ></H3 ><P ></P ><UL ><LI ><P ><A HREF="function.xmlwriter-end-attribute.html" >XMLWriter::endAttribute</A > - End attribute</P ></LI ><LI ><P ><A HREF="function.xmlwriter-end-cdata.html" >XMLWriter::endCData</A > - End current CDATA</P ></LI ><LI ><P ><A HREF="function.xmlwriter-end-comment.html" >XMLWriter::endComment</A > - Create end comment</P ></LI ><LI ><P ><A HREF="function.xmlwriter-end-document.html" >XMLWriter::endDocument</A > - End current document</P ></LI ><LI ><P ><A HREF="function.xmlwriter-end-dtd-attlist.html" >XMLWriter::endDTDAttlist</A > - End current DTD AttList</P ></LI ><LI ><P ><A HREF="function.xmlwriter-end-dtd-element.html" >XMLWriter::endDTDElement</A > - End current DTD element</P ></LI ><LI ><P ><A HREF="function.xmlwriter-end-dtd-entity.html" >XMLWriter::endDTDEntity</A > - End current DTD Entity</P ></LI ><LI ><P ><A HREF="function.xmlwriter-end-dtd.html" >XMLWriter::endDTD</A > - End current DTD</P ></LI ><LI ><P ><A HREF="function.xmlwriter-end-element.html" >XMLWriter::endElement</A > - End current element</P ></LI ><LI ><P ><A HREF="function.xmlwriter-end-pi.html" >XMLWriter::endPI</A > - End current PI</P ></LI ><LI ><P ><A HREF="function.xmlwriter-flush.html" >XMLWriter::flush</A > - Flush current buffer</P ></LI ><LI ><P ><A HREF="function.xmlwriter-full-end-element.html" >XMLWriter::fullEndElement</A > - End current element</P ></LI ><LI ><P ><A HREF="function.xmlwriter-open-memory.html" >XMLWriter::openMemory</A > - Create new xmlwriter using memory for string output</P ></LI ><LI ><P ><A HREF="function.xmlwriter-open-uri.html" >XMLWriter::openURI</A > - Create new xmlwriter using source uri for output</P ></LI ><LI ><P ><A HREF="function.xmlwriter-output-memory.html" >XMLWriter::outputMemory</A > - Returns current buffer</P ></LI ><LI ><P ><A HREF="function.xmlwriter-set-indent-string.html" >XMLWriter::setIndentString</A > - Set string used for indenting</P ></LI ><LI ><P ><A HREF="function.xmlwriter-set-indent.html" >XMLWriter::setIndent</A > - Toggle indentation on/off</P ></LI ><LI ><P ><A HREF="function.xmlwriter-start-attribute-ns.html" >XMLWriter::startAttributeNS</A > - Create start namespaced attribute</P ></LI ><LI ><P ><A HREF="function.xmlwriter-start-attribute.html" >XMLWriter::startAttribute</A > - Create start attribute</P ></LI ><LI ><P ><A HREF="function.xmlwriter-start-cdata.html" >XMLWriter::startCData</A > - Create start CDATA tag</P ></LI ><LI ><P ><A HREF="function.xmlwriter-start-comment.html" >XMLWriter::startComment</A > - Create start comment</P ></LI ><LI ><P ><A HREF="function.xmlwriter-start-document.html" >XMLWriter::startDocument</A > - Create document tag</P ></LI ><LI ><P ><A HREF="function.xmlwriter-start-dtd-attlist.html" >XMLWriter::startDTDAttlist</A > - Create start DTD AttList</P ></LI ><LI ><P ><A HREF="function.xmlwriter-start-dtd-element.html" >XMLWriter::startDTDElement</A > - Create start DTD element</P ></LI ><LI ><P ><A HREF="function.xmlwriter-start-dtd-entity.html" >XMLWriter::startDTDEntity</A > - Create start DTD Entity</P ></LI ><LI ><P ><A HREF="function.xmlwriter-start-dtd.html" >XMLWriter::startDTD</A > - Create start DTD tag</P ></LI ><LI ><P ><A HREF="function.xmlwriter-start-element-ns.html" >XMLWriter::startElementNS</A > - Create start namespaced element tag</P ></LI ><LI ><P ><A HREF="function.xmlwriter-start-element.html" >XMLWriter::startElement</A > - Create start element tag</P ></LI ><LI ><P ><A HREF="function.xmlwriter-start-pi.html" >XMLWriter::startPI</A > - Create start PI tag</P ></LI ><LI ><P ><A HREF="function.xmlwriter-text.html" >XMLWriter::text</A > - Write text</P ></LI ><LI ><P ><A HREF="function.xmlwriter-write-attribute-ns.html" >XMLWriter::writeAttributeNS</A > - Write full namespaced attribute</P ></LI ><LI ><P ><A HREF="function.xmlwriter-write-attribute.html" >XMLWriter::writeAttribute</A > - Write full attribute</P ></LI ><LI ><P ><A HREF="function.xmlwriter-write-cdata.html" >XMLWriter::writeCData</A > - Write full CDATA tag</P ></LI ><LI ><P ><A HREF="function.xmlwriter-write-comment.html" >XMLWriter::writeComment</A > - Write full comment tag</P ></LI ><LI ><P ><A HREF="function.xmlwriter-write-dtd-attlist.html" >XMLWriter::writeDTDAttlist</A > - Write full DTD AttList tag</P ></LI ><LI ><P ><A HREF="function.xmlwriter-write-dtd-element.html" >XMLWriter::writeDTDElement</A > - Write full DTD element tag</P ></LI ><LI ><P ><A HREF="function.xmlwriter-write-dtd-entity.html" >XMLWriter::writeDTDEntity</A > - Write full DTD Entity tag</P ></LI ><LI ><P ><A HREF="function.xmlwriter-write-dtd.html" >XMLWriter::writeDTD</A > - Write full DTD tag</P ></LI ><LI ><P ><A HREF="function.xmlwriter-write-element-ns.html" >XMLWriter::writeElementNS</A > - Write full namesapced element tag</P ></LI ><LI ><P ><A HREF="function.xmlwriter-write-element.html" >XMLWriter::writeElement</A > - Write full element tag</P ></LI ><LI ><P ><A HREF="function.xmlwriter-write-pi.html" >XMLWriter::writePI</A > - Writes a PI</P ></LI ><LI ><P ><A HREF="function.xmlwriter-write-raw.html" >XMLWriter::writeRaw</A > - Write a raw XML text</P ></LI ></UL ></DIV ></DIV ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="xmlwriter.resources" >Tipos Resource</A ></H1 ><P > There is one resource used by the procedural version of the XMLWriter extension: returned by <A HREF="function.xmlwriter-open-memory.html" ><B CLASS="function" >xmlwriter_open_memory()</B ></A > or <A HREF="function.xmlwriter-open-uri.html" ><B CLASS="function" >xmlwriter_open_uri()</B ></A >. </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="xmlwriter.constants" >Constantes pré-definidas</A ></H1 ><P >Esta extensão não possui nenhuma constante.</P ></DIV ></DIV ><DIV CLASS="TOC" ><DL ><DT ><B >Índice</B ></DT ><DT ><A HREF="function.xmlwriter-end-attribute.html" >XMLWriter::endAttribute</A > -- End attribute</DT ><DT ><A HREF="function.xmlwriter-end-cdata.html" >XMLWriter::endCData</A > -- End current CDATA</DT ><DT ><A HREF="function.xmlwriter-end-comment.html" >XMLWriter::endComment</A > -- Create end comment</DT ><DT ><A HREF="function.xmlwriter-end-document.html" >XMLWriter::endDocument</A > -- End current document</DT ><DT ><A HREF="function.xmlwriter-end-dtd-attlist.html" >XMLWriter::endDTDAttlist</A > -- End current DTD AttList</DT ><DT ><A HREF="function.xmlwriter-end-dtd-element.html" >XMLWriter::endDTDElement</A > -- End current DTD element</DT ><DT ><A HREF="function.xmlwriter-end-dtd-entity.html" >XMLWriter::endDTDEntity</A > -- End current DTD Entity</DT ><DT ><A HREF="function.xmlwriter-end-dtd.html" >XMLWriter::endDTD</A > -- End current DTD</DT ><DT ><A HREF="function.xmlwriter-end-element.html" >XMLWriter::endElement</A > -- End current element</DT ><DT ><A HREF="function.xmlwriter-end-pi.html" >XMLWriter::endPI</A > -- End current PI</DT ><DT ><A HREF="function.xmlwriter-flush.html" >XMLWriter::flush</A > -- Flush current buffer</DT ><DT ><A HREF="function.xmlwriter-full-end-element.html" >XMLWriter::fullEndElement</A > -- End current element</DT ><DT ><A HREF="function.xmlwriter-open-memory.html" >XMLWriter::openMemory</A > -- Create new xmlwriter using memory for string output</DT ><DT ><A HREF="function.xmlwriter-open-uri.html" >XMLWriter::openURI</A > -- Create new xmlwriter using source uri for output</DT ><DT ><A HREF="function.xmlwriter-output-memory.html" >XMLWriter::outputMemory</A > -- Returns current buffer</DT ><DT ><A HREF="function.xmlwriter-set-indent-string.html" >XMLWriter::setIndentString</A > -- Set string used for indenting</DT ><DT ><A HREF="function.xmlwriter-set-indent.html" >XMLWriter::setIndent</A > -- Toggle indentation on/off</DT ><DT ><A HREF="function.xmlwriter-start-attribute-ns.html" >XMLWriter::startAttributeNS</A > -- Create start namespaced attribute</DT ><DT ><A HREF="function.xmlwriter-start-attribute.html" >XMLWriter::startAttribute</A > -- Create start attribute</DT ><DT ><A HREF="function.xmlwriter-start-cdata.html" >XMLWriter::startCData</A > -- Create start CDATA tag</DT ><DT ><A HREF="function.xmlwriter-start-comment.html" >XMLWriter::startComment</A > -- Create start comment</DT ><DT ><A HREF="function.xmlwriter-start-document.html" >XMLWriter::startDocument</A > -- Create document tag</DT ><DT ><A HREF="function.xmlwriter-start-dtd-attlist.html" >XMLWriter::startDTDAttlist</A > -- Create start DTD AttList</DT ><DT ><A HREF="function.xmlwriter-start-dtd-element.html" >XMLWriter::startDTDElement</A > -- Create start DTD element</DT ><DT ><A HREF="function.xmlwriter-start-dtd-entity.html" >XMLWriter::startDTDEntity</A > -- Create start DTD Entity</DT ><DT ><A HREF="function.xmlwriter-start-dtd.html" >XMLWriter::startDTD</A > -- Create start DTD tag</DT ><DT ><A HREF="function.xmlwriter-start-element-ns.html" >XMLWriter::startElementNS</A > -- Create start namespaced element tag</DT ><DT ><A HREF="function.xmlwriter-start-element.html" >XMLWriter::startElement</A > -- Create start element tag</DT ><DT ><A HREF="function.xmlwriter-start-pi.html" >XMLWriter::startPI</A > -- Create start PI tag</DT ><DT ><A HREF="function.xmlwriter-text.html" >XMLWriter::text</A > -- Write text</DT ><DT ><A HREF="function.xmlwriter-write-attribute-ns.html" >XMLWriter::writeAttributeNS</A > -- Write full namespaced attribute</DT ><DT ><A HREF="function.xmlwriter-write-attribute.html" >XMLWriter::writeAttribute</A > -- Write full attribute</DT ><DT ><A HREF="function.xmlwriter-write-cdata.html" >XMLWriter::writeCData</A > -- Write full CDATA tag</DT ><DT ><A HREF="function.xmlwriter-write-comment.html" >XMLWriter::writeComment</A > -- Write full comment tag</DT ><DT ><A HREF="function.xmlwriter-write-dtd-attlist.html" >XMLWriter::writeDTDAttlist</A > -- Write full DTD AttList tag</DT ><DT ><A HREF="function.xmlwriter-write-dtd-element.html" >XMLWriter::writeDTDElement</A > -- Write full DTD element tag</DT ><DT ><A HREF="function.xmlwriter-write-dtd-entity.html" >XMLWriter::writeDTDEntity</A > -- Write full DTD Entity tag</DT ><DT ><A HREF="function.xmlwriter-write-dtd.html" >XMLWriter::writeDTD</A > -- Write full DTD tag</DT ><DT ><A HREF="function.xmlwriter-write-element-ns.html" >XMLWriter::writeElementNS</A > -- Write full namesapced element tag</DT ><DT ><A HREF="function.xmlwriter-write-element.html" >XMLWriter::writeElement</A > -- Write full element tag</DT ><DT ><A HREF="function.xmlwriter-write-pi.html" >XMLWriter::writePI</A > -- Writes a PI</DT ><DT ><A HREF="function.xmlwriter-write-raw.html" >XMLWriter::writeRaw</A > -- Write a raw XML text</DT ></DL ></DIV ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.xmlreader-xml.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Principal</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.xmlwriter-end-attribute.html" ACCESSKEY="N" >Próxima</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >XMLReader::XML</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="funcref.html" ACCESSKEY="U" >Acima</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >XMLWriter::endAttribute</TD ></TR ></TABLE ></DIV ></BODY ></HTML >