io::File: clear the buffer on close
io::Memory: clear the io::Input buffer also
xml: Fix CDATA parser