this file is in kinda good shape, sometimes we get files i can't even say what is waht but we need to live with that ;/
In my experience it's always better to not accept any XML file that isn't well-formed - that's the official recommendation for XML parsers anyway. Trying to retoactively fix a non wellformed file always leads to trouble. Getting whoever creates the files to fix their process to create real XML files (instead of files that only look like XML) is always a better choice.

update:

i forgot to xopy the firstline of the main file
<?xml version="1.0" encoding="ISO-8859-1"?>
is what is standing there with this in the testfile the error is gone
I'm not 100% sure, but if I read the source of your original post correctly, the original XML file isn't in iso-8859-1 but some form of unicode encoding. probably utf-8. That would also explain why copying the file in an editor works, since that can change the encoding.


In reply to Re^5: Confusion ,XML::SIMPLE with DATA:DUMPER by Joost
in thread Confusion ,XML::SIMPLE with DATA:DUMPER by ultibuzz

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.