Broken XML if it contains xml special char

My trading system contains an "&" in the name and when the XML is returned with the name, the xml is broken because of that. Can they all be xml encoded like S&P become S& amp;P (the space between & and amp; is just to make it to be able to show up here) in the xml returned from the api?

<systemname>Emini S&P Trader</systemname>

return as:

<systemname>Emini S& amp;P Trader</systemname>


Evan -

Just to confirm, which API command are you using which returns this broken XML?


It is the "signalstatus" api. The problem happens for the <systemname/> element.