Skip Menu |

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

Report information
The Basics
Id: 133875
Status: new
Priority: 0/
Queue: XML-Hash-LX

People
Owner: Nobody in particular
Requestors: kamil.vratny [...] i16.cz
Cc:
AdminCc:

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



Subject: possible bug in XML::Hash::LX
Date: Mon, 7 Dec 2020 17:57:41 +0100
To: bug-XML-Hash-LX [...] rt.cpan.org
From: Kamil Vrátný <kamil.vratny [...] i16.cz>
Hi, I think I found an issue with hash2xml in XML::Hash::LX. I apologize if I missed some flag but I went through docs and found nothing to deal with the issue. use strict; use feature qw/say/; use XML::Hash::LX; use Data::Dumper; my $xml = ' <reply> <contents>Text note</contents> <attachment filename="cressy.txt">victory</attachment> <attachment filename="hastings.txt">defeat</attachment> <attachment filename="trafalgar.txt">draw</attachment> </reply> '; my $data = xml2hash($xml); $xml = hash2xml($data); say $xml; --- Output of this code is: <?xml version="1.0" encoding="utf-8"?> <reply><contents>Text note</contents><attachment filename="trafalgar.txt">victorydefeatdraw</attachment></reply> --- XML::Hash::LX 0.07 perl v5.28.1 linux 4.19.0-13-amd64 debian 10 amd64 Best regards, Kamil Vrátný