def compress(string):
    """Expects a valid XHTML Unicode string as input and returns a valid
        XHTML Unicode string.

        Examples of compression are removal of whitespace without a semantical
        meaning, lowercasing of tags and attribute names (which gzip
        compression can take advantage of) or removal of comments.
        """
