Home > PHP > Function > XMLWriter > XMLWriter::writeElement()

XMLWriter::writeElement()

XMLWriter::writeElement - Write full element tag

Syntax

bool XMLWriter::writeElement (string $name, string $content, resource $xmlwriter, string $name, string $content, string $name, string $content, resource $xmlwriter, string $name, string $content)

Arguments

  • name - Only for procedural calls. The XMLWriter resource that is being modified. This resource comes from a call to xmlwriter_open_uri() or xmlwriter_open_memory().
  • content - The element name.
  • xmlwriter - The element contents.
  • name
  • content
  • name - Only for procedural calls. The XMLWriter resource that is being modified. This resource comes from a call to xmlwriter_open_uri() or xmlwriter_open_memory().
  • content - The element name.
  • xmlwriter - The element contents.
  • name
  • content

Description

Object oriented style

Version

PHP 5.1.2, PECL xmlwriter >= 0.1.0

Return value

Returns TRUE on success or FALSE on failure.