building XMLReader