# Die Klasse XMLWriter

(PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL xmlwriter >= 0.1.0)

## Einführung

## Klassenbeschreibung

class XMLWriter {
/* Methoden */
public endAttribute(): bool
public endCdata(): bool
public endComment(): bool
public endDocument(): bool
public endDtd(): bool
public endDtdAttlist(): bool
public endDtdElement(): bool
public endDtdEntity(): bool
public endElement(): bool
public endPi(): bool
public flush(bool `$empty` = `true`): string|int
public fullEndElement(): bool
public openMemory(): bool
public openUri(string `$uri`): bool
public outputMemory(bool `$flush` = `true`): string
public setIndent(bool `$enable`): bool
public setIndentString(string `$indentation`): bool
public startAttribute(string `$name`): bool
public startAttributeNs(?string `$prefix`, string `$name`, ?string `$namespace`): bool
public startCdata(): bool
public startComment(): bool
public startDocument(?string `$version` = "1.0", ?string `$encoding` = `null`, ?string `$standalone` = `null`): bool
public startDtd(string `$qualifiedName`, ?string `$publicId` = `null`, ?string `$systemId` = `null`): bool
public startDtdAttlist(string `$name`): bool
public startDtdElement(string `$qualifiedName`): bool
public startDtdEntity(string `$name`, bool `$isParam`): bool
public startElementNs(?string `$prefix`, string `$name`, ?string `$namespace`): bool
public startPi(string `$target`): bool
public text(string `$content`): bool
public static toMemory(): static
public static toStream(resource `$stream`): static
public static toUri(string `$uri`): static
public writeAttribute(string `$name`, string `$value`): bool
public writeAttributeNs(
?string `$prefix`,
string `$name`,
?string `$namespace`,
string `$value`
): bool
public writeCdata(string `$content`): bool
public writeComment(string `$content`): bool
public writeDtd(
string `$name`,
?string `$publicId` = `null`,
?string `$systemId` = `null`,
?string `$content` = `null`
): bool
public writeDtdAttlist(string `$name`, string `$content`): bool
public writeDtdElement(string `$name`, string `$content`): bool
public writeDtdEntity(
string `$name`,
string `$content`,
bool `$isParam` = `false`,
?string `$publicId` = `null`,
?string `$systemId` = `null`,
?string `$notationData` = `null`
): bool
public writeElement(string `$name`, ?string `$content` = `null`): bool
public writeElementNs(
?string `$prefix`,
string `$name`,
?string `$namespace`,
?string `$content` = `null`
): bool
public writePi(string `$target`, string `$content`): bool
public writeRaw(string `$content`): bool
}

## Inhaltsverzeichnis

- XMLWriter::endAttribute — Attribute beenden
- XMLWriter::endCdata — Beendet CDATA-Block
- XMLWriter::endComment — Beendet Kommentar
- XMLWriter::endDocument — Beendet Dokument
- XMLWriter::endDtd — Beendet DTD
- XMLWriter::endDtdAttlist — Beendet DTD-Attributliste
- XMLWriter::endDtdElement — Beendet DTD-Element
- XMLWriter::endDtdEntity — Beendet DTD-Entität
- XMLWriter::endElement — Beendet Element
- XMLWriter::endPi — Beendet Verarbeitungsvorschrift
- XMLWriter::flush — Puffer schreiben
- XMLWriter::fullEndElement — Beendet Element
- XMLWriter::openMemory — Erzeugt einen neuen XMLWriter, der Stringausgaben in den Speicher schreibt
- XMLWriter::openUri — Erzeugt neuen XMLWriter, der URI für Ausgabe verwendet
- XMLWriter::outputMemory — Gibt Puffer zurück
- XMLWriter::setIndent — Einrückung ein-/ausschalten
- XMLWriter::setIndentString — Setzt Zeichenkette, die zur Einrückung verwendet wird
- XMLWriter::startAttribute — Attribut beginnen
- XMLWriter::startAttributeNs — Namensraum-Attribut beginnen
- XMLWriter::startCdata — CDATA-Block beginnen
- XMLWriter::startComment — Kommentar beginnen
- XMLWriter::startDocument — Dokument beginnen
- XMLWriter::startDtd — DTD beginnen
- XMLWriter::startDtdAttlist — DTD-Attributliste beginnen
- XMLWriter::startDtdElement — DTD-Element beginnen
- XMLWriter::startDtdEntity — DTD-Entität beginnen
- XMLWriter::startElement — Element beginnen
- XMLWriter::startElementNs — Element mit Namensraum beginnen
- XMLWriter::startPi — Verarbeitungsvorschrift beginnen
- XMLWriter::text — Text schreiben
- XMLWriter::toMemory — Create new XMLWriter using memory for string output
- XMLWriter::toStream — Create new XMLWriter using a stream for output
- XMLWriter::toUri — Create new XMLWriter using a URI for output
- XMLWriter::writeAttribute — Komplettes Attribut schreiben
- XMLWriter::writeAttributeNs — Komplettes Attribute mit Namensraum schreiben
- XMLWriter::writeCdata — Kompletten CDATA-Block schreiben
- XMLWriter::writeComment — Kompletten Kommentar schreiben
- XMLWriter::writeDtd — Komplettes DTD-Tag schreiben
- XMLWriter::writeDtdAttlist — Komplette DTD-Attributliste schreiben
- XMLWriter::writeDtdElement — Komplettes DTD-Element schreiben
- XMLWriter::writeDtdEntity — Komplette DTD-Entität schreiben
- XMLWriter::writeElement — Komplettes Element schreiben
- XMLWriter::writeElementNs — Komplettes Element mit Namensraum schreiben
- XMLWriter::writePi — Komplette Verarbeitungsvorschrift-Tag schreiben
- XMLWriter::writeRaw — Reines XML schreiben

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open