array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'pt_BR', ), 'this' => array ( 0 => 'function.xml-set-element-handler.php', 1 => 'xml_set_element_handler', ), 'up' => array ( 0 => 'ref.xml.php', 1 => 'Funções para analisar XML', ), 'prev' => array ( 0 => 'function.xml-set-default-handler.php', 1 => 'xml_set_default_handler', ), 'next' => array ( 0 => 'function.xml-set-end-namespace-decl-handler.php', 1 => 'xml_set_end_namespace_decl_handler', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/xml/functions/xml-set-element-handler.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(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
.