code: public static synchronized XMLEventReader createFileReader(final File paramFile) throws IOException,
          XMLStreamException {
          final XMLInputFactory factory = XMLInputFactory.newInstance();
          factory.setProperty(XMLInputFactory.SUPPORT_DTD, false);
          final InputStream in = new FileInputStream(paramFile);
          return factory.createXMLEventReader(in);
      }
docs: Create a new StAX reader on a file.
  
  @param paramFile
  the XML file to parse
  @return an {@link XMLEventReader}
  @throws IOException
  if I/O operation fails
  @throws XMLStreamException
  if any parsing error occurs