<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Typically we use _ for variables and - for params in config. - is still valid in json, you just need to reference it differently. Why would you do anything to modify them?<br>
<br>On Sep 11, 2012, at 12:30 PM, Seven Du <<a href="mailto:dujinfang@gmail.com">dujinfang@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div>
<div>
Hi,
</div><div><br></div><div>in conference xml_list some tags has "_" but some use "-"</div><div><br></div><div>"_" works well but "-" causing problems e.g. when convert to json it's ok to use conference.last_talking but to get the input-volume value it has to be conference["input-volume"], and in some other cased there's no such work around and I have to go through all tags and replace "-"s to "_"s.</div>
<div><br></div><div>I understand "-" in xml is totally valid but would it be better to keep it consistent ? </div><div><br></div><div><pre style="font-family:Monaco,monospace;border-width:1px 0px 1px 1px;border-style:dotted;border-color:rgb(204,204,204);padding:0.4em 0.4em 0.4em 0.8em;font-size:17px;text-align:justify;background-color:rgb(250,250,253)">
<code> <last_talking>0</last_talking>
<energy>300</energy>
<volume_in>0</volume_in>
<volume_out>0</volume_out>
<output-volume>0</output-volume>
<input-volume>0</input-volume>
<auto-adjusted-input-volume>0</auto-adjusted-input-volume></code></pre><pre style="font-family:Monaco,monospace;border-width:1px 0px 1px 1px;border-style:dotted;border-color:rgb(204,204,204);padding:0.4em 0.4em 0.4em 0.8em;font-size:17px;text-align:justify;background-color:rgb(250,250,253)">
<code><br></code></pre></div>
<div><div><br></div><div>Thanks.</div><div><br></div><div>-- </div><div>Seven Du</div><div>Sent with <a href="http://www.sparrowmailapp.com/?sig">Sparrow</a></div><div><br></div></div>
</div></blockquote><blockquote type="cite"><div><span>_________________________________________________________________________</span><br><span>Professional FreeSWITCH Consulting Services:</span><br><span><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></span><br>
<span><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></span><br><span></span><br><span>FreeSWITCH-powered IP PBX: The CudaTel Communication Server</span><br><span><a href="http://www.cudatel.com">http://www.cudatel.com</a></span><br>
<span></span><br><span>Official FreeSWITCH Sites</span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br><span><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></span><br>
<span><a href="http://www.cluecon.com">http://www.cluecon.com</a></span><br><span></span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></span><br>
<span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:http://<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br>
<span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br></div></blockquote></body></html>