2024 PHP Conference Japan

XMLWriter 類別

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

簡介

類別概要

class XMLWriter {
/* 方法 */
public endAttribute(): bool
公開 清除(布林值 $empty = true): 字串|整數
公開 開啟URI(字串 $uri): 布林值
公開 設定縮排字串(字串 $indentation): 布林值
公開 startAttributeNs(?字串 $prefix, 字串 $name, ?字串 $namespace): 布林值
公開 startDocument(?字串 $version = "1.0", ?字串 $encoding = null, ?字串 $standalone = null): 布林值
公開 startDtd(字串 $qualifiedName, ?字串 $publicId = null, ?字串 $systemId = null): 布林值
公開 startDtdElement(字串 $qualifiedName): 布林值
公開 startDtdEntity(字串 $name, 布林值 $isParam): 布林值
公開 startElementNs(?字串 $prefix, 字串 $name, ?字串 $namespace): 布林值
公開 startPi(字串 $target): 布林值
公開 text(字串 $content): 布林值
公開 靜態 toMemory(): static
公開 靜態 toStream(資源 $stream): static
公開 靜態 toUri(字串 $uri): static
公開 writeAttribute(字串 $name, 字串 $value): 布林值
公開 writeAttributeNs(
    ?字串 $prefix,
    字串 $name,
    ?字串 $namespace,
    字串 $value
): 布林值
公開 writeCdata(字串 $content): 布林值
公開 writeComment(字串 $content): 布林值
公開 writeDtd(
    字串 $name,
    ?字串 $publicId = null,
    ?字串 $systemId = null,
    ?字串 $content = null
): 布林值
公開 writeDtdAttlist(字串 $name, 字串 $content): 布林值
公開 writeDtdElement(字串 $name, 字串 $content): 布林值
公開 writeDtdEntity(
    字串 $name,
    字串 $content,
    布林值 $isParam = false,
    ?字串 $publicId = null,
    ?字串 $systemId = null,
    ?字串 $notationData = null
): 布林值
公開 writeElement(字串 $name, ?字串 $content = null): 布林值
公開 writeElementNs(
    ?字串 $prefix,
    字串 $name,
    ?字串 $namespace,
    ?字串 $content = null
): 布林值
公開 writePi(字串 $target, 字串 $content): 布林值
公開 writeRaw(字串 $content): 布林值
}

目錄

新增註記

使用者貢獻的註記

此頁面沒有使用者貢獻的註記。
To Top