File: Data.xml
0001
name 1
0002
name 2
0003
name 3
File: Query.xquery
if (doc("Data.xml")//car[@model='ACC'])
then Accessories & Misc List from <order>
else ()
Output:
Accessories & Misc List from <order>