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

Report information
The Basics
Id:
33632
Status:
rejected
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
disconcertedape [...] googlemail.com
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



Subject: Formfeeds break parsing in XML::Twig 3.13
Date: Wed, 27 Feb 2008 16:39:43 +0000
To: bug-XML-Twig@rt.cpan.org
From: "Adam Bernard" <disconcertedape@googlemail.com>
The presence of a formfeed character, aka "\f", aka chr(12), seems to disrupt parsing in XML::Twig 3.13 . test case: $ perl -MXML::Twig -le'XML::Twig::Elt->parse("<xml></xml>")' #fine $ perl -MXML::Twig -le'XML::Twig::Elt->parse("<xml>\n</xml>")' #fine $ perl -MXML::Twig -le'XML::Twig::Elt->parse("<xml>\r</xml>")' #fine $ perl -MXML::Twig -le'XML::Twig::Elt->parse("<xml>\f</xml>")' #breaks not well-formed (invalid token) at line 1, column 5, byte 5 at /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/XML/Parser.pm line 187 $ perl -v This is perl, v5.8.5 built for x86_64-linux-thread-multi $ uname -a Linux {machine name} 2.6.9-42.ELlargesmp #1 SMP Tue Aug 15 11:42:23 BST 2006 x86_64 x86_64 x86_64 GNU/Linux Adam
Subject: Re: [rt.cpan.org #33632] Formfeeds break parsing in XML::Twig 3.13
Date: Wed, 27 Feb 2008 17:50:40 +0100
To: bug-XML-Twig@rt.cpan.org
From: mirod <xmltwig@gmail.com>
Adam Bernard via RT wrote:
Show quoted text
> Wed Feb 27 11:41:19 2008: Request 33632 was acted upon. > Transaction: Ticket created by disconcertedape@googlemail.com > Queue: XML-Twig > Subject: Formfeeds break parsing in XML::Twig 3.13 > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: disconcertedape@googlemail.com > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=33632 > > > > The presence of a formfeed character, aka "\f", aka chr(12), seems to > disrupt parsing in XML::Twig 3.13 . > > test case: > $ perl -MXML::Twig -le'XML::Twig::Elt->parse("<xml></xml>")' #fine > $ perl -MXML::Twig -le'XML::Twig::Elt->parse("<xml>\n</xml>")' #fine > $ perl -MXML::Twig -le'XML::Twig::Elt->parse("<xml>\r</xml>")' #fine > $ perl -MXML::Twig -le'XML::Twig::Elt->parse("<xml>\f</xml>")' #breaks > not well-formed (invalid token) at line 1, column 5, byte 5 at > /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/XML/Parser.pm > line 187 > > $ perl -v > This is perl, v5.8.5 built for x86_64-linux-thread-multi > $ uname -a > Linux {machine name} 2.6.9-42.ELlargesmp #1 SMP Tue Aug 15 11:42:23 > BST 2006 x86_64 x86_64 x86_64 GNU/Linux
This is not an XML::Twig problem. The parser (expat) complains because form feed is not a valid character in XML (see the spec, for example at http://www.xml.com/axml/target.html#dt-character : #xC is not part of the character range). -- mirod


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

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