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.
xml_get_current_byte_index
(PHP 4, PHP 5)
xml_get_current_byte_index — Obtém o índice do byte atual para um analisador XML
Descrição
int xml_get_current_byte_index
( resource
$parser
)Obtém o atual índice do byte de um dado analisador XML.
Parâmetros
-
parser -
Uma referência ao analisador XML para conseguir o índice do byte.
Valor Retornado
Esta função retorna FALSE Se parser não se refere
a um analisador válido, senão ele retorna qual o índice do byte o analisador
está atualmente em seu registro de dados (buffer data) (começando do 0).
Notas
Aviso
Esta função retorna índice do byte de acordo com o texto UTF-8 codificado desconsiderando se a entrada está em outra codificação.
Veja Também
- xml_get_current_column_index()
- xml_get_current_line_index()
turan dot yuksel at tcmb dot gov dot tr ¶
7 years ago
