internet data handling and encoding xmlgenerator([out [encoding]] contenthandler object that merely echoes parsed xml data back to the output stream as an xml document this re-creates the original xml document out is the output document and defaults to sys stdout encoding is the character encoding to use and defaults to 'iso- - this can be useful if you're trying to debug your parsing code and use handler that is known to work lib fl ff