Alois Heuboeck wrote:
I'm trying to feed text into an existing XML tree - the problem I'm
encountering is that the text may contain entity references (including
the 'forbidden' '&'), in which case the & is escaped by '&'. I'm
using the module XML::DOM for this.
<snip>
my $titleText = "Die Brücke.";
<snip>
$title->addText($titleText);
print "$titleText\n"; # for testing: Die Brücke.
print $title->toString(); # for testing: <title>Die
Br&uuml;cke.</title>
What if you simply say:
my $titleText = 'Die Brücke.';
I can't help thinking of my latest message to this list:
http://www.mail-archive.com/beginners%40perl.org/msg91979.html
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/