<div dir="ltr">Hello fellas.<div><br></div><div>I stumbled into annoying problem. When I deserializing my XML, I am getting integers as Perl integers, while anything what's sloppy_floats became strings. (And yes I have that enabled)</div><div>To patch that i just altered sloppy_float type translation in </div><div>XML::Compile::Schema::BuiltInTypes</div><div>like this</div><div><div>295 $builtin_types{sloppy_float} = </div><div>296 {</div><div>297 parse => sub { $_[0] + 0.0 },</div><div>298 check => sub {</div><div>299 my $v = eval {use warnings FATAL => 'all'; $_[0] + 0.0};</div><div>300 $@ ? undef : 1;</div><div>301 }</div><div>302 , example => '3.1415'</div><div>303 , extends => 'anyAtomicType'</div><div>304 };</div><div><br></div><div>look at 297 line. </div><div><br></div><div>And it's works. Any chance it's getting patched in mainstream?</div><div><br></div>-- <br><div class="gmail_signature"><div>Pavel S. Khmelinsky <<a href="mailto:hmepas@gmail.com" target="_blank">hmepas@gmail.com</a>></div><div>Jabber: <a href="mailto:hmepas@gmail.com" target="_blank">hmepas@gmail.com</a></div><div>Skype: hmepas</div></div>
</div></div>