XQuery and element
File: Data.xml <?xml version="1.0"?> <Books> <Book>A</Book> <Book>B</Book> <Book>C</Book> </Books> File: Query.xquery <Books> {doc("Data.xml")/Books/Book} </Books> Output: <?xml version="1.0" encoding="UTF-8"?> <Books> <Book>A</Book> <Book>B</Book> <Book>C</Book> </Books>