array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'pt_BR', ), 'this' => array ( 0 => 'function.xml-set-notation-decl-handler.php', 1 => 'xml_set_notation_decl_handler', ), 'up' => array ( 0 => 'ref.xml.php', 1 => 'Funções para analisar XML', ), 'prev' => array ( 0 => 'function.xml-set-external-entity-ref-handler.php', 1 => 'xml_set_external_entity_ref_handler', ), 'next' => array ( 0 => 'function.xml-set-object.php', 1 => 'xml_set_object', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/xml/functions/xml-set-notation-decl-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_notation_decl_handler — Set up notation declaration handler
Sets the notation declaration handler function for the XML parser
parser
.
A notation declaration is part of the document's DTD and has the following format:
<!NOTATION <parameter>name</parameter> { <parameter>systemId</parameter> | <parameter>publicId</parameter>?>
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:
$parser
,$notation_name
,$base
,$system_id
,$public_id
parser
notation_name
base
system_id
) of the notation declaration.
system_id
public_id
Sempre retorna true
.