* Create new xmlwriter using source uri for output * @link https://php.net/manual/en/function.xmlwriter-openuri.php * @param string $uri
* The URI of the resource for the output. *
* @return bool Object oriented style: Returns TRUE on success or FALSE on failure. * *
* Procedural style: Returns a new xmlwriter resource for later use with the
* xmlwriter functions on success, FALSE on error.
*/
#[TentativeType]
public function openUri(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $uri): bool {}
/**
* (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
* Create new xmlwriter using memory for string output
* @link https://php.net/manual/en/function.xmlwriter-openmemory.php
* @return bool Object oriented style: Returns TRUE on success or FALSE on failure.
*
* Procedural style: Returns a new xmlwriter resource for later use with the
* xmlwriter functions on success, FALSE on error.
*/
#[TentativeType]
public function openMemory(): bool {}
/**
* (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
* Toggle indentation on/off.
* @link https://www.php.net/manual/en/xmlwriter.setindent.php
* @param bool|int $enable
* Whether indentation is enabled or number of indent strings *
* @return bool TRUE on success or FALSE on failure. */ #[TentativeType] public function setIndent(#[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $enable): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)* The indentation string. *
* @return bool TRUE on success or FALSE on failure. */ #[TentativeType] public function setIndentString(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $indentation): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 1.0.0)* The attribute name. *
* @return bool TRUE on success or FALSE on failure. */ #[TentativeType] public function startAttribute(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)* The name of the attribute. *
* @param string $value* The value of the attribute. *
* @return bool TRUE on success or FALSE on failure. */ #[TentativeType] public function writeAttribute( #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name, #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $value ): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)* The namespace prefix. *
* @param string $name* The attribute name. *
* @param string $namespace* The namespace URI. *
* @return bool TRUE on success or FALSE on failure. */ #[TentativeType] public function startAttributeNs( #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $prefix, #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name, #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $namespace ): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)* The namespace prefix. *
* @param string $name* The attribute name. *
* @param string $namespace* The namespace URI. *
* @param string $value* The attribute value. *
* @return bool TRUE on success or FALSE on failure. */ #[TentativeType] public function writeAttributeNs( #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $prefix, #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name, #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $namespace, #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $value ): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)* The element name. *
* @return bool TRUE on success or FALSE on failure. */ #[TentativeType] public function startElement(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)* The namespace prefix. *
* @param string $name* The element name. *
* @param string $namespace* The namespace URI. *
* @return bool TRUE on success or FALSE on failure. */ #[TentativeType] public function startElementNs( #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $prefix, #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name, #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $namespace ): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)* The element name. *
* @param string $content [optional]* The element contents. *
* @return bool TRUE on success or FALSE on failure. */ #[TentativeType] public function writeElement( #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name, #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $content = null ): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)* The namespace prefix. *
* @param string $name* The element name. *
* @param string $namespace* The namespace URI. *
* @param string $content [optional]* The element contents. *
* @return bool TRUE on success or FALSE on failure. */ #[TentativeType] public function writeElementNs( #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $prefix, #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name, #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $namespace, #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $content = null ): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)* The target of the processing instruction. *
* @return bool TRUE on success or FALSE on failure. */ #[TentativeType] public function startPi(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $target): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)* The target of the processing instruction. *
* @param string $content* The content of the processing instruction. *
* @return bool TRUE on success or FALSE on failure. */ #[TentativeType] public function writePi( #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $target, #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $content ): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)* The contents of the CDATA. *
* @return bool TRUE on success or FALSE on failure. */ #[TentativeType] public function writeCdata(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $content): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)* The contents of the text. *
* @return bool TRUE on success or FALSE on failure. */ #[TentativeType] public function text(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $content): bool {} /** * (PHP 5 >= 5.2.0, PECL xmlwriter >= 2.0.4)* The text string to write. *
* @return bool TRUE on success or FALSE on failure. */ #[TentativeType] public function writeRaw(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $content): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)* The version number of the document as part of the XML declaration. *
* @param string $encoding [optional]* The encoding of the document as part of the XML declaration. *
* @param string $standalone [optional]* yes or no. *
* @return bool TRUE on success or FALSE on failure. */ #[TentativeType] public function startDocument( #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $version = '1.0', #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $encoding = null, #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $standalone = null ): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)* The contents of the comment. *
* @return bool TRUE on success or FALSE on failure. */ #[TentativeType] public function writeComment(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $content): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)* The qualified name of the document type to create. *
* @param string $publicId [optional]* The external subset public identifier. *
* @param string $systemId [optional]* The external subset system identifier. *
* @return bool TRUE on success or FALSE on failure. */ #[TentativeType] public function startDtd( #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $qualifiedName, #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $publicId = null, #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $systemId = null ): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)* The DTD name. *
* @param string $publicId [optional]* The external subset public identifier. *
* @param string $systemId [optional]* The external subset system identifier. *
* @param string $content [optional]* The content of the DTD. *
* @return bool TRUE on success or FALSE on failure. */ #[TentativeType] public function writeDtd( #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name, #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $publicId = null, #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $systemId = null, #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $content = null ): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)* The qualified name of the document type to create. *
* @return bool TRUE on success or FALSE on failure. */ #[TentativeType] public function startDtdElement(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $qualifiedName): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)* The name of the DTD element. *
* @param string $content* The content of the element. *
* @return bool TRUE on success or FALSE on failure. */ #[TentativeType] public function writeDtdElement( #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name, #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $content ): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)* The attribute list name. *
* @return bool TRUE on success or FALSE on failure. */ #[TentativeType] public function startDtdAttlist(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)* The name of the DTD attribute list. *
* @param string $content* The content of the DTD attribute list. *
* @return bool TRUE on success or FALSE on failure. */ #[TentativeType] public function writeDtdAttlist( #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name, #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $content ): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)* The name of the entity. *
* @param bool $isParam * @return bool TRUE on success or FALSE on failure. */ #[TentativeType] public function startDtdEntity( #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name, #[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $isParam ): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)* The name of the entity. *
* @param string $content* The content of the entity. *
* @param bool $pe * @param string $pubid * @param string $sysid * @param string $ndataid * @return bool TRUE on success or FALSE on failure. */ public function writeDtdEntity( #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name, #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $content, $pe, $pubid, $sysid, $ndataid ) {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)* Whether to flush the output buffer or not. Default is TRUE. *
* @return string the current buffer as a string. */ #[TentativeType] public function outputMemory(#[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $flush = true): string {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 1.0.0)* Whether to empty the buffer or not. Default is TRUE. *
* @return string|int 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. */ #[TentativeType] public function flush(#[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $empty = true): string|int {} } /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)* The URI of the resource for the output. *
* @return false|resource|XMLWriter Object oriented style: Returns TRUE on success or FALSE on failure. ** Procedural style: Returns a new xmlwriter resource for later use with the * xmlwriter functions on success, FALSE on error. *
*/ #[LanguageLevelTypeAware(["8.0" => "XMLWriter|false"], default: "resource|false")] function xmlwriter_open_uri(string $uri) {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)* Procedural style: Returns a new xmlwriter resource for later use with the * xmlwriter functions on success, FALSE on error. *
*/ #[LanguageLevelTypeAware(["8.0" => "XMLWriter|false"], default: "resource|false")] function xmlwriter_open_memory() {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @param bool $enable* Whether indentation is enabled. *
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_set_indent(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, bool $enable): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @param string $indentation* The indentation string. *
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_set_indent_string(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $indentation): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 1.0.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_start_comment(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 1.0.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_end_comment(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @param string $name* The attribute name. *
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_start_attribute(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $name): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_end_attribute(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @param string $name* The name of the attribute. *
* @param string $value* The value of the attribute. *
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_write_attribute(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $name, string $value): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @param string|null $prefix* The namespace prefix. *
* @param string $name* The attribute name. *
* @param string|null $namespace* The namespace URI. *
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_start_attribute_ns(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, ?string $prefix, string $name, ?string $namespace): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @param string|null $prefix* The namespace prefix. *
* @param string $name* The attribute name. *
* @param string|null $namespace* The namespace URI. *
* @param string $value* The attribute value. *
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_write_attribute_ns(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, ?string $prefix, string $name, ?string $namespace, string $value): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @param string $name* The element name. *
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_start_element(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $name): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_end_element(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool {} /** * (PHP 5 >= 5.2.0, PECL xmlwriter >= 2.0.4)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_full_end_element(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @param string|null $prefix* The namespace prefix. *
* @param string $name* The element name. *
* @param string|null $namespace* The namespace URI. *
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_start_element_ns(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, ?string $prefix, string $name, ?string $namespace): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @param string $name* The element name. *
* @param string|null $content [optional]* The element contents. *
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_write_element(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $name, ?string $content): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @param string|null $prefix* The namespace prefix. *
* @param string $name* The element name. *
* @param string|null $namespace* The namespace URI. *
* @param string|null $content [optional]* The element contents. *
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_write_element_ns(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, ?string $prefix, string $name, ?string $namespace, ?string $content): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @param string $target* The target of the processing instruction. *
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_start_pi(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $target): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_end_pi(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @param string $target* The target of the processing instruction. *
* @param string $content* The content of the processing instruction. *
* * @return bool TRUE on success or FALSE on failure. */ function xmlwriter_write_pi(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $target, string $content): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_start_cdata(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_end_cdata(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @param string $content* The contents of the CDATA. *
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_write_cdata(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $content): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @param string $content* The contents of the text. *
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_text(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $content): bool {} /** * (PHP 5 >= 5.2.0, PECL xmlwriter >= 2.0.4)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @param string $content* The text string to write. *
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_write_raw(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $content): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @param string|null $version [optional]* The version number of the document as part of the XML declaration. *
* @param string|null $encoding [optional]* The encoding of the document as part of the XML declaration. *
* @param string|null $standalone [optional]* yes or no. *
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_start_document(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, ?string $version = '1.0', ?string $encoding, ?string $standalone): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_end_document(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @param string $content* The contents of the comment. *
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_write_comment(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $content): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @param string $qualifiedName* The qualified name of the document type to create. *
* @param string|null $publicId [optional]* The external subset public identifier. *
* @param string|null $systemId [optional]* The external subset system identifier. *
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_start_dtd(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $qualifiedName, ?string $publicId, ?string $systemId): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_end_dtd(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @param string $name* The DTD name. *
* @param string|null $publicId [optional]* The external subset public identifier. *
* @param string|null $systemId [optional]* The external subset system identifier. *
* @param string|null $content [optional]* The content of the DTD. *
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_write_dtd(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $name, ?string $publicId, ?string $systemId, ?string $content): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @param string $qualifiedName* The qualified name of the document type to create. *
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_start_dtd_element(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $qualifiedName): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @param string $name* The name of the DTD element. *
* @param string $content* The content of the element. *
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_write_dtd_element(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $name, string $content): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @param string $name* The attribute list name. *
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_start_dtd_attlist(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $name): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_end_dtd_attlist(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @param string $name* The name of the DTD attribute list. *
* @param string $content* The content of the DTD attribute list. *
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_write_dtd_attlist(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $name, string $content): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @param string $name* The name of the entity. *
* @param bool $isParam * @return bool TRUE on success or FALSE on failure. */ function xmlwriter_start_dtd_entity(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $name, bool $isParam): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @return bool TRUE on success or FALSE on failure. */ function xmlwriter_end_dtd_entity(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @param string $name* The name of the entity. *
* @param string $content* The content of the entity. *
* @param bool $isParam * @param string $publicId * @param string $systemId * @param string $notationData * @return bool TRUE on success or FALSE on failure. */ function xmlwriter_write_dtd_entity( #[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $name, string $content, #[PhpStormStubsElementAvailable(from: '8.0')] bool $isParam = false, #[PhpStormStubsElementAvailable(from: '8.0')] ?string $publicId = null, #[PhpStormStubsElementAvailable(from: '8.0')] ?string $systemId = null, #[PhpStormStubsElementAvailable(from: '8.0')] ?string $notationData = null ): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @param bool $flush [optional]* Whether to flush the output buffer or not. Default is TRUE. *
* @return string the current buffer as a string. */ function xmlwriter_output_memory(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, bool $flush = true): string {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 1.0.0)Only for procedural calls. * The XMLWriter {@link https://php.net/manual/en/language.types.resource.php" resource} that is being modified. * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-openuri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-openmemory.php" xmlwriter_open_memory()}.
* @param bool $empty [optional]* Whether to empty the buffer or not. Default is TRUE. *
* @return string|int 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. */ function xmlwriter_flush(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, bool $empty = true): string|int {}