Skip Menu |
 

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

Report information
The Basics
Id: 107239
Status: resolved
Priority: 0/
Queue: XML-Writer

People
Owner: joe [...] kafsemo.org
Requestors: SZABGAB [...] cpan.org
Cc:
AdminCc:

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



Subject: Invalid tag name is accepted
Download (untitled) / with headers
text/plain 457b
While experimenting, I used the following script: use strict; use warnings; use XML::Writer; my $writer = XML::Writer->new(OUTPUT => 'self', DATA_MODE => 1, DATA_INDENT => 2, ); $writer->xmlDecl('UTF-8'); $writer->startTag('te<xt'); $writer->endTag(); my $xml = $writer->end(); print $xml; It generated the XML without any complain: <?xml version="1.0" encoding="UTF-8"?> <te<xt></te<xt> Would it make sense to add error checking for element names?
Download (untitled) / with headers
text/plain 170b
On Tue Sep 22 08:18:39 2015, SZABGAB wrote: Show quoted text
> > Would it make sense to add error checking for element names?
Sure would; fixed in master to check for valid XML names.


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.