mercredi 16 avril 2014

How to make my reader in store format tolerant

Dear all,

I have a xml formated data source however, the format of Data source is not a well formated xml, so store reader throws an exception:

"Uncaught SyntaxError: Unexpected token < "


I do not have access to modify the format of data source, so how could I handle this issue?


In addition, I'd like to know what and how many types of readers does SenCha Touch have?


By the way, here is the data source, as you can see that some of the nodes do not have a closing tag.(I guess that causes the problem)



HTML Code:



<config generated_at="2014-04-16 16:39:12"><acModes>A,D,O</acModes><acModeNames A="Arrival" D="Departure" O="All"/><acShapes B="ac-clone" C="ac-clone" Default="ud-clone" G="tp-clone" H="he-clone" J="ac-clone" M="ud-clone" P="tp-clone" R="ac-clone" T="tp-clone" U="ud-clone" Z="ud-clone"/><acColours><Unknown number="0"><A fill="0xffcc00" stroke="0x008000" stroke-width="1"/><D fill="0xffcc00" stroke="0x008000" stroke-width="1"/><O fill="0xffcc00" stroke="0x990066" stroke-width="1"/></Unknown><MEL number="1"><A fill="0xd10000" stroke="0xf40000" stroke-width="1"/><D fill="0x33" stroke="0xcc" stroke-width="1"/><O fill="0xffcc00" stroke="0x008000" stroke-width="1"/></MEL></acColours><trColours><Unknown number="0"><A fill="none" stroke="0xffcc00" stroke-opacity="0.7" stroke-width="150"/><D fill="none" stroke="0xffcc00" stroke-opacity="0.7" stroke-width="150"/><O fill="none" stroke="0x990066" stroke-opacity="0.7" stroke-width="150"/></Unknown>
......................

Thank you!!!


Aucun commentaire:

Enregistrer un commentaire