in reply to not well formed (invalid token)

That looks like your data might be Unicode encoded as UTF-8. So you will have to decode the data prior to using XML::XPath on it, or tell XML::XPath to decode it properly.

Replies are listed 'Best First'.
Re^2: not well formed (invalid token)
by Anonymous Monk on Nov 04, 2009 at 10:40 UTC
    any clue how to decode it?

      Yes. See the Encode module which I already linked in my previous reply.

        Thanks for your reply, what it should be encoded from and to? what shall I encode it to?