Subject: | standalone attribute dropped from dtd (Version 1.12) |
Date: | Fri, 7 Jul 2017 13:15:38 +0100 |
To: | bug-XML-Tidy [...] rt.cpan.org |
From: | Alex Schuilenburg <alexs [...] ecoscentric.com> |
The standalone attribute is dropped from any dtd. For example, if I
have a test file toc.xml:
<?xml version="1.0" encoding="utf-8"? standalone="yes">
<toc><topic /></toc>
The code
#!/usr/bin/perl
use XML::Tidy;
my $tidy = XML::Tidy->new(filename => 'toc.xml');
$tidy->tidy();
$tidy->write();
produces
<?xml version="1.0" encoding="utf-8"?>
<toc>
<topic />
</toc>
-- Alex