Buffer XML input stream