XMLWriter::endAttribute

xmlwriter_end_attribute

End attribute

说明

面向对象风格

bool XMLWriter::endAttribute ( void )

过程化风格

bool xmlwriter_end_attribute ( resource $xmlwriter )

Ends the current attribute.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::startAttribute
  • XMLWriter::startAttributeNs
  • XMLWriter::writeAttribute
  • XMLWriter::writeAttributeNs

XMLWriter::endCdata

xmlwriter_end_cdata

End current CDATA

说明

面向对象风格

bool XMLWriter::endCdata ( void )

过程化风格

bool xmlwriter_end_cdata ( resource $xmlwriter )

Ends the current CDATA section.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::startCdata
  • XMLWriter::writeCdata

XMLWriter::endComment

xmlwriter_end_comment

Create end comment

说明

面向对象风格

bool XMLWriter::endComment ( void )

过程化风格

bool xmlwriter_end_comment ( resource $xmlwriter )

Ends the current comment.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::startComment
  • XMLWriter::writeComment

XMLWriter::endDocument

xmlwriter_end_document

End current document

说明

面向对象风格

bool XMLWriter::endDocument ( void )

过程化风格

bool xmlwriter_end_document ( resource $xmlwriter )

Ends the current document.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::startDocument

XMLWriter::endDtdAttlist

xmlwriter_end_dtd_attlist

End current DTD AttList

说明

面向对象风格

bool XMLWriter::endDtdAttlist ( void )

过程化风格

bool xmlwriter_end_dtd_attlist ( resource $xmlwriter )

Ends the current DTD attribute list.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::startDtdAttlist
  • XMLWriter::writeDtdAttlist

XMLWriter::endDtdElement

xmlwriter_end_dtd_element

End current DTD element

说明

面向对象风格

bool XMLWriter::endDtdElement ( void )

过程化风格

bool xmlwriter_end_dtd_element ( resource $xmlwriter )

Ends the current DTD element.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::startDtdElement
  • XMLWriter::writeDtdElement

XMLWriter::endDtdEntity

xmlwriter_end_dtd_entity

End current DTD Entity

说明

面向对象风格

bool XMLWriter::endDtdEntity ( void )

过程化风格

bool xmlwriter_end_dtd_entity ( resource $xmlwriter )

Ends the current DTD entity.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::startDtdEntity
  • XMLWriter::writeDtdEntity

XMLWriter::endDtd

xmlwriter_end_dtd

End current DTD

说明

面向对象风格

bool XMLWriter::endDtd ( void )

过程化风格

bool xmlwriter_end_dtd ( resource $xmlwriter )

Ends the DTD of the document.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::startDtd
  • XMLWriter::writeDtd

XMLWriter::endElement

xmlwriter_end_element

End current element

说明

面向对象风格

bool XMLWriter::endElement ( void )

过程化风格

bool xmlwriter_end_element ( resource $xmlwriter )

Ends the current element.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::startElement
  • XMLWriter::writeElement

XMLWriter::endPi

xmlwriter_end_pi

End current PI

说明

面向对象风格

bool XMLWriter::endPi ( void )

过程化风格

bool xmlwriter_end_pi ( resource $xmlwriter )

Ends the current processing instruction.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::startPi
  • XMLWriter::writePi

XMLWriter::flush

xmlwriter_flush

Flush current buffer

说明

面向对象风格

mixed XMLWriter::flush ([ bool $empty = TRUE ] )

过程化风格

mixed xmlwriter_flush ( resource $xmlwriter [, bool $empty = TRUE ] )

Flushes the current buffer.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

empty
Whether to empty the buffer or not. Default is TRUE.

返回值

If you opened the writer in memory, this function returns the generated XML buffer, Else, if using URI, this function will write the buffer and return the number of written bytes.

XMLWriter::fullEndElement

xmlwriter_full_end_element

End current element

说明

面向对象风格

bool XMLWriter::fullEndElement ( void )

过程化风格

bool xmlwriter_full_end_element ( resource $xmlwriter )

End the current xml element. Writes an end tag even if the element is empty.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::endElement

XMLWriter::openMemory

xmlwriter_open_memory

Create new xmlwriter using memory for string output

说明

面向对象风格

bool XMLWriter::openMemory ( void )

过程化风格

resource xmlwriter_open_memory ( void )

Creates a new XMLWriter using memory for string output.

参数

返回值

面向对象风格: 成功时返回 TRUE, 或者在失败时返回 FALSE

