public static StdXMLReader fileReader(String filename) throws FileNotFoundException, IOException {
    StdXMLReader r = new StdXMLReader(new FileInputStream(filename));
    r.setSystemID(filename);

    for (StackedReader sr : r.readers) {
      sr.systemId = r.currentReader.systemId;
    }

    return r;
  }
public static StdXMLReader fileReader(String filename)