nan has asked for the wisdom of the Perl Monks concerning the following question:
I encountered a really weird error while using perl script to search in a big XML/RDF file (225MB) in CGI.
I don't know what's wrong with it as the script works perfectly with a sample XML/RDF file (only 4K) which is the same format as the big one and their only difference is the file size. I attached the error msg below for your reference
not well-formed (invalid token) at line 221, column 97, byte 12020 at C:/Perl/site/lib/XML/Parser.pm line 187
I have searched through perl-xml Q&A's and it seems that I did't have problems they listed such as double quotations or incorrect encoding notations. So pls could anyone offer some suggestions?
many many thanks,
<?xml version='1.0' encoding='UTF-8' ?>