File: Data.xml 0001 name 1 0002 name 2 0003 name 3 File: Query.xqueryfor $prod in doc("Data.xml")/order/carreturn id: {$prod/id}Output:id: 0001id: 0002id: 0003