in reply to Entity error in XML::XPATH

I got parsing error b'cos of entities.
What error message (important, copy/paste)?
I'm sure that there is a better way to do this. Could u pls suggest me the better way?
Without seeing sample input and an error message (How (Not) To Ask A Question), the best answer you can hope for is to "fix" your XML so its properly formed :/

update: XML::Parser undefined entity error might interest you.

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.