Or its wrapper, XML::XSH2:use strict; use warnings; use feature 'say'; use XML::LibXML; my $xml = XML::LibXML->createDocument(); my $r = $xml->createElement('root'); $xml->setDocumentElement($r); $r->addChild($xml->createTextNode('<&')); say $xml->toString;
create root ; insert text '<&' into /root ; ls . ;
In reply to Re: XML - Escaping characters from database for XML
by choroba
in thread XML - Escaping characters from database for XML
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |