[Simple-support] problem with apostrophe
Brought to you by:
niallg
|
From: Billy B. <bil...@gm...> - 2012-03-09 18:15:43
|
I am using Simple with CRest on Android. Are there any known issues with apostrophes while deserializing an xml stream. I am getting this error message, but I think it is a red herring. Caused by: org.simpleframework.xml.core.ElementException: Element 'po' does not have a match in class fastball.view.AtBat. There is no element named 'po' in the xml document. This only seems to happen when there is an apostrophe in the document. For example, this inning deserializes fine. http://gd2.mlb.com/components/game/mlb/year_2011/month_10/day_24/gid_2011_10_24_slnmlb_texmlb_1/inning/inning_1.xml But inning 2 does not. The only difference I can find is the presence of an apostrophe. http://gd2.mlb.com/components/game/mlb/year_2011/month_10/day_24/gid_2011_10_24_slnmlb_texmlb_1/inning/inning_2.xml It has this apostrophe: cc="C.J. Wilson got Skip Schumaker to chase a curveball that he doesn't like to hit." mt=""/> I don't control this XML and would like to avoid having to clean it up. Is there any way around this issue? Thanks. -- Wayne D. Young aka Billy Bob Bain bil...@gm... |