xml_set_notation_decl_handler设置符号声明处理程序
&reftitle.description;
truexml_set_notation_decl_handlerXMLParserparsercallablestringnullhandler
为 XML 解析器 parser 设置符号声明处理函数。
符号声明是文档 DTD 的一部分,并有如下格式:
name
{ systemId | publicId?>
]]>
有关符号声明的定义,请参考 XML 1.0 规范的第 4.7 节。
&reftitle.parameters;
&xml.parser.param;
handler
&xml.handler.description;
处理程序的签名必须是:
voidhandlerXMLParserparserstringnotation_namestringfalsebasestringsystem_idstringfalsepublic_id
&xml.handler.parser.param;
notation_name
This is the notation's name, as per the notation format described above.
base
这个参数是解析符号声明的系统标识符(system_id)的基础。
system_id
外部符号声明的系统标识符。
public_id
外部符号声明的公共标识符。
&reftitle.returnvalues;
&return.true.always;
&reftitle.changelog;
&Version;&Description;
&xml.changelog.handler-param;
&xml.changelog.parser-param;