XML processing pitfall: InputStream