Skip Menu |

This queue is for tickets about the XML-Compile CPAN distribution.

Report information
The Basics
Id: 40855
Status: resolved
Priority: 0/
Queue: XML-Compile

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.96
Fixed in: (no value)



Subject: xml2yaml -bigfloats
The attached patch adds the bigfloats switch to xml2yaml and default now to use sloppy floats. With this patch gpx2yaml again looks fine. Regards, Slaven
Subject: xml2yaml-bigfloats.diff
--- /usr/local/bin/xml2yaml 2008-10-06 12:54:09.000000000 +0200 +++ xml2yaml 2008-11-12 13:16:58.000000000 +0100 @@ -11,10 +11,11 @@ use XML::Compile::Util qw/type_of_node use Getopt::Long qw/GetOptions :config gnu_compat bundling/; use YAML qw/Dump/; -my ($xml_input, $root_type, @schemas, $bigints, $yaml_out); +my ($xml_input, $root_type, @schemas, $bigints, $bigfloats, $yaml_out); GetOptions "bigints|b!" => \$bigints + , "bigfloats|bf!" => \$bigfloats , "output|o=s" => \$yaml_out , "schema|s=s" => \@schemas , "type|t=s" => \$root_type @@ -52,6 +53,7 @@ my $schema = XML::Compile::Schema->new( my $read = $schema->compile ( READER => $root_type , sloppy_integers => !$bigints + , sloppy_floats => !$bigfloats ); my $data = Dump $read->($top);
Subject: Re: [rt.cpan.org #40855] xml2yaml -bigfloats
Date: Wed, 12 Nov 2008 22:38:00 +0100
To: Slaven_Rezic via RT <bug-XML-Compile [...] rt.cpan.org>
From: Mark Overmeer <solutions [...] overmeer.net>
* Slaven_Rezic via RT (bug-XML-Compile@rt.cpan.org) [081112 12:20]: Show quoted text
> Wed Nov 12 07:19:55 2008: Request 40855 was acted upon. > Transaction: Ticket created by SREZIC > Queue: XML-Compile > Subject: xml2yaml -bigfloats > Requestors: SREZIC@cpan.org > > The attached patch adds the bigfloats switch to xml2yaml and default now > to use sloppy floats. With this patch gpx2yaml again looks fine.
Will be in v0.97, Thanks. -- MarkOv ------------------------------------------------------------------------ drs Mark A.C.J. Overmeer MARKOV Solutions Mark@Overmeer.net solutions@overmeer.net http://Mark.Overmeer.net http://solutions.overmeer.net
0.97 was released some time ago