XMLWriter::writeElement

Writes a full element tag

public function writeElement(
  string $name,
  string $content = NULL,
): bool;

Parameters

  • string $name - The element name.
  • string $content = NULL - The element contents.

Returns

  • bool - - Returns TRUE on success or FALSE on failure.