Skip Menu |
 

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

Report information
The Basics
Id: 61167
Status: rejected
Priority: 0/
Queue: XML-Twig

People
Owner: Nobody in particular
Requestors: Jurgen [...] medio.be
Cc:
AdminCc:

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



Subject: xml_split -g and -s don't return text nodes
Date: Wed, 8 Sep 2010 12:18:59 +0200
To: <bug-XML-Twig [...] rt.cpan.org>
From: "MedioEurope - Azur.be | Jurgen Pletinckx" <Jurgen [...] medio.be>
Download (untitled) / with headers
text/plain 915b
When running xml_split -g or -s, all text nodes are stripped from the output. Test case: * Input test.xml <?xml version="1.0" encoding="UTF-8"?><collection> <record> <control tag="1">14</control> </record> <record> <control tag="1">15</control> </record> <record> <control tag="1">22</control> </record> </collection> * command: xml_split -g 2 test.xml * output test-01.xml <?xml version="1.0" encoding="UTF-8"?> <xml_split:root xmlns:xml_split="http://xmltwig.com/xml_split"> <record><control tag="1"></control></record><record><control tag="1"></control></record> </xml_split:root> At first glance, it appears XML::Parser::original_string does not return anything for text nodes. Or, Default handler doesn't get called for text nodes. Or I'm wrong. I may try to patch, but reading XML::Parser code (or even client code) tends to make my eyes bleed. Cheers, -- Jurgen Pletinckx
Download (untitled) / with headers
text/plain 1.4k
What versions of perl, XML::Twig and XML::Parser are you using? I don't see the bug on my machine t/zz_dump_config.t output: perl: 5.010001 OS: linux - x86_64-linux XML::Parser : 2.36 (required) expat : 2.0.1 (required) Scalar::Util : 1.21 (for improved memory management) Encode : 2.35 (for encoding conversions) LWP : 5.834 (for the parseurl method) HTML::Entities : 3.64 (for the html_encode filter) Tie::IxHash : 1.21 (for the keep_atts_order option) XML::XPathEngine : 0.12 (to use XML::Twig::XPath) XML::XPath : 1.13 (to use XML::Twig::XPath if Tree::XPathEngine not available) HTML::TreeBuilder : 3.23 (to use parse_html and parsefile_html) Text::Wrap : 2009.0305 (to use the "wrapped" option for pretty_print) Test : 1.25_02 (for testing purposes) Test::Pod : 1.41 (for testing purposes) XML::Simple : 2.18 (for testing purposes) XML::Handler::YAWriter : 0.23 (for testing purposes) XML::SAX::Writer : 0.52 (for testing purposes) XML::Filter::BufferText : 1.01 (for testing purposes) IO::Scalar : 2.110 (for testing purposes) __ mirod
Subject: RE: [rt.cpan.org #61167] xml_split -g and -s don't return text nodes
Date: Thu, 9 Sep 2010 16:23:24 +0200
To: <bug-XML-Twig [...] rt.cpan.org>
From: "MedioEurope - Azur.be | Jurgen Pletinckx" <Jurgen [...] medio.be>
Download (untitled) / with headers
text/plain 3.5k
Ah. Configuration: perl: 5.010000 OS: linux - x86_64-linux XML::Parser : 2.36 (required) expat : <no version information found> Scalar::Util : 1.21 (for improved memory management) Encode : 2.23 (for encoding conversions) LWP : 5.831 (for the parseurl method) HTML::Entities : 3.57 (for the html_encode filter) Tie::IxHash : 1.21 (for the keep_atts_order option) XML::XPathEngine : <not available> (to use XML::Twig::XPath) XML::XPath : 1.13 (to use XML::Twig::XPath if Tree::XPathEngine not available) HTML::TreeBuilder : 3.23 (to use parse_html and parsefile_html) Text::Wrap : 2006.1117 (to use the "wrapped" option for pretty_print) Test : 1.25 (for testing purposes) Test::Pod : <not available> (for testing purposes) XML::Simple : <not available> (for testing purposes) XML::Handler::YAWriter : <not available> (for testing purposes) XML::SAX::Writer : <not available> (for testing purposes) XML::Filter::BufferText : <not available> (for testing purposes) IO::Scalar : 2.110 (for testing purposes) That unversioned expat looks somewhat suspicious, doesn't it? I seem to have expat.so.1 which links to libexpat.so.1.5.2. On the other hand, apt thinks I have version 2.0.1-4 installed. Does any of this shed a light? -- Jurgen Pletinckx | -----Original Message----- | From: MIROD via RT [mailto:bug-XML-Twig@rt.cpan.org] | Sent: donderdag 9 september 2010 15:26 | To: MedioEurope - Azur.be | Jurgen Pletinckx | Subject: [rt.cpan.org #61167] xml_split -g and -s don't return text nodes | | <URL: https://rt.cpan.org/Ticket/Display.html?id=61167 > | | What versions of perl, XML::Twig and XML::Parser are you using? I don't | see the bug on my machine | | t/zz_dump_config.t output: | | perl: 5.010001 | OS: linux - x86_64-linux | XML::Parser : 2.36 (required) | expat : 2.0.1 (required) | Scalar::Util : 1.21 (for improved memory | management) | Encode : 2.35 (for encoding conversions) | LWP : 5.834 (for the parseurl method) | HTML::Entities : 3.64 (for the html_encode filter) | Tie::IxHash : 1.21 (for the keep_atts_order | option) | XML::XPathEngine : 0.12 (to use XML::Twig::XPath) | XML::XPath : 1.13 (to use XML::Twig::XPath if | Tree::XPathEngine not available) | HTML::TreeBuilder : 3.23 (to use parse_html and | parsefile_html) | Text::Wrap : 2009.0305 (to use the "wrapped" option | for pretty_print) | Test : 1.25_02 (for testing purposes) | Test::Pod : 1.41 (for testing purposes) | XML::Simple : 2.18 (for testing purposes) | XML::Handler::YAWriter : 0.23 (for testing purposes) | XML::SAX::Writer : 0.52 (for testing purposes) | XML::Filter::BufferText : 1.01 (for testing purposes) | IO::Scalar : 2.110 (for testing purposes) | | __ | mirod | | No virus found in this incoming message. | Checked by AVG - www.avg.com | Version: 9.0.851 / Virus Database: 271.1.1/3115 - Release Date: 09/06/10 | 08:35:00
Subject: Re: [rt.cpan.org #61167] xml_split -g and -s don't return text nodes
Date: Thu, 9 Sep 2010 16:47:57 +0200
To: bug-XML-Twig [...] rt.cpan.org
From: Michel Rodriguez <xmltwig [...] gmail.com>
Download (untitled) / with headers
text/plain 808b
On Thu, Sep 9, 2010 at 4:23 PM, MedioEurope - Azur.be | Jurgen Pletinckx via RT <bug-XML-Twig@rt.cpan.org> wrote: Show quoted text
>       Queue: XML-Twig >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=61167 > >
Show quoted text
> Configuration: > perl: 5.010000 > OS: linux - x86_64-linux > XML::Parser              :             2.36 (required) > expat                    : <no version information found>
Show quoted text
> That unversioned expat looks somewhat suspicious, doesn't it? > I seem to have expat.so.1 which links to libexpat.so.1.5.2. > On the other hand, apt thinks I have version 2.0.1-4 installed. > > Does any of this shed a light?
Could it be that you are using a very old expat because that's the development package you have installed? Maybe installing libexpat-dev would fix things? -- mirod


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.