过程化风格: Returns a new xmlwriter 资源(resource) for later use with the xmlwriter functions on success, FALSE on error.

参见

  • XMLWriter::openUri

XMLWriter::openUri

xmlwriter_open_uri

Create new xmlwriter using source uri for output

说明

面向对象风格

bool XMLWriter::openUri ( string $uri )

过程化风格

resource xmlwriter_open_uri ( string $uri )

Creates a new XMLWriter using uri for the output.

参数

uri
The URI of the resource for the output.

返回值

面向对象风格: 成功时返回 TRUE, 或者在失败时返回 FALSE

过程化风格: Returns a new xmlwriter 资源(resource) for later use with the xmlwriter functions on success, FALSE on error.

参见

  • XMLWriter::openMemory

XMLWriter::outputMemory

xmlwriter_output_memory

Returns current buffer

说明

面向对象风格

string XMLWriter::outputMemory ([ bool $flush = TRUE ] )

过程化风格

string xmlwriter_output_memory ( resource $xmlwriter [, bool $flush = TRUE ] )

Returns the current buffer.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

flush
Whether to flush the output buffer or not. Default is TRUE.

返回值

Returns the current buffer as a string.

参见

  • XMLWriter::flush

XMLWriter::setIndentString

xmlwriter_set_indent_string

Set string used for indenting

说明

面向对象风格

bool XMLWriter::setIndentString ( string $indentString )

过程化风格

bool xmlwriter_set_indent_string ( resource $xmlwriter , string $indentString )

Sets the string which will be used to indent each element/attribute of the resulting xml.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

indentString
The indentation string.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::setIndent

XMLWriter::setIndent

xmlwriter_set_indent

Toggle indentation on/off

说明

面向对象风格

bool XMLWriter::setIndent ( bool $indent )

过程化风格

bool xmlwriter_set_indent ( resource $xmlwriter , bool $indent )

Toggles indentation on or off.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

indent
Whether indentation is enabled.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::setIndentString

XMLWriter::startAttributeNs

xmlwriter_start_attribute_ns

Create start namespaced attribute

说明

面向对象风格

bool XMLWriter::startAttributeNs ( string $prefix , string $name , string $uri )

过程化风格

bool xmlwriter_start_attribute_ns ( resource $xmlwriter , string $prefix , string $name , string $uri )

Starts a namespaced attribute.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

prefix
The namespace prefix.

name
The attribute name.

uri
The namespace URI.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::startAttribute
  • XMLWriter::endAttribute
  • XMLWriter::writeAttribute
  • XMLWriter::writeAttributeNs

XMLWriter::startAttribute

xmlwriter_start_attribute

Create start attribute

说明

面向对象风格

bool XMLWriter::startAttribute ( string $name )

过程化风格

bool xmlwriter_start_attribute ( resource $xmlwriter , string $name )

Starts an attribute.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

name
The attribute name.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::startAttributeNs
  • XMLWriter::endAttribute
  • XMLWriter::writeAttribute
  • XMLWriter::writeAttributeNs

XMLWriter::startCdata

xmlwriter_start_cdata

Create start CDATA tag

说明

面向对象风格

bool XMLWriter::startCdata ( void )

过程化风格

bool xmlwriter_start_cdata ( resource $xmlwriter )

Starts a CDATA.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::endCdata
  • XMLWriter::writeCdata

XMLWriter::startComment

xmlwriter_start_comment

Create start comment

说明

面向对象风格

bool XMLWriter::startComment ( void )

过程化风格

bool xmlwriter_start_comment ( resource $xmlwriter )

Starts a comment.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::endComment
  • XMLWriter::writeComment

XMLWriter::startDocument

xmlwriter_start_document

Create document tag

说明

面向对象风格

bool XMLWriter::startDocument ([ string $version = 1.0 [, string $encoding = NULL [, string $standalone ]]] )

过程化风格

bool xmlwriter_start_document ( resource $xmlwriter [, string $version = 1.0 [, string $encoding = NULL [, string $standalone ]]] )

Starts a document.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

version
The version number of the document as part of the XML declaration.

encoding
The encoding of the document as part of the XML declaration.

standalone
yes or no.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::endDocument

XMLWriter::startDtdAttlist

xmlwriter_start_dtd_attlist

Create start DTD AttList

说明

面向对象风格

bool XMLWriter::startDtdAttlist ( string $name )

过程化风格

bool xmlwriter_start_dtd_attlist ( resource $xmlwriter , string $name )

Starts a DTD attribute list.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

name
The attribute list name.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::endDtdAttlist
  • XMLWriter::writeDtdAttlist

