read cards from xml