in reply to Re: not well-formed (invalid token)
in thread not well-formed (invalid token)

It won't work what you suggest but I found the error from a FAQ. It is from the encoding declaration. XML::SIMPLE doesn't like this:
<?xml version='1.0' encoding="iso-8859-1"?>

But he likes this:
<?xml version='1.0' encoding='iso-8859-1'?> or <?xml version="1.0" encoding='iso-8859-1'?>

Very tricky. Becareful of the encoding guys

Replies are listed 'Best First'.
Re^3: not well-formed (invalid token)
by Prior Nacre V (Hermit) on Oct 04, 2004 at 10:53 UTC

    I'm not sure if you're aware of the pointless processing occurring at these four lines. The data assigned to $cat are immediately lost because this variable immediately goes out of scope. This may not be a typo, as I suggested, but it is definitely an issue you should address.

    The problem you describe with XML::Simple indicates non-conformance with the published XML Specification. If you are absolutely certain about this, consider advising the module's author(s).

    Regards,

    PN5

      I already replaced what you just suggest to me before I came back here and worked well. But XML::simplestill complains about the encode. So since I found what was the prob about the encode and after I debugged. It's good now.
      But Thanks for you suggestion. I appreciate. :)
      Maxim