code: public static Set<String> getNamespaces(File file) throws ParserConfigurationException, SAXException, IOException {
          return getNamespaces(new InputSource(new FileReader(file)));
      }
docs: Returns the namespace URIs found in the given XML file