filtered, readXML function finished