code: def _looks_like_libdoc_file(self, name):
          
          # inefficient since we end up reading the file twice,
          # but it's fast enough for our purposes, and prevents
          # us from doing a full parse of files that are obviously
          # not libdoc files
          if name.lower().endswith(".xml"):
              with open(name, "r") as f:
                  # read the first few lines; if we don't see
                  # what looks like libdoc data, return false
                  data = f.read(200)
                  index = data.lower().find("<keywordspec ")
                  if index > 0:
                      return True
          return False
docs: Return true if an xml file looks like a libdoc file