Problem with xml parser

Ask a Question related to PERL Miscellaneous, Design and Development.

  1. #1

    Default Problem with xml parser

    Hi All,

    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
    at /lib/perl5/site_perl/5.8.0/sun4-solaris-thread-multi/XML/Parser.pm
    line 185

    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 ?

    Thanx
    Debhatta
    debraj Guest

  2. Similar Questions and Discussions

    1. Simulation logfile parser problem
      Hi! i ve got a problem for logfile parser. The task is to create a script to search for lines containing a user specified keyword and process the...
    2. Memory problem with XML::DOM::Parser???
      He, everybody, I'm having a big problem when it comes to parsing a large file with the ActiveState XML-DOM 1.43 XML-Parser: It consumes a hell of...
    3. Problem using XML-Parser
      Hi. Please note that we are using XML-Parser 2.31 and XML_Simple 1.08. I have an XML file that I am reading with the following line: my...
    4. MIME::Parser::Filer problem
      Hi, Trying to run MIME::Parser from amavisd (in chroot jail) and am getting a writing/reading tempfile error. Permissions are 777 and amavis...
    5. mime::parser(again) download problem
      Hi, This is how i'm retrieving messages(code below). The text is fine it is perfectly downloading it. But for pictures attachment, the file has...
  3. #2

    Default Re: Problem with xml parser

    debraj wrote:
    >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
    >line 185
    >
    >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
    <http://unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1252.TXT>.

    The official way to create it, as you can see here:


    <http://search.cpan.org/src/MSERGEANT/XML-Parser-2.34/Parser/Encodings/README>

    is to use a script that comes with the module XML::Encoding on CPAN,

    <http://search.cpan.org/author/COOPERCL/XML-Encoding-1.01/>


    The second way is slightly more manual, it is by using a script I wrote
    years ago and which you can find here:

    <http://bumppo.net/lists/macperl-modules/2000/04/msg00017.html>


    Wow. History repeats itself. :)

    --
    Bart.
    Bart Lateur Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139