<div dir="ltr">Imagine the same service serving xml and json. It&#39;s come in handy to use WSDL validation for both protocols to avoid code duplication. Then if we converting to json structure which came out after XML::Compile deserialization, floats and decimals will be like &quot;3.14&quot;. And then if you will serve this json to the strict languages like i.e. Java you might have problems (depends on host strict is json realization).<div>And if integers are going thru $_[0] += 0, why not doing the same for float types, when sloppy_floats is on?</div><div>I solved my problem via redefining $<span style="color:rgb(0,0,0);font-size:13px">XML::Compile::Schema::</span><span style="color:rgb(0,0,0);font-size:13px">BuiltInTypes::</span><span style="color:rgb(0,0,0);font-size:13px">builtin_types{sloppy_float} right in my controller, but it you will change this realization in future versions of XML::Compile, my code will broke. Yes, I could have a unit test for that, but still.</span></div><div><br></div><div><span style="color:rgb(0,0,0);font-size:13px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 7, 2014 at 3:10 AM, Mark Overmeer <span dir="ltr">&lt;<a href="mailto:mark@overmeer.net" target="_blank">mark@overmeer.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">* hmepas (<a href="mailto:hmepas@gmail.com">hmepas@gmail.com</a>) [141206 21:13]:<br>
<span class="">&gt; I stumbled into annoying problem. When I deserializing my XML, I am getting<br>
&gt; integers as Perl integers, while anything what&#39;s sloppy_floats became<br>
&gt; strings.<br>
<br>
</span>You are correct.  However, can you explain me why this is an annoying<br>
problem for you?  Perl converts strings into floats all the time.<br>
<span class="HOEnZb"><font color="#888888">--<br>
Regards,<br>
<br>
               MarkOv<br>
<br>
------------------------------------------------------------------------<br>
       Mark Overmeer MSc                                MARKOV Solutions<br>
       Mark@Overmeer.net                          <a href="mailto:solutions@overmeer.net">solutions@overmeer.net</a><br>
<a href="http://Mark.Overmeer.net" target="_blank">http://Mark.Overmeer.net</a>                   <a href="http://solutions.overmeer.net" target="_blank">http://solutions.overmeer.net</a><br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div>Pavel S. Khmelinsky &lt;<a href="mailto:hmepas@gmail.com" target="_blank">hmepas@gmail.com</a>&gt;</div><div>Jabber: <a href="mailto:hmepas@gmail.com" target="_blank">hmepas@gmail.com</a></div><div>Skype: hmepas</div></div>
</div>