Two XML query languages were tested for intuitivity, learnability and memorability. The languages differ with relation to the query structures like the use of variables, iterators, and reference to attributes. One of the languages, XQuery, is a procedural, expressive and data-oriented query language that is suitable even for programming purposes; the other, XIL, is more declarative, documentoriented query language with a simpler syntax. A query writing test with the learners of the languages was executed. The study indicates that in the query writing, the more procedural query language yields in a greater number of correct queries. Similarity between the tested languages, and to SQL, is discussed from the point-of-view of learnability.