Parsing queries from XML added