xml_get_current_byte_index

(PHP 3 >= 3.0.6, PHP 4, PHP 5)

xml_get_current_byte_index -- 获取 XML 解析器的当前字节索引

说明

int xml_get_current_byte_index ( resource parser )

获取指定的 XML 解析器的当前字节索引(current byte index)。

参数

parser

一个指向要取得字节索引的 XML 解析器的引用。

返回值

如果 parser 没有指向一个合法的解析器,该函数将返回 FALSE,否则将返回解析器当前在其数据缓冲区中的字节索引(起始值为 0)。

参见

xml_get_current_column_index()
xml_get_current_line_index()


add a note add a note User Contributed Notes
turan dot yuksel at tcmb dot gov dot tr
20-Sep-2005 06:38
The outcome of this function is heavily dependent on the parser implementation used. For example, at the point where the start_element_ callback is called, libxml2 parser consumes the entire element name and attributes, however expat does not.