code: public String getFileType(Element schema_links) throws Exception {
          Document d = schema_links.getOwnerDocument();
          NodeList nodes = d.getElementsByTagNameNS(
                  "http://www.occamlab.com/te/parsers", "schema");
          String localType = null;
          for (int i = 0; i < nodes.getLength(); i++) {
              Element e = (Element) nodes.item(i);
              localType = e.getAttribute("type");
              this.type = e.getAttribute("type");
              this.phase = e.getAttribute("phase");
              this.schemaLocation = e.getTextContent().trim();
          }
          return localType;
      }
docs: Parses the parser element to get the schematron file location and type of
  resource (from ctl file).
  
  @param schema_links
  Gets the location of the schema (and type of resource) and
  saves to global parameter
  @return The type of resource (URL, File, Resource)