Skip Menu |

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

Report information
The Basics
Id: 20508
Status: open
Worked: 10 min
Priority: 0/
Queue: XML-DOM-Lite

People
Owner: RHUNDT [...] cpan.org
Requestors: eric.laperriere [...] geoconcept.com
Cc:
AdminCc:

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



Subject: xml method bug
Date: Mon, 17 Jul 2006 12:13:58 +0200
To: bug-XML-DOM-Lite [...] rt.cpan.org
From: Eric LAPERRIERE <eric.laperriere [...] geoconcept.com>
Hello, I found a bug in the xml textual representation produced by the xml method : when it shows a single empty tag like '<namespace:tag/>', it is printed in '<namespace:tag/ />' Moreover, I wonder why it displays a carriage return before text nodes ... I'm currently using ** ** perl v5.8.8 built for MSWin32-x86-multi-thread. Binary build 817 [257965] provided by ActiveState http://www.ActiveState.com Built Mar 20 2006 17:54:25 Hope this will help, Regards, Eric Show quoted text
___________________________________________________________________________ Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire. http://fr.mail.yahoo.com
Subject: [rt.cpan.org #20508]
Date: Fri, 28 Jul 2006 08:22:41 +0200
To: bug-XML-DOM-Lite [...] rt.cpan.org
From: Eric LAPERRIERE <eric.laperriere [...] geoconcept.com>
Dear all, thanks for your attention, I use version 0.10, and you can reproduce the bug with the following script : #!/usr/bin/perl use strict; use warnings; use XML::DOM::Lite qw(Parser :constants); my $xml=<<XML; <?xml version="1.0" encoding="UTF-8"?> <Request> <Directory/> <File>Hello this is some text</File> </Request> XML my $parser = Parser->new('normalize'); my $doc = Parser->parse($xml); print $doc->xml; __END__ For me, it produces : <Request> <Directory/ /> <File> Hello this is some text </File> </Request> Best regards Eric Show quoted text
> ------------------------------------------------------------------------- > Hello, > > I found a bug in the xml textual representation produced by the xml > method : when it shows a single empty tag like '<namespace:tag/>', it is > printed in '<namespace:tag/ />' > > Moreover, I wonder why it displays a carriage return before text nodes ... > > I'm currently using ** ** perl v5.8.8 built for MSWin32-x86-multi-thread. > > Binary build 817 [257965] provided by ActiveState http://www.ActiveState.com > Built Mar 20 2006 17:54:25 > > Hope this will help, > > Regards, > > Eric >
Show quoted text
___________________________________________________________________________ D�couvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/R�ponses pour partager vos connaissances, vos opinions et vos exp�riences. http://fr.answers.yahoo.com
From: RHUNDT [...] cpan.org
Hi Eric, I've made a new release which should fix the issue with empty tags. regards, Richard P.S. soz about the delay On Mon Jul 17 06:21:41 2006, eric.laperriere@geoconcept.com wrote: Show quoted text
> Hello, > > I found a bug in the xml textual representation produced by the xml > method : when it shows a single empty tag like '<namespace:tag/>', it > is > printed in '<namespace:tag/ />' > > Moreover, I wonder why it displays a carriage return before text nodes > ... > > I'm currently using ** ** perl v5.8.8 built for MSWin32-x86-multi- > thread. > > Binary build 817 [257965] provided by ActiveState > http://www.ActiveState.com > Built Mar 20 2006 17:54:25 > > Hope this will help, > > Regards, > > Eric > > > > > >
Show quoted text
___________________________________________________________________________
> Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et > son interface révolutionnaire. > http://fr.mail.yahoo.com
Empty tags of the form <tag /> where being parsed correctly however where there is no space before the `/', as in <tag/>, the `/' became part of the nodes name. This should be working now.
Subject: Re: [rt.cpan.org #20508] Resolved: xml method bug
Date: Wed, 23 Aug 2006 11:40:11 +0200
To: bug-XML-DOM-Lite [...] rt.cpan.org
From: Eric LAPERRIERE <eric.laperriere [...] geoconcept.com>
via RT a écrit : Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=20508 > > > According to our records, your request has been resolved. If you have any > further questions or concerns, please respond to this message. > >
Thank you for your support, but it seems your correction is not complete ; I mean now it doesn't produce a two '/' at the end of an empty tag, but it remains a space was added : ie : <myTag/> would appear like <myTag /> There's still the problem with the carriage return inserted before the text node , ie : <File>Hello this is some text</File> appears like <File> Hello this is some text </File> Best regards, Eric p5.vert.ukl.yahoo.com uncompressed Wed Aug 23 09:27:02 GMT 2006 Show quoted text
___________________________________________________________________________ D�couvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/R�ponses pour partager vos connaissances, vos opinions et vos exp�riences. http://fr.answers.yahoo.com