def get_full_xml_representation(entity, private_key):
from federation.entities.diaspora.mappers import get_outbound_entity<EOL>diaspora_entity = get_outbound_entity(entity, private_key)<EOL>xml = diaspora_entity.to_xml()<EOL>return "<STR_LIT>" % etree.tostring(xml).decode("<STR_LIT:utf-8>")<EOL>
Get full XML representation of an entity.

    This contains the <XML><post>..</post></XML> wrapper.

    Accepts either a Base entity or a Diaspora entity.

    Author `private_key` must be given so that certain entities can be signed.