[libxml++] problem with SAX_parser on_character fonction



Hi,

Is it normal that sometimes, for the same Element, the on_character
function is called 2 times?
Can i force the parser to call it explicitly one time?

here is my example:
<Vertices>
0.4520942e-01 0.4817451e-01 0.6783868e-01 0.5085975e-01 0.2164471e-01
0.9257241e-01 0.4046732e-01 0.1100695e-01 0.6399040e-01 0.3133999e-01
0.4832361e-01 0.7099523e-01 0.3604524e-01 0.3439208e-01 0.5807805e-01
0.5294021e-01 0.1207079e-01 0.8131917e-01 0.2920624e-01 0.3555536e-01
0.7677209e-01 0.4149553e-01 0.4934437e-01 0.6682675e-01 0.5279884e-01
0.3759574e-01 0.7619313e-01 0.4712154e-01 0.1050351e-01 0.7192019e-01
0.4427849e-01 0.2089362e-01 0.8175253e-01 0.3187400e-01 0.3766751e-01
0.6053719e-01 0.5544884e-01 0.2190038e-01 0.8695550e-01 0.5280745e-01
0.1236461e-01 0.8171037e-01 0.4865450e-01 0.3311216e-01 0.6721804e-01
0.3998979e-01 0.1614658e-01 0.5746185e-01 </Vertices>

and the first time i got  this: 
0.4520942e-01 0.4817451e-01 0.6783868e-01 0.5085975e-01 0.2164471e-01
0.9257241e-01 0.4046732e-01 0.1100695e-01 0.6399040e-01 0.3133999e-01
0.4832361e-01 0.7099523e-01 0.3604524e-01 0.3439208e-01 0.5807805e-01
0.5294021e-01 0.1207079e-01 0.8131917e-01 0.2920624e-01 0.3555536e-01
0.7677209e-01 0.4149553e-01 0.4934437e-01 0.6682675e-01 0.5279884e-01
0.3759574e-01 0.7619313e-01 0.4712154e-01 0.1050351e-01 0.7192019e-01
0.4427849e-01 0.2089362e-01 0.8175253e-01 0.3187400e-01 0.3766751e-01
0.60537

and after 
19e-01 0.5544884e-01 0.2190038e-01 0.8695550e-01 0.5280745e-01
0.1236461e-01 0.8171037e-01 0.4865450e-01 0.3311216e-01 0.6721804e-01
0.3998979e-01 0.1614658e-01 0.5746185e-01 

Of course i have a big xml file with this code on, and 80% of the time
it's allright ...

Thank you 
Xavier 






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]