PHP 8.3.4 Released!

xml_set_end_namespace_decl_handler

(PHP 4 >= 4.0.5, PHP 5, PHP 7, PHP 8)

xml_set_end_namespace_decl_handlerSet up end namespace declaration handler

Descrição

xml_set_end_namespace_decl_handler(XMLParser $parser, callable $handler): true

Set a handler to be called when leaving the scope of a namespace declaration. This will be called, for each namespace declaration, after the handler for the end tag of the element in which the namespace was declared.

Cuidado

This event is not supported under libXML, so a registered handler wouldn't be called.

Parâmetros

parser

O analisador XML.

handler

Se null ou uma string vazia for passada, o manipulador será redefinido para seu estado padrão.

Se handler for um callable, o callable será definido como o manipulador.

Se handler for uma string, ela pode ser o nome de um método de um objet definido com xml_set_object().

The signature of the handler must be:

handler(XMLParser $parser, string|false $prefix)
parser
O analisador XML que chama o manipulador.
prefix
The prefix is a string used to reference the namespace within an XML object. false if no prefix exists.

Valor Retornado

Sempre retorna true.

Registro de Alterações

Versão Descrição
8.0.0 O parâmetro parser agora espera uma instância de XMLParser; anteriormente, um resource xml válido era esperado.

Veja Também

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top