XMLWriter::startDtdElement

xmlwriter_start_dtd_element

Create start DTD element

说明

面向对象风格

bool XMLWriter::startDtdElement ( string $qualifiedName )

过程化风格

bool xmlwriter_start_dtd_element ( resource $xmlwriter , string $qualifiedName )

Starts a DTD element.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

qualifiedName
The qualified name of the document type to create.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::endDtdElement
  • XMLWriter::writeDtdElement

XMLWriter::startDtdEntity

xmlwriter_start_dtd_entity

Create start DTD Entity

说明

面向对象风格

bool XMLWriter::startDtdEntity ( string $name , bool $isparam )

过程化风格

bool xmlwriter_start_dtd_entity ( resource $xmlwriter , string $name , bool $isparam )

Starts a DTD entity.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

name
The name of the entity.

isparam

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::endDtdEntity
  • XMLWriter::writeDtdEntity

XMLWriter::startDtd

xmlwriter_start_dtd

Create start DTD tag

说明

面向对象风格

bool XMLWriter::startDtd ( string $qualifiedName [, string $publicId [, string $systemId ]] )

过程化风格

bool xmlwriter_start_dtd ( resource $xmlwriter , string $qualifiedName [, string $publicId [, string $systemId ]] )

Starts a DTD.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

qualifiedName
The qualified name of the document type to create.

publicId
The external subset public identifier.

systemId
The external subset system identifier.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::endDtd
  • XMLWriter::writeDtd

XMLWriter::startElementNs

xmlwriter_start_element_ns

Create start namespaced element tag

说明

面向对象风格

bool XMLWriter::startElementNs ( string $prefix , string $name , string $uri )

过程化风格

bool xmlwriter_start_element_ns ( resource $xmlwriter , string $prefix , string $name , string $uri )

Starts a namespaced element.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

prefix
The namespace prefix.

name
The element name.

uri
The namespace URI.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::endElement
  • XMLWriter::writeElementNs

XMLWriter::startElement

xmlwriter_start_element

Create start element tag

说明

面向对象风格

bool XMLWriter::startElement ( string $name )

过程化风格

bool xmlwriter_start_element ( resource $xmlwriter , string $name )

Starts an element.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

name
The element name.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::endElement
  • XMLWriter::writeElement

XMLWriter::startPi

xmlwriter_start_pi

Create start PI tag

说明

面向对象风格

bool XMLWriter::startPi ( string $target )

过程化风格

bool xmlwriter_start_pi ( resource $xmlwriter , string $target )

Starts a processing instruction tag.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

target
The target of the processing instruction.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::endPi
  • XMLWriter::writePi

XMLWriter::text

xmlwriter_text

Write text

说明

面向对象风格

bool XMLWriter::text ( string $content )

过程化风格

bool xmlwriter_text ( resource $xmlwriter , string $content )

Writes a text.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

content
The contents of the text.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

XMLWriter::writeAttributeNs

xmlwriter_write_attribute_ns

Write full namespaced attribute

说明

面向对象风格

bool XMLWriter::writeAttributeNs ( string $prefix , string $name , string $uri , string $content )

过程化风格

bool xmlwriter_write_attribute_ns ( resource $xmlwriter , string $prefix , string $name , string $uri , string $content )

Writes a full namespaced attribute.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

prefix
The namespace prefix.

name
The attribute name.

uri
The namespace URI.

content
The attribute value.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::writeAttribute
  • XMLWriter::startAttribute
  • XMLWriter::startAttributeNs
  • XMLWriter::endAttribute

XMLWriter::writeAttribute

xmlwriter_write_attribute

Write full attribute

说明

面向对象风格

bool XMLWriter::writeAttribute ( string $name , string $value )

过程化风格

bool xmlwriter_write_attribute ( resource $xmlwriter , string $name , string $value )

Writes a full attribute.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

name
The name of the attribute.

value
The value of the attribute.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::writeAttributeNs
  • XMLWriter::startAttribute
  • XMLWriter::startAttributeNs
  • XMLWriter::endAttribute

XMLWriter::writeCdata

xmlwriter_write_cdata

Write full CDATA tag

说明

面向对象风格

bool XMLWriter::writeCdata ( string $content )

过程化风格

bool xmlwriter_write_cdata ( resource $xmlwriter , string $content )

Writes a full CDATA.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

content
The contents of the CDATA.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::startCdata
  • XMLWriter::endCdata

XMLWriter::writeComment

xmlwriter_write_comment

