def pretty_xml(container, name, raw):
 root = container.parse_xml(raw)
 if (name == container.opf_name):
  pretty_opf(root)
 pretty_xml_tree(root)
 return serialize(root, u'text/xml')

def pretty_xml ( container , name , raw ) : root = container . parse_xml ( raw ) if ( name == container . opf_name ) : pretty_opf ( root ) pretty_xml_tree ( root ) return serialize ( root , u'text/xml' )
pretty print the xml represented as a string in raw .