(PHP 4, PHP 5, PHP 7, PHP 8)
xml_set_element_handler — Set up start and end element handlers
Sets the element handler functions for the XML parser
.
start_handler
is called when a new XML element is
opened. end_handler
is called when an XML element
is closed.
parser
O analisador XML.
start_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:
parser
name
attributes
attributes
is traversed
is identical to the order in which the attributes were declared.
end_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:
parser
name
Sempre retorna true
.