array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'xml.case-folding.php', 1 => '大写转换', ), 'up' => array ( 0 => 'book.xml.php', 1 => 'XML 解析器', ), 'prev' => array ( 0 => 'xml.eventhandlers.php', 1 => '事件处理程序', ), 'next' => array ( 0 => 'xml.error-codes.php', 1 => '错误代码', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'zh', 'path' => 'reference/xml/case-folding.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
元素处理函数可取得元素名称转换为 case-folded(大写字母)形式。定义 Case-folding 为“将非大写字母替换为相对应的大写字母的字符串操作”。换句话说,在 XML 中,case-folding 就是转换为大写。
默认情况下,所有的通过处理函数的元素名都被转换为大写字母。每个 XML 解析器可分别通过 xml_parser_get_option() 与 xml_parser_set_option() 函数来查询与控制此项功能。