XQuery: A typed functional language for querying XML

5Citations
Citations of this article
11Readers
Mendeley users who have this article in their library.
Get full text

Abstract

XQuery is a typed, functional language for querying XML, currently being designed by the XML Query Working Group of the World-Wide Web Consortium. Here are examples of XQuery queries on a suitable XML document describing books. To list titles of all books published before 2000 you might write: document("books.xml")/BOOKS/BOOK[@YEAR < 2000]/TITLE To list the year and title of all books published before 2000 you might write: for $book in document("books.xml")/BOOKS/BOOK where $book/@YEAR < 2000 return 〈BOOK〉{ $book/@YEAR, $book/TITLE }〈/BOOK〉 And to list for each author the titles of all books by that author you might write: let $books := document("books.xml")/BOOKS for $author in distinct($books/BOOK/AUTHOR) return 〈AUTHOR NAME="{ $author }"〉{ $books/BOOK[AUTHOR = $author]/TITLE }〈/AUTHOR〉. © Springer-Verlag Berlin Heidelberg 2003.

Cite

CITATION STYLE

APA

Wadler, P. (2004). XQuery: A typed functional language for querying XML. Lecture Notes in Computer Science (Including Subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 2638, 188–211. https://doi.org/10.1007/978-3-540-44833-4_7

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free