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

Report information
The Basics
Id:
107239
Status:
resolved
Priority:
Low/Low
Queue:

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

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



Subject: Invalid tag name is accepted
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?
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 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.