Read attributes in xml