Clase SimpleXMLElement

(PHP 5, PHP 7, PHP 8)

Introducción

Representa un elemento en un documento XML.

Sinopsis de la Clase

classSimpleXMLElement {
public__construct(
    string$data,
    int$options = 0,
    bool$dataIsURL = false,
    string$namespaceOrPrefix = "",
    bool$isPrefix = false
)
publicaddAttribute(string$name, string$value = ?, string$namespace = ?): void
publicaddChild(string$name, string$value = ?, string$namespace = ?): SimpleXMLElement
publicasXML(string$filename = ?): mixed
publicattributes(string$ns = null, bool$is_prefix = false): SimpleXMLElement
publicchildren(string$ns = ?, bool$is_prefix = false): SimpleXMLElement
publiccount(): int
publicgetDocNamespaces(bool$recursive = false, bool$from_root = true): array
publicgetName(): string
publicgetNamespaces(bool$recursive = false): array
publichasChildren(): bool
publickey(): string
publicnext(): void
publicrewind(): void
publicvalid(): bool
publicxpath(string$path): array
}

Tabla de contenidos

To Top