News:

On Tuesday September 6th the forum will be down for maintenance from 9:30 PM to 11:59 PM PDT

Main Menu

XML bug in call history - & character from Caller ID Name field not escaped

Started by rob613, May 06, 2013, 04:06:53 PM

Previous topic - Next topic

rob613

My colleague Tom kindly provided me with an XML parser for the callhistory.xml file that my Obi110 generates.

I use this local URL within my LAN to get the data
http://obi110/callhistory.xml

A few recent calls have & in the Caller ID Name field which came through the PSTN port and this fails to run through the parser.   I'm told that this is not valid XML, and that valid XML would substitute & in place of the &.

Running sed to fix it in this way gives me a workaround but perhaps there are other XML bugs lurking that should be addressed?

Anyone interested in using their obi in this way may contact me.
We're using http://xmlsoft.org/XSLT/xsltproc.html such as the xsltproc package for ubuntu.

One goal was to be able to produce something like the Obi's callhistory.htm output but for all the calls in history, not just by a chunk at a time.   Another goal was to be able to produce a record with just 1 line per call.

rob613

Obihai - any information about this problem of generating improper XML?