A docstring would be nice, especially in regard to the `xml_declaration` and `encoding` parameters to the `etree.tostring` method. Do they have any effect on the outcome? Does the user need to use a specific encoding, is an XML declaration required?