Right now, xmlparser outputs errors whenever it encounters (non-predefined) entities while parsing xml. After looking through the files, it seems the xmltree module handles entity nodes okay (but without replacement of course, since there's no DTD parsing for entity definitions). So I decided to modify xmlparser to just create the entity with xmltree.newEntity(), and I can just replace entities myself when they comes up. I haven't yet verified that my change doesn't blow up in my face in some way, but it seems to me that this would be preferable to the current behaviour for most people. Is there a significant reason for xmlparser not creating entity nodes?