'API Method to encode an ElementTree into the target format,
to be implemented by the subclass
@param resource: the S3Resource
@return: a handle to the output'

def encode(self, resource, **attr):

    raise NotImplementedError
