def as_value(s):
 return ('<value>%s</value>' % saxutils.escape(s))

def as_value ( s ) : return ( '<value>%s</value>' % saxutils . escape ( s ) )
helper function for simulating xenapi plugin responses .