in reply to XML::DOM entity error

Could you provide a complete (but small) XML sample that exhibits the problem?

Your XML snippet does not parse as is, and when I complete it such that it does parse (including an entity declaration for – ), I cannot replicate the issue...