Write full comment tag

说明

面向对象风格

bool XMLWriter::writeComment ( string $content )

过程化风格

bool xmlwriter_write_comment ( resource $xmlwriter , string $content )

Writes a full comment.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

content
The contents of the comment.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::startComment
  • XMLWriter::endComment

XMLWriter::writeDtdAttlist

xmlwriter_write_dtd_attlist

Write full DTD AttList tag

说明

面向对象风格

bool XMLWriter::writeDtdAttlist ( string $name , string $content )

过程化风格

bool xmlwriter_write_dtd_attlist ( resource $xmlwriter , string $name , string $content )

Writes a DTD attribute list.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

name
The name of the DTD attribute list.

content
The content of the DTD attribute list.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::startDtdAttlist
  • XMLWriter::endDtdAttlist

XMLWriter::writeDtdElement

xmlwriter_write_dtd_element

Write full DTD element tag

说明

面向对象风格

bool XMLWriter::writeDtdElement ( string $name , string $content )

过程化风格

bool xmlwriter_write_dtd_element ( resource $xmlwriter , string $name , string $content )

Writes a full DTD element.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

name
The name of the DTD element.

content
The content of the element.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::startDtdElement
  • XMLWriter::endDtdElement

XMLWriter::writeDtdEntity

xmlwriter_write_dtd_entity

Write full DTD Entity tag

说明

面向对象风格

bool XMLWriter::writeDtdEntity ( string $name , string $content , bool $pe , string $pubid , string $sysid , string $ndataid )

过程化风格

bool xmlwriter_write_dtd_entity ( resource $xmlwriter , string $name , string $content , bool $pe , string $pubid , string $sysid , string $ndataid )

Writes a full DTD entity.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

name
The name of the entity.

content
The content of the entity.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::startDtdEntity
  • XMLWriter::endDtdEntity

XMLWriter::writeDtd

xmlwriter_write_dtd

Write full DTD tag

说明

面向对象风格

bool XMLWriter::writeDtd ( string $name [, string $publicId [, string $systemId [, string $subset ]]] )

过程化风格

bool xmlwriter_write_dtd ( resource $xmlwriter , string $name [, string $publicId [, string $systemId [, string $subset ]]] )

Writes a full DTD.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

name
The DTD name.

publicId
The external subset public identifier.

systemId
The external subset system identifier.

subset
The content of the DTD.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::startDtd
  • XMLWriter::endDtd

XMLWriter::writeElementNs

xmlwriter_write_element_ns

Write full namespaced element tag

说明

面向对象风格

bool XMLWriter::writeElementNs ( string $prefix , string $name , string $uri [, string $content ] )

过程化风格

bool xmlwriter_write_element_ns ( resource $xmlwriter , string $prefix , string $name , string $uri [, string $content ] )

Writes a full namespaced element tag.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

prefix
The namespace prefix.

name
The element name.

uri
The namespace URI.

content
The element contents.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

更新日志

版本说明
5.2.3The content parameter became optional.

参见

  • XMLWriter::startElementNs
  • XMLWriter::endElement
  • XMLWriter::writeElement

XMLWriter::writeElement

xmlwriter_write_element

Write full element tag

说明

面向对象风格

bool XMLWriter::writeElement ( string $name [, string $content ] )

过程化风格

bool xmlwriter_write_element ( resource $xmlwriter , string $name [, string $content ] )

Writes a full element tag.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

name
The element name.

content
The element contents.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

更新日志

版本说明
5.2.3The content parameter became optional.

参见

  • XMLWriter::startElement
  • XMLWriter::endElement
  • XMLWriter::writeElementNs

XMLWriter::writePi

xmlwriter_write_pi

Writes a PI

说明

面向对象风格

bool XMLWriter::writePi ( string $target , string $content )

过程化风格

bool xmlwriter_write_pi ( resource $xmlwriter , string $target , string $content )

Writes a processing instruction.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

target
The target of the processing instruction.

content
The content of the processing instruction.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::startPi
  • XMLWriter::endPi

XMLWriter::writeRaw

xmlwriter_write_raw

Write a raw XML text

说明

面向对象风格

bool XMLWriter::writeRaw ( string $content )

过程化风格

bool xmlwriter_write_raw ( resource $xmlwriter , string $content )

Writes a raw xml text.

参数

xmlwriter
仅用于过程调用。被修改的 XMLWriter resource。此资源来自于对 xmlwriter_open_urixmlwriter_open_memory 的调用。

content
The text string to write.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • XMLWriter::text

目录