xml.dom.minidom entity reference translation

Dale Strickland-Clark dale at riverhall.NOTHANKS.co.uk
Sat Oct 27 02:42:07 CEST 2001

The XML parser in this module appears to be a bit heavy on spaces
around the entity references: < & > etc.

It is removing all of them leaving the translated characters next to
the first non-blank on either side.


<monty> abc  def  >   xyz </monty>


abc  def>xyz

Elsewhere, spaces appear to be left intact.

Is it supposed to do this? 

Can I stop it somehow? It is a serious impediment to a good round-trip
experience. :-)
Dale Strickland-Clark
Riverhall Systems Ltd

More information about the Python-list mailing list