diff --git a/reference/xmlwriter/book.xml b/reference/xmlwriter/book.xml index fea293cd5..1fbc65594 100644 --- a/reference/xmlwriter/book.xml +++ b/reference/xmlwriter/book.xml @@ -1,6 +1,6 @@ - + diff --git a/reference/xmlwriter/examples.xml b/reference/xmlwriter/examples.xml index f02da00ad..405c65f6c 100644 --- a/reference/xmlwriter/examples.xml +++ b/reference/xmlwriter/examples.xml @@ -1,6 +1,6 @@ - + diff --git a/reference/xmlwriter/xmlwriter.xml b/reference/xmlwriter/xmlwriter.xml index b8da087a2..0bbea1421 100644 --- a/reference/xmlwriter/xmlwriter.xml +++ b/reference/xmlwriter/xmlwriter.xml @@ -1,8 +1,6 @@ - - + - La clase XMLWriter @@ -10,34 +8,30 @@ - +
&reftitle.intro;
- +
&reftitle.classsynopsis; - - - XMLWriter - - - - - XMLWriter - - - + + + + XMLWriter + &Methods; - + + + - +
@@ -46,7 +40,6 @@ &reference.xmlwriter.entities.xmlwriter;
- - + - - + XMLWriter::endAttribute xmlwriter_end_attribute @@ -12,14 +10,14 @@ &reftitle.description; &style.oop; - - boolXMLWriter::endAttribute + + public boolXMLWriter::endAttribute &style.procedural; boolxmlwriter_end_attribute - resourcexmlwriter + XMLWriterwriter Finaliza el atributo actual. @@ -41,6 +39,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + &reftitle.seealso; @@ -55,7 +70,6 @@ - - + - - + - XMLWriter::endCData + XMLWriter::endCdata xmlwriter_end_cdata Fin del actual CDATA &reftitle.description; &style.oop; - - boolXMLWriter::endCdata + + public boolXMLWriter::endCdata &style.procedural; boolxmlwriter_end_cdata - resourcexmlwriter + XMLWriterwriter - Finaliza la actual sección CDATA. + Finaliza la actual sección CDATA. @@ -41,6 +39,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + &reftitle.seealso; @@ -52,7 +67,6 @@ - - - - + + + XMLWriter::endComment xmlwriter_end_comment @@ -11,17 +10,17 @@ &reftitle.description; &style.oop; - - boolXMLWriter::endComment + + public boolXMLWriter::endComment &style.procedural; boolxmlwriter_end_comment - resourcexmlwriter + XMLWriterwriter - Crea un comentario final. + Crea un comentario final. @@ -40,6 +39,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + &reftitle.seealso; @@ -51,7 +67,6 @@ - - - - + + + XMLWriter::endDocument xmlwriter_end_document @@ -11,14 +10,14 @@ &reftitle.description; &style.oop; - - boolXMLWriter::endDocument + + public boolXMLWriter::endDocument &style.procedural; boolxmlwriter_end_document - resourcexmlwriter + XMLWriterwriter Finaliza el actual documento. @@ -40,6 +39,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + &reftitle.seealso; @@ -50,7 +66,6 @@ - - + - - + XMLWriter::endDtd xmlwriter_end_dtd @@ -12,14 +10,14 @@ &reftitle.description; &style.oop; - - boolXMLWriter::endDtd + + public boolXMLWriter::endDtd &style.procedural; boolxmlwriter_end_dtd - resourcexmlwriter + XMLWriterwriter Finaliza la actual DTD del documento. @@ -41,6 +39,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + &reftitle.seealso; @@ -51,8 +66,7 @@ - - + - + - - + XMLWriter::endDtdAttlist xmlwriter_end_dtd_attlist @@ -12,17 +10,17 @@ &reftitle.description; &style.oop; - - boolXMLWriter::endDtdAttlist + + public boolXMLWriter::endDtdAttlist &style.procedural; boolxmlwriter_end_dtd_attlist - resourcexmlwriter + XMLWriterwriter - Finaliza la actual attList DTD. + Finaliza la actual lista de atributos DTD. @@ -41,6 +39,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + &reftitle.seealso; @@ -52,7 +67,6 @@ - - + - - + XMLWriter::endDtdElement xmlwriter_end_dtd_element @@ -12,14 +10,14 @@ &reftitle.description; &style.oop; - - boolXMLWriter::endDtdElement + + public boolXMLWriter::endDtdElement &style.procedural; boolxmlwriter_end_dtd_element - resourcexmlwriter + XMLWriterwriter Finaliza el actual elemento DTD. @@ -41,6 +39,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + &reftitle.seealso; @@ -52,7 +67,6 @@ - - + - - + XMLWriter::endDtdEntity xmlwriter_end_dtd_entity @@ -12,14 +10,14 @@ &reftitle.description; &style.oop; - - boolXMLWriter::endDtdEntity + + public boolXMLWriter::endDtdEntity &style.procedural; boolxmlwriter_end_dtd_entity - resourcexmlwriter + XMLWriterwriter Finaliza el actual ente DTD. @@ -40,6 +38,24 @@ &return.success; + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + &reftitle.seealso; @@ -51,7 +67,6 @@ - - - - + + + XMLWriter::endElement xmlwriter_end_element @@ -11,14 +10,14 @@ &reftitle.description; &style.oop; - - boolXMLWriter::endElement + + public boolXMLWriter::endElement &style.procedural; boolxmlwriter_end_element - resourcexmlwriter + XMLWriterwriter Finaliza el actual elemento. @@ -40,6 +39,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + &reftitle.seealso; @@ -51,7 +67,6 @@ - - - - + + + XMLWriter::endPi xmlwriter_end_pi @@ -11,14 +10,14 @@ &reftitle.description; &style.oop; - - boolXMLWriter::endPi + + public boolXMLWriter::endPi &style.procedural; boolxmlwriter_end_pi - resourcexmlwriter + XMLWriterwriter Finaliza la actual instrucción de procesamiento. @@ -40,6 +39,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + &reftitle.seealso; @@ -51,7 +67,6 @@ - - + - - + XMLWriter::flush xmlwriter_flush @@ -12,14 +10,14 @@ &reftitle.description; &style.oop; - - mixedXMLWriter::flush + + public stringintXMLWriter::flush boolempty&true; &style.procedural; - mixedxmlwriter_flush - resourcexmlwriter + stringintxmlwriter_flush + XMLWriterwriter boolempty&true; @@ -36,25 +34,47 @@ empty - Cuando vaciar el buffer o no. Por omisión es &true;. + Whether to empty the buffer or not. Default is &true;. - + &reftitle.returnvalues; Si se abrió el documento en memoria, ésta función devolverá el buffer XML generado, - Además, si se usa URI, esta función va a escribir el buffer y devolver el número de + Además, si se usa URI, esta función va a escribir el buffer y devolver el número de bytes escritos. - + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + 8.0.0 + + This function can no longer return &false;. + + + + + + + - + - - + XMLWriter::fullEndElement - xmlwriter_full_end_element + xmlwriter_full_end_element Fin del elemento actual &reftitle.description; &style.oop; - - boolXMLWriter::fullEndElement + + public boolXMLWriter::fullEndElement &style.procedural; boolxmlwriter_full_end_element - resourcexmlwriter + XMLWriterwriter Fin del elemento XML actual. Escribe una etiqueta final aun si el elemento está vacío. @@ -41,6 +39,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + &reftitle.seealso; @@ -51,7 +66,6 @@ - - + - - + XMLWriter::openMemory xmlwriter_open_memory @@ -12,17 +10,17 @@ &reftitle.description; &style.oop; - - boolXMLWriter::openMemory + + public boolXMLWriter::openMemory &style.procedural; - resourcexmlwriter_open_memory + XMLWriterfalsexmlwriter_open_memory - Crea un nuevo XMLWriter usando memoria para el string de salida. + Crea un nuevo XMLWriter usando memoria para el string de salida. @@ -30,18 +28,41 @@ - + &reftitle.returnvalues; &style.oop;: &return.success; - &style.procedural;: Devuelve un nuevo &resource; xmlwriter para luego usarlo con - las funciones de xmlwriter en caso de éxito, y &false; en caso de error. + &style.procedural;: Returns a new XMLWriter for later use with the + xmlwriter functions on success, &return.falseforfailure;. + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + This function returns now an XMLWriter instance on success. + Previouly, a &resource; has been returned in this case. + + + + + + + &reftitle.seealso; @@ -52,7 +73,6 @@ - - + - - + XMLWriter::openUri xmlwriter_open_uri - Crea un nuevo xmlwriter usando una fuente uri para la salida + Create new xmlwriter using source uri for output &reftitle.description; &style.oop; - - boolXMLWriter::openUri + + public boolXMLWriter::openUri stringuri &style.procedural; - resourcexmlwriter_open_uri + XMLWriterfalsexmlwriter_open_uri stringuri - Crea un nuevo XMLWriter usando - uri para la salida. + Creates a new XMLWriter using + uri for the output. @@ -34,7 +32,7 @@ uri - El recurso de URI para la salida. + The URI of the resource for the output. @@ -48,11 +46,63 @@ &style.oop;: &return.success; - &style.procedural;: Devuelve un nuevo xmlwriter &resource; para usarlo después con - las funciones xmlwriter en caso de éxito, &false; en caso de error. + &style.procedural;: Returns a new XMLWriter instance for later use with the + xmlwriter functions on success, &return.falseforfailure;. + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + This function returns now an XMLWriter instance on success. + Previouly, a &resource; has been returned in this case. + + + + + + + + + &reftitle.examples; + + Direct output of XML + + It is possible to directly output XML by using the + php://output stream wrapper. + + +openURI('php://output'); +?> +]]> + + + + + + &reftitle.notes; + + + On Windows, files opened with this function are locked until the writer is + released. + + + + &reftitle.seealso; @@ -63,7 +113,6 @@ - - + - - + XMLWriter::outputMemory xmlwriter_output_memory @@ -12,14 +10,14 @@ &reftitle.description; &style.oop; - - stringXMLWriter::outputMemory + + public stringXMLWriter::outputMemory boolflush&true; &style.procedural; stringxmlwriter_output_memory - resourcexmlwriter + XMLWriterwriter boolflush&true; @@ -35,7 +33,7 @@ flush - Si se mantiene la salida del buffer o no. Por omisión es &true;. + Si se mantiene la salida del buffer o no. Por defecto es &true;. @@ -50,6 +48,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + &reftitle.seealso; @@ -60,7 +75,6 @@ - - - - + + + XMLWriter::setIndent xmlwriter_set_indent @@ -11,18 +10,18 @@ &reftitle.description; &style.oop; - - boolXMLWriter::setIndent - boolindent + + public boolXMLWriter::setIndent + boolenable &style.procedural; boolxmlwriter_set_indent - resourcexmlwriter - boolindent + XMLWriterwriter + boolenable - Cambia la sangría a encendida o apagada + Cambia la sangría a encendida o apagada. @@ -31,7 +30,7 @@ &xmlwriter.xmlwriter.description; - indent + enable Si la sangría está activada. @@ -49,6 +48,68 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + + + &reftitle.examples; + + <methodname>XMLWriter::setIndent</methodname> and mixed Content + + Enabling indentation is not suitable for mixed content, because the indent + string is also inserted before inline elements. + + +openMemory(); +$writer->setIndent(2); +$writer->startDocument(); +$writer->startElement('p'); +$writer->text('before'); +$writer->writeElement('a', 'element'); +$writer->text('after'); +$writer->endElement(); +$writer->endDocument(); +echo $writer->outputMemory(); +?> +]]> + + &example.outputs; + + +

before element +after

+]]> +
+
+
+ + + &reftitle.notes; + + + The indent is reset when an xmlwriter is opened. + + + + &reftitle.seealso; @@ -59,7 +120,6 @@
- - + - - + XMLWriter::setIndentString - xmlwriter_set_indent_string - Establece una cadena usada para la identidad + xmlwriter_set_indent_string + Set string used for indenting &reftitle.description; &style.oop; - - boolXMLWriter::setIndentString - stringindentString + + public boolXMLWriter::setIndentString + stringindentation &style.procedural; boolxmlwriter_set_indent_string - resourcexmlwriter - stringindentString + XMLWriterwriter + stringindentation Establece el string el cual va a ser usado para sangrar cada elemento/atributo del @@ -33,7 +31,7 @@ &xmlwriter.xmlwriter.description; - indentString + indentation El string de sangría. @@ -51,6 +49,32 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + + + &reftitle.notes; + + + The indent is reset when an xmlwriter is opened. + + + + &reftitle.seealso; @@ -61,7 +85,6 @@ - - + - - + XMLWriter::startAttribute - xmlwriter_start_attribute + xmlwriter_start_attribute Crea un atributo inicial &reftitle.description; &style.oop; - - boolXMLWriter::startAttribute + + public boolXMLWriter::startAttribute stringname &style.procedural; boolxmlwriter_start_attribute - resourcexmlwriter + XMLWriterwriter stringname @@ -50,6 +48,51 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + + + &reftitle.examples; + + Basic <methodname>XMLWriter::startAttribute</methodname> Usage + +openURI('php://output'); +$writer->startDocument('1.0', 'UTF-8'); +$writer->startElement('element'); +$writer->startAttribute('attribute'); +$writer->text('value'); +$writer->endAttribute(); +$writer->endElement(); +$writer->endDocument(); +]]> + + &example.outputs.similar; + + + +]]> + + + + &reftitle.seealso; @@ -63,7 +106,6 @@ - - + - - + XMLWriter::startAttributeNs xmlwriter_start_attribute_ns @@ -12,19 +10,19 @@ &reftitle.description; &style.oop; - - boolXMLWriter::startAttributeNs - stringprefix + + public boolXMLWriter::startAttributeNs + stringnullprefix stringname - stringuri + stringnullnamespace &style.procedural; boolxmlwriter_start_attribute_ns - resourcexmlwriter - stringprefix + XMLWriterwriter + stringnullprefix stringname - stringuri + stringnullnamespace Inicia un atributo de namespaced. @@ -52,10 +50,12 @@ - uri + namespace - El URI del namespaced. + The namespace URI. + If namespace is &null;, the namespace declaration will be + omitted. @@ -70,6 +70,29 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + 8.0.0 + + prefix is nullable now. + + + + + + + &reftitle.seealso; @@ -83,7 +106,6 @@ - - + - - + XMLWriter::startCdata xmlwriter_start_cdata @@ -12,14 +10,14 @@ &reftitle.description; &style.oop; - - boolXMLWriter::startCdata + + public boolXMLWriter::startCdata &style.procedural; boolxmlwriter_start_cdata - resourcexmlwriter + XMLWriterwriter Inicia un CDATA. @@ -41,6 +39,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + &reftitle.seealso; @@ -52,7 +67,6 @@ - - - - + + + XMLWriter::startComment - xmlwriter_start_comment + xmlwriter_start_comment Crea un comentario inicial &reftitle.description; &style.oop; - - boolXMLWriter::startComment + + public boolXMLWriter::startComment &style.procedural; boolxmlwriter_start_comment - resourcexmlwriter + XMLWriterwriter Inicia un comentario. @@ -40,6 +39,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + &reftitle.seealso; @@ -51,7 +67,6 @@ - - - - + + + XMLWriter::startDocument - xmlwriter_start_document + xmlwriter_start_document Crea un etiqueta del documento &reftitle.description; &style.oop; - - boolXMLWriter::startDocument - stringversion1.0 - stringencoding&null; - stringstandalone + + public boolXMLWriter::startDocument + stringnullversion"1.0" + stringnullencoding&null; + stringnullstandalone&null; &style.procedural; boolxmlwriter_start_document - resourcexmlwriter - stringversion1.0 - stringencoding&null; - stringstandalone + XMLWriterwriter + stringnullversion"1.0" + stringnullencoding&null; + stringnullstandalone&null; Inicia un documento. @@ -38,7 +37,7 @@ version - La versión numerica del documento como parte de la declaración XML. + La versión numerica del documento como parte de la declaración XML. @@ -69,6 +68,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + &reftitle.seealso; @@ -79,7 +95,6 @@ - - + - - + XMLWriter::startDtd xmlwriter_start_dtd @@ -12,19 +10,19 @@ &reftitle.description; &style.oop; - - boolXMLWriter::startDtd + + public boolXMLWriter::startDtd stringqualifiedName - stringpublicId - stringsystemId + stringnullpublicId&null; + stringnullsystemId&null; &style.procedural; boolxmlwriter_start_dtd - resourcexmlwriter + XMLWriterwriter stringqualifiedName - stringpublicId - stringsystemId + stringnullpublicId&null; + stringnullsystemId&null; Inicia un DTD. @@ -70,6 +68,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + &reftitle.seealso; @@ -81,7 +96,6 @@ - - + - - + XMLWriter::startDtdAttlist - xmlwriter_start_dtd_attlist + xmlwriter_start_dtd_attlist Crea el DTD AttList inicial &reftitle.description; &style.oop; - - boolXMLWriter::startDtdAttlist + + public boolXMLWriter::startDtdAttlist stringname &style.procedural; boolxmlwriter_start_dtd_attlist - resourcexmlwriter + XMLWriterwriter stringname @@ -50,6 +48,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + &reftitle.seealso; @@ -61,7 +76,6 @@ - - + - - + XMLWriter::startDtdElement - xmlwriter_start_dtd_element + xmlwriter_start_dtd_element Crea un elemento DTD inicial &reftitle.description; &style.oop; - - boolXMLWriter::startDtdElement + + public boolXMLWriter::startDtdElement stringqualifiedName &style.procedural; boolxmlwriter_start_dtd_element - resourcexmlwriter + XMLWriterwriter stringqualifiedName @@ -50,6 +48,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + &reftitle.seealso; @@ -61,7 +76,6 @@ - - + - - + XMLWriter::startDtdEntity - xmlwriter_start_dtd_entity + xmlwriter_start_dtd_entity Crea un ente DTD inicial &reftitle.description; &style.oop; - - boolXMLWriter::startDtdEntity + + public boolXMLWriter::startDtdEntity stringname - boolisparam + boolisParam &style.procedural; boolxmlwriter_start_dtd_entity - resourcexmlwriter + XMLWriterwriter stringname - boolisparam + boolisParam Inicia un ente DTD. @@ -42,7 +40,7 @@ - isparam + isParam @@ -59,6 +57,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + &reftitle.seealso; @@ -70,7 +85,6 @@ - - - - + + + XMLWriter::startElement - xmlwriter_start_element + xmlwriter_start_element Crea la etiqueta del elemento inicial &reftitle.description; &style.oop; - - boolXMLWriter::startElement + + public boolXMLWriter::startElement stringname &style.procedural; boolxmlwriter_start_element - resourcexmlwriter + XMLWriterwriter stringname @@ -49,6 +48,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + &reftitle.seealso; @@ -60,7 +76,6 @@ - - + - - + XMLWriter::startElementNs - xmlwriter_start_element_ns + xmlwriter_start_element_ns Crea la etiqueta del elemento de espacio de nombres inicial &reftitle.description; &style.oop; - - boolXMLWriter::startElementNs - stringprefix + + public boolXMLWriter::startElementNs + stringnullprefix stringname - stringuri + stringnullnamespace &style.procedural; boolxmlwriter_start_element_ns - resourcexmlwriter - stringprefix + XMLWriterwriter + stringnullprefix stringname - stringuri + stringnullnamespace Inicia un elemento de espacio de nombres. @@ -40,6 +38,7 @@ El prefijo del namespace. + If prefix is &null;, the namespace will be omitted. @@ -52,10 +51,12 @@ - uri + namespace El namespace de URI. + If namespace is &null;, the namespace declaration will be + omitted. @@ -70,6 +71,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + &reftitle.seealso; @@ -81,7 +99,6 @@ - - + - - + XMLWriter::startPi - xmlwriter_start_pi + xmlwriter_start_pi Crea la etiqueta PI inicial &reftitle.description; &style.oop; - - boolXMLWriter::startPi + + public boolXMLWriter::startPi stringtarget &style.procedural; boolxmlwriter_start_pi - resourcexmlwriter + XMLWriterwriter stringtarget @@ -50,6 +48,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + &reftitle.seealso; @@ -61,7 +76,6 @@ - - - - + + + XMLWriter::text - xmlwriter_text + xmlwriter_text Escribe el texto &reftitle.description; &style.oop; - - boolXMLWriter::text + + public boolXMLWriter::text stringcontent &style.procedural; boolxmlwriter_text - resourcexmlwriter + XMLWriterwriter stringcontent @@ -34,7 +33,14 @@ content - El contenido del texto. + The contents of the text. + The characters <, >, + & and " are written as + entity references (i.e. &lt;, &gt;, + &amp; and &quot;, respectively). + All other characters including ' are written literally. + To write the special XML characters literally, or to write literal entity references, + xmlwriter_write_raw has to be used. @@ -49,8 +55,24 @@ - + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + - + - - + XMLWriter::writeAttribute - xmlwriter_write_attribute + xmlwriter_write_attribute Escribe un atributo completo &reftitle.description; &style.oop; - - boolXMLWriter::writeAttribute + + public boolXMLWriter::writeAttribute stringname stringvalue &style.procedural; boolxmlwriter_write_attribute - resourcexmlwriter + XMLWriterwriter stringname stringvalue @@ -60,6 +58,57 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + + + &reftitle.examples; + + Intermixing Sub-elements and Attributes + + If writing sub-elements and attributes is intermixed, any attempt to write + attributes after the first sub-element will fail and return false. + + +openMemory(); + +$xml->startElement('element'); +$xml->writeAttribute('attr1', '0'); +$xml->writeElement('subelem', '0'); +var_dump($xml->writeAttribute('attr2', '0')); +$xml->endElement(); + +echo $xml->flush(); +?> +]]> + + &example.outputs; + +0 +]]> + + + + &reftitle.seealso; @@ -74,7 +123,6 @@ - - + - - + XMLWriter::writeAttributeNs - xmlwriter_write_attribute_ns - Escribe un atributo full de namespaced + xmlwriter_write_attribute_ns + Write full namespaced attribute &reftitle.description; &style.oop; - - boolXMLWriter::writeAttributeNs - stringprefix + + public boolXMLWriter::writeAttributeNs + stringnullprefix stringname - stringuri - stringcontent + stringnullnamespace + stringvalue &style.procedural; boolxmlwriter_write_attribute_ns - resourcexmlwriter - stringprefix + XMLWriterwriter + stringnullprefix stringname - stringuri - stringcontent + stringnullnamespace + stringvalue Escribe un atributo de espacio de nombres completo. @@ -41,7 +39,8 @@ prefix - el prefijo del namespace. + El prefijo del namespace. + If prefix is &null;, the namespace will be omitted. @@ -54,15 +53,17 @@ - uri + namespace El namespace de URI. + If namespace is &null;, the namespace declaration will be + omitted. - content + value El valor del atributo. @@ -80,6 +81,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + &reftitle.seealso; @@ -93,7 +111,6 @@ - - + - - + XMLWriter::writeCdata - xmlwriter_write_cdata + xmlwriter_write_cdata Escribe una etiqueta completa del CDATA &reftitle.description; &style.oop; - - boolXMLWriter::writeCdata + + public boolXMLWriter::writeCdata stringcontent &style.procedural; boolxmlwriter_write_cdata - resourcexmlwriter + XMLWriterwriter stringcontent @@ -50,6 +48,63 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + + + &reftitle.examples; + + Basic <function>xmlwriter_write_cdata</function> Usage + +openMemory(); +$xml->setIndent(true); +$xml->startDocument('1.0', 'UTF-8'); +$xml->startElement('mydoc'); +$xml->startElement('myele'); + +// CData output +$xml->startElement('mycdataelement'); +$xml->writeCData("text for inclusion as CData"); +$xml->endElement(); + +// end the document and output +$xml->endElement(); +$xml->endElement(); +echo $xml->outputMemory(true); +?> +]]> + + &example.outputs; + + + + + + +]]> + + + + &reftitle.seealso; @@ -61,7 +116,6 @@ - - - - + + + XMLWriter::writeComment - xmlwriter_write_comment + xmlwriter_write_comment EScribe la etiqueta del comentario completa &reftitle.description; &style.oop; - - boolXMLWriter::writeComment + + public boolXMLWriter::writeComment stringcontent &style.procedural; boolxmlwriter_write_comment - resourcexmlwriter + XMLWriterwriter stringcontent @@ -49,6 +48,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + &reftitle.seealso; @@ -60,7 +76,6 @@ - - + - - + XMLWriter::writeDtd - xmlwriter_write_dtd + xmlwriter_write_dtd Escribe una etiqueta completa del DTD &reftitle.description; &style.oop; - - boolXMLWriter::writeDtd + + public boolXMLWriter::writeDtd stringname - stringpublicId - stringsystemId - stringsubset + stringnullpublicId&null; + stringnullsystemId&null; + stringnullcontent&null; &style.procedural; boolxmlwriter_write_dtd - resourcexmlwriter + XMLWriterwriter stringname - stringpublicId - stringsystemId - stringsubset + stringnullpublicId&null; + stringnullsystemId&null; + stringnullcontent&null; Escribe un completo DTD. @@ -62,7 +60,7 @@ - subset + content El contenido del DTD. @@ -80,6 +78,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + &reftitle.seealso; @@ -91,7 +106,6 @@ - - + - - + XMLWriter::writeDtdAttlist - xmlwriter_write_dtd_attlist + xmlwriter_write_dtd_attlist Escribe la etiqueta completa del DTD AttList &reftitle.description; &style.oop; - - boolXMLWriter::writeDtdAttlist + + public boolXMLWriter::writeDtdAttlist stringname stringcontent &style.procedural; boolxmlwriter_write_dtd_attlist - resourcexmlwriter + XMLWriterwriter stringname stringcontent @@ -60,6 +58,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + &reftitle.seealso; @@ -71,7 +86,6 @@ - - + - - + XMLWriter::writeDtdElement - xmlwriter_write_dtd_element + xmlwriter_write_dtd_element Escribe la etiqueta completa de un elemento DTD &reftitle.description; &style.oop; - - boolXMLWriter::writeDtdElement + + public boolXMLWriter::writeDtdElement stringname stringcontent &style.procedural; boolxmlwriter_write_dtd_element - resourcexmlwriter + XMLWriterwriter stringname stringcontent @@ -60,6 +58,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + &reftitle.seealso; @@ -71,7 +86,6 @@ - - + - - + XMLWriter::writeDtdEntity - xmlwriter_write_dtd_entity + xmlwriter_write_dtd_entity Escribe una etiqueta completa de un ente DTD &reftitle.description; &style.oop; - - boolXMLWriter::writeDtdEntity + + public boolXMLWriter::writeDtdEntity stringname stringcontent - boolpe - stringpubid - stringsysid - stringndataid + boolisParam&false; + stringnullpublicId&null; + stringnullsystemId&null; + stringnullnotationData&null; &style.procedural; boolxmlwriter_write_dtd_entity - resourcexmlwriter + XMLWriterwriter stringname stringcontent - boolpe - stringpubid - stringsysid - stringndataid + boolisParam&false; + stringnullpublicId&null; + stringnullsystemId&null; + stringnullnotationData&null; Escribe un ente completo DTD. @@ -68,6 +66,30 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + 8.0.0 + + publicId, systemId and + notationData are nullable now. + + + + + + + &reftitle.seealso; @@ -79,7 +101,6 @@ - - + - - + XMLWriter::writeElement - xmlwriter_write_element + xmlwriter_write_element Escribe una etiqueta completa del elemento &reftitle.description; &style.oop; - - boolXMLWriter::writeElement + + public boolXMLWriter::writeElement stringname - stringcontent + stringnullcontent&null; &style.procedural; boolxmlwriter_write_element - resourcexmlwriter + XMLWriterwriter stringname - stringcontent + stringnullcontent&null; Escribe una etiqueta completa del elemento. @@ -62,26 +60,19 @@ &reftitle.changelog; - - - - - - &Version; - &Description; - - - - - 5.2.3 - - El parámetro content se convierte en opcional. - - - - - - + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + @@ -96,7 +87,6 @@ - - + - - + XMLWriter::writeElementNs - xmlwriter_write_element_ns + xmlwriter_write_element_ns Escribe una etiqueta completa del elemento &reftitle.description; &style.oop; - - boolXMLWriter::writeElementNs - stringprefix + + public boolXMLWriter::writeElementNs + stringnullprefix stringname - stringuri - stringcontent + stringnullnamespace + stringnullcontent&null; &style.procedural; boolxmlwriter_write_element_ns - resourcexmlwriter - stringprefix + XMLWriterwriter + stringnullprefix stringname - stringuri - stringcontent + stringnullnamespace + stringnullcontent&null; Escribe una etiqueta completa del elemento. @@ -42,6 +40,7 @@ El nombre del prefijo. + If prefix is &null;, the namespace will be omitted. @@ -54,10 +53,12 @@ - uri + namespace El URI del namespace. + If namespace is &null;, the namespace declaration will be + omitted. @@ -72,38 +73,31 @@ - + &reftitle.returnvalues; &return.success; - + &reftitle.changelog; - - - - - - &Version; - &Description; - - - - - 5.2.3 - - El parámetro content se convierte en opcional. - - - - - - + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + - + &reftitle.seealso; @@ -114,9 +108,8 @@ - - + - + - - + XMLWriter::writePi - xmlwriter_write_pi + xmlwriter_write_pi Escribe un IP &reftitle.description; &style.oop; - - boolXMLWriter::writePi + + public boolXMLWriter::writePi stringtarget stringcontent &style.procedural; boolxmlwriter_write_pi - resourcexmlwriter + XMLWriterwriter stringtarget stringcontent - Escribe una instrucción de procesamiento. + Escribe una instrucción de procesamiento. @@ -60,6 +58,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + &reftitle.seealso; @@ -71,7 +86,6 @@ - - - - + + + XMLWriter::writeRaw - xmlwriter_write_raw + xmlwriter_write_raw Escribe un texto sin formato del XML &reftitle.description; &style.oop; - - boolXMLWriter::writeRaw + + public boolXMLWriter::writeRaw stringcontent &style.procedural; boolxmlwriter_write_raw - resourcexmlwriter + XMLWriterwriter stringcontent @@ -49,6 +48,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &xmlwriter.changelog.writer-param; + + + + + &reftitle.seealso; @@ -59,7 +75,6 @@ -