> Where's the docs I should have read to find this? Err, standard python library, xml.sax.saxutils. But it only does search-and-replace for '&','>' & '<' so rolling your own is not a great sin. - Andy