note 30444 added to function.xml-get-current-byte-index
| From: | Fabio at rack1 dot php dot net | Date: | Tue, 18 Mar 2003 15:30:47 +0000 |
| Subject: | note 30444 added to function.xml-get-current-byte-index | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-45464@lists.php.net to get a copy of this message | ||
Quoting from expat library documentation: "The position reported is the byte position (in the
original document or entity encoding) of the first of the sequence of characters that generated the
current event (or the error that caused the parse function to return XML_STATUS_ERROR".
So if you call xml_get_current_byte_index within a start handler, you get the offset of the start of
an element. I don't know how to get the offset of, say, an attribute.
--
http://www.php.net/manual/en/function.xml-get-current-byte-index.php
http://master.php.net/manage/user-notes.php?action=edit+30444
http://master.php.net/manage/user-notes.php?action=delete+30444
http://master.php.net/manage/user-notes.php?action=reject+30444