File: Data.xml
0001
name 1
0002
name 2
0003
name 3
File: Query.xquery
for $prod in doc("Data.xml")/order/car
return {$prod/@model,"string",5+3,$prod/id}
Output:
string 80001
string 80002
string 80003