XMLWriter 类

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

简介

类概要

class XMLWriter {
/* 方法 */
public endAttribute(): bool
public endCdata(): bool
public endComment(): bool
public endDocument(): bool
public endDtd(): bool
public endDtdEntity(): bool
public endElement(): bool
public endPi(): bool
public flush(bool $empty = true): string|int
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 startElement(string $name): bool
public startElementNs(?string $prefix, string $name, ?string $namespace): bool
public startPi(string $target): bool
public text(string $content): bool
public writeAttribute(string $name, string $value): bool
public writeAttributeNs(
    ?string $prefix,
    string $name,
    ?string $namespace,
    string $value
): 布尔值
public writeCdata(字符串 $content): 布尔值
public writeComment(字符串 $content): 布尔值
public writeDtd(
    string $name,
    ?字符串 $publicId = null,
    ?字符串 $systemId = null,
    ?字符串 $content = null
): 布尔值
public writeDtdAttlist(字符串 $name, 字符串 $content): 布尔值
public writeDtdElement(字符串 $name, 字符串 $content): 布尔值
public writeDtdEntity(
    string $name,
    字符串 $content,
    布尔值 $isParam = false,
    ?字符串 $publicId = null,
    ?字符串 $systemId = null,
    ?字符串 $notationData = null
): 布尔值
public writeElement(字符串 $name, ?字符串 $content = null): 布尔值
public writeElementNs(
    ?string $prefix,
    string $name,
    ?string $namespace,
    ?字符串 $content = null
): 布尔值
public writePi(字符串 $target, 字符串 $content): 布尔值
public writeRaw(字符串 $content): 布尔值
}

目录

添加注释

用户贡献的注释

此页面没有用户贡献的注释。
To Top