in reply to Issue in printing content type in XML

Just a wild guess, as I don't speak XML or HTML, but could the typo in $cContent = "applciation/pdf"; have anything to do with it?
s/ciat/icat

Regards,

John Davies

Replies are listed 'Best First'.
Re^2: Issue in printing content type in XML
by denzil_cactus (Sexton) on Sep 13, 2010 at 12:06 UTC
    The issue is "application/pdf" is coming from database so
    this can be any value so is there anything wrong with the
    perl code?

      Most likely what you are reading "from the database" is not what you are handing to ->_tagChar(). Debug your code or post the relevant section of your code or, even better, a self-contained program that is shorter than 20 lines and still has the problem.

      As davies asked, could the problem be with

      $cContent = "applciation/pdf";
                      ///\              ?