fix reading items in xmlreader (still has no tests)