check ModelDB.build_xml
chenged xml parsing