System.out.println("[gzipped input file!]");
sr = (XMLStreamReader2) f.createXMLStreamReader
(new InputStreamReader(new GZIPInputStream
(new FileInputStream(file)), "UTF-8"));
} else {
sr = f.createXMLStreamReader(file);
//sr = (XMLStreamReader2) f.createXMLStreamReader(new InputStreamReader(new FileInputStream(file), "IBM500"));
//sr = (XMLStreamReader2) f.createXMLStreamReader(new StreamSource(file));
}
//sr.setProperty(WstxInputProperties.P_BASE_URL, "file:///tmp");