{ for $t in doc("books.xml")//(chapter | section)/title where contains($t/text(), "XML") return $t }