in reply to XML::Writer entity transformation issue
This prints out...use XML::Writer; use IO::File; $fh = IO::File->new(); open($fh, '>', \$doc); $xml = XML::Writer->new(DATA_MODE => 1, DATA_INDENT => 2, OUTPUT => $f +h); $xml->startTag('root'); $xml->emptyTag('elem', attr => '®'); $xml->endTag('root'); $xml->end; print $doc;
However, what I wanted was...<root> <elem attr="&reg;" /> </root>
Is this possible with XML::Writer?<root> <elem attr="®" /> </root>
|
|---|