Discover skips xml which are not manifests

The discover function will now skip the XML which are not manifests.