PDA

View Full Version : unable to decode xml rows with < character


autokad
04-28-2009, 02:58 PM
Has anyone had this problem? I am reading rows from a database and ecoding them into xml in an asp page then sending them to flex. the problem with flex is that it cant decifer a row if it has a less than '<' characther in it. Is there a simple solution to this?

drkstr
04-28-2009, 03:20 PM
It's an encoding issue. Try using replacing any '<' With a "&lt;" and see if that solves the problem. Also, make sure your are converting any XML objects to a String when referining the data in a DataGrid or any where else.


Best Regards,
~Aaron

autokad
04-28-2009, 03:34 PM
That did the trick. I edited the sql statement to something like this:
replace(myfield,'<','&lt;')
and in the datagrid it gets outputed as the correct < value
=)