for $item in doc("string.xml")//news_item where contains(string($item/content), "Gorilla Corporation") return { $item/title/text() }. { $item/date/text() }. { string(($item//par)[1]) }