sam 发表于 2007-12-26 16:46:35

翻译后的xml辅助函数

XML HelperThe XML Helper file contains functions that assist in working with XML data.
xml辅助函数可以帮助你操作xml数据
Loading this HelperThis helper is loaded using the following code:
你需要用下面的方法加载xml辅助函数
$this->load->helper('xml');
The following functions are available:
然后你可以使用下面的函数
xml_convert('string')Takes a string as input and converts the following reserved XML characters to entities:
给这个函数一个字符串参数,转成实体数据的时候它会保留一些xml的特殊字符
如下:
Ampersands: &      符号名称:=and
Less then and greater than characters: < >       小于号和大于号
Single and double quotes: '"   单引号和双引号
Dashes: -   短横线
This function ignores ampersands if they are part of existing character entities. Example:
如果部分存在这些特殊符号,此函数则会忽略掉这些符号。比如:
$string = xml_convert($string);

Hex 发表于 2007-12-26 17:00:40

强帖留名。。。。。
感谢翻译!
页: [1]
查看完整版本: 翻译后的xml辅助函数