File: Data.xml
1
name 1
2
name 2
3
name 3
4
name 4
File: Query.xquery
unordered {
let $doc := doc("Data.xml")
return $doc//(number|name)
}
Output:
1
name 1
2
name 2
3
name 3
4
name 4