Hi,
Presence of Hyphen character with Whitespcaes around is making my XML file -not well formed.I get XML not displayed in IE and FF.
if i have " bandwidth - 1.5mpbs" in my data.
I tried to strip the Whitespace using
- str_replace(" - ","-",$parameter)
- also str_replace with <nobr><nobr>
str_replace(" - ","<nobr>-<nobr>",$parameter)
when i echo the changed parameters,it shows the whitespaces around hyphen removed but when i generate xml, again its same and some weird -nonprintable character replaces '-' hyphen.
Firefox shows '?' kind and Textpad shows 'thick solid bar'
Anywhere else in data , if no Whitespace around hyphen works very fine.
So i guess WS is root-cause.
Anyway to strip Ws around hypen.???