Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi

I dont know if this is the right place to ask this question so plz excuse me ... I am running a perl script which generates a output xml file which is giving this error

This page contains the following errors: error on line 1 at column 3963: Char 0x0 out of allowed range Below is a rendering of the page up to the first error.

What could be the possible reason for it?

Replies are listed 'Best First'.
Re: Xml error
by Anonymous Monk on Mar 15, 2012 at 10:37 UTC

    The reason is exactly what the message says it , char 0, null, its not valid character to have in xml.

    Typically, if not a literal print "\0" this means your program is not Encoding the output correctly