I have fixed this in my local copy. Will checkin tonight, but for now you can replace the makeWellFormed() function with this:
def makeWellFormed(str):
newstr = ''
xml_ents = { '<':'<', '>':'>', '&':'&', "'":''', '"':'"'}
for c in str:
if c in xml_ents:
newstr += xml_ents[c]
else:
newstr += c
Thanks for catching this, Nico!
I have fixed this in my local copy. Will checkin tonight, but for now you can replace the makeWellFormed() function with this:
def makeWellFormed( str):
newstr = ''
xml_ents = { '<':'<', '>':'>', '&':'&', "'":''', '"':'"'}
for c in str:
if c in xml_ents:
newstr += xml_ents[c]
else:
newstr += c
return newstr
Sorry about the trouble.