File: Data.xml 0001 name 1 0002 name 2 0003 name 3 File: Query.xquerylet $prod := doc("Data.xml")//car[1] return { id: { $prod/id } }Output: id: 0001