'Convert a parsed object (identified by canonical name) into a bytestring. See :meth:`parsed`.'

def serialize_item(self, name):

    data = root = self.parsed(name)
    if (name == self.opf_name):
        self.format_opf()
    data = serialize(data, self.mime_map[name], pretty_print=(name in self.pretty_print))
    if ((name == self.opf_name) and (root.nsmap.get(None) == OPF2_NS)):
        data = re.sub('(<[/]{0,1})opf:', u'\\1', data)
    return data
