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

XMLWriter::startDocument()

XMLWriter::startDocument - Create document tag

Syntax

bool XMLWriter::startDocument (string $version, string $encoding, string $standalone, resource $xmlwriter, string $version, string $encoding, string $standalone, string $version, string $encoding, string $standalone, resource $xmlwriter, string $version, string $encoding, string $standalone)

Arguments

  • version - 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().
  • encoding - The version number of the document as part of the XML declaration. Defaults to 1.0.
  • standalone - The encoding of the document as part of the XML declaration. NULL by default.
  • xmlwriter - yesor no.
  • version
  • encoding
  • standalone
  • version - 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().
  • encoding - The version number of the document as part of the XML declaration. Defaults to 1.0.
  • standalone - The encoding of the document as part of the XML declaration. NULL by default.
  • xmlwriter - yesor no.
  • version
  • encoding
  • standalone

Description

Object oriented style

Version

PHP 5.1.2, PECL xmlwriter >= 0.1.0

Return value

Returns TRUE on success or FALSE on failure.