'Checks the tag dict for errors and raises L{ValueError} if an
error is found.
@param tags: The tag dict passed to sendMsg.'

def _validateTags(self, tags):

    for (tag, value) in tags.items():
        if (not tag):
            raise ValueError('A    tag    name    is    required.')
        for char in tag:
            if ((not char.isalnum()) and (char not in ('-', '/', '.'))):
                raise ValueError('Tag    contains    invalid    characters.')
