Problem with xml parser
While trying to get a script to diff two xml files, I stumbled upon
XML::SemanticDiff and the example alongwith it .
But while running the script I am getting the following error :
Couldn't open encmap windows-1252.enc:
No such file or directory
Can anyone suggest, why I am getting this ?The path to the above
Parser.pm exists .
Or IF there is any better solution to diff two xml files (obviously
using perl)from the command line ?
Re: Problem with xml parser
>Couldn't open encmap windows-1252.enc:
>No such file or directory
> at /lib/perl5/site_perl/5.8.0/sun4-solaris-thread-multi/XML/Parser.pm
>Can anyone suggest, why I am getting this ?The path to the above
>Parser.pm exists .
Yes, but not the file"windows-1252.enc".
Hmm... I have it here, under the name "cp1252.enc". I'm not sure I
didn't create it myself.
There are at least two ways you can create such a file. The data source,
in any way, is the text files under
<http://unicode.org/Public/MAPPINGS/>, for this particular file (which
describes the standard Windows character set) is
The official way to create it, as you can see here:
is to use a script that comes with the module XML::Encoding on CPAN,
The second way is slightly more manual, it is by using a script I wrote
years ago and which you can find here:
Wow. History repeats itself.