last of the xml metadata parsing