in reply to issue using use XML::DOM parser

I have a feeling that XML::DOM is doing the right thing. The string & is an encoding of the character &.

If you want to print encoded output, use the encode_entities() routine from HTML::Entities or a module that writes XML like XML::Writer.

Replies are listed 'Best First'.
Re^2: issue using use XML::DOM parser
by ikegami (Patriarch) on Jun 25, 2008 at 00:16 UTC
    HTML::Entities encode_entities is not appropriate for XML, but encode_entities_numeric is.