You asked this already at
Problem with CGI::Pretty. Asking the same question in a different section an hour and a half later won't get you different answers.
If you don't understand the answers to your previous question, you should reply to the authors of those nodes for more clarity.
As they said, you are trying to produce XML with a module that does not support XML. Your program output is XML with the namespace of 'text'. If you truly want this output then you must look for an XML module within the XML::* namespace.
HTH
SP