ID:               35031
 Updated by:       [EMAIL PROTECTED]
 Reported By:      robert dot bouwens at swissmains dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         *XML functions
 Operating System: windows xc sp2
 PHP Version:      5.0.5
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

An XML parser is allowed to breakup character data like this, this is
therefore not a bug. Your application needs to deal with this. The same
would happen incase you have an entity there. If you still believe it is
a bug, you need to talk to the libxml2 authors, as it's their library
which does this behavior. 


Previous Comments:
------------------------------------------------------------------------

[2005-10-31 10:24:39] robert dot bouwens at swissmains dot com

Description:
------------
<NAME>Höchstgeschwindigkeit</NAME> 
The upper tag will not be corectly handled when using the
xml_set_character_data_handler. The document is correctly formatted
using utf-8 coding standards.
The elementhandler for the upper tag will be called twice:
1st: "H"
2nd: "öchstgeschwindigkeit" which is a pain when creating html tables.

Reproduce code:
---------------
xml_set_character_data_handler( $parser, "daten" );

function daten( $parser, $xml_data )
{  
// Datenbereich ausgeben
if ( $this->valid_list_item == true )
{
$sdata = utf8_decode( $xml_data );
$this->data[$this->cv][] = utf8_decode( $sdata );
print ( $sdata );
print ( "|" );
}
}


Expected result:
----------------
The tag character handler does not recognize extended cahractersets.
The tag character handler for the tag "NAME" should only be called
once.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=35031&edit=1

Reply via email to