in reply to Re^2: XML::Generator bad header?
in thread XML::Generator bad header?

You are doing something wrong. Please show a little more piece of the code.

Did you send any headers before

print CGI->header('text/xml');

?

Replies are listed 'Best First'.
Re^4: XML::Generator bad header?
by hallikpapa (Scribe) on Aug 19, 2007 at 01:12 UTC
    This is happens at the very end of the script. The only printing I do.
    print CGI->header('text/xml'); print "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n"; print "<dataset>\n"; print @output; print "</dataset>"; exit;
      Then your webserver does some printing also
        It;s like a default apache server. installed it just for testing. v2.0