Hi everybody,
I am implementing some http calls using the WWW class in Unity Pro 2.5 (C#)
These calls return XML data that later on I am parsing (as usual)
However I finding that the parsing code is failing because the XML returned (WWW.deata) shows that critical characters are changed:
< turns into <
turns into >
Any clues on what’s going on? or how to address the problem?. thank you!!
Best
Balder
The WWW class should not do such processing - however, your web server might, because < and > are the proper escapes to display < and > in html. See your web server manual about this, or try renaming the xml file (especially if it ends in html), or test hosting it on a different server.
Hi Jonas, thanx a lot for the answer,
It seems that the source XML it is written using those escape expressions in the server.
However the browser renders that xml data applying a decoding layer that turns those expressions into the proper symbols.
As you mentioned… WWW calls should not do that… and in fact they don’t!
so… I just added my own decoding rules in the parsing code… and so far so good!!!
Thanx again for the attention!
Best
Balder