File inputFile = new File(inputFilename);
File outputFile = new File(outputFilename);
in = new InputStreamReader(new FileInputStream(inputFile), minifyProperty.getCharset());
minifyFileResult.setInputFileSize(inputFile.length());
XmlCompressor compressor = new XmlCompressor();
compressor.setRemoveIntertagSpaces(true);
compressor.setRemoveComments(true);
compressor.setEnabled(true);
String output = compressor.compress(fromStream(in));//out, minifyProperty.getLineBreakPosition());
in.close();
in = null;
out = new OutputStreamWriter(new FileOutputStream(outputFile), minifyProperty.getCharset());