def classpath_entry_xml(kind, path):
    """Generates an eclipse xml classpath entry.

    Args:
        kind: Kind of classpath entry.
            Example values are 'lib', 'src', and 'con'
        path: Absolute or relative path to the referenced resource.
            Paths that are not absolute are relative to the project root.

    Returns:
        xml classpath entry element with the specified kind and path.
    """
    return "<classpathentry kind=\"{kind}\" path=\"{path}\"/>".format(
        kind=kind, path=path)