I am currently using expat/php to parse an xml document. most of the elements are in CDATAs heres an example of some of my xml element:
<product id="TI322">
<itemName><![CDATA[Laser Pen]]></itemName>
<features>
<feature><![CDATA[Laser Pointer With Pen]]></feature>
<feature><![CDATA[Laser Pointer With Pen Stream-Line Shape]]></feature>
<feature><![CDATA[Dimensions 14x148 MM]]></feature>
<feature><![CDATA[Batteries LR44X2]]></feature>
<feature><![CDATA[Weight 66g]]></feature>
</features>
<price>22.50</price>
</product>
the problem is that SOMETIMES when it parses out, somehow the text gets all scrambled out randomly. assuming a line break is inserted at each end element, the xml is just printed out like...
Lase
r Pen
Laser Pointer With Pen Stream-Line Sh
ape
Dime
ns
i
ons 14x148 MM
...
Usually its doesn't happen this baddly although it has before.
The parser seems to be doing its own thing.
I cannot find any consistancy in the error or any special characters that are present when this occurs, except that when I reword phrases to be shorter, it tends to fix the problem. Any ideas of what might cause this, maybe a config setting or could something be wrong the the server? any help would be much appreciated, I have spent many hours trying to figure this out. thanks.