The problem is not with the XML header. (Apache doesn't care about what you are sending.) The problem is the non-adherence to the CGI specification, which requires a CGI header to be sent to STDOUT along with the body of the message to send to the HTTP client. Adding the following to your script will solve the problem:
use CGI; print CGI->header('text/xml');
In reply to Re: XML::Generator bad header?
by ikegami
in thread XML::Generator bad header?
by hallikpapa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |