Xquery XML

File: Data.xml

  
    
      29.99
    

    
      69.99
    

  


File: Query.xquery
if (doc("Data.xml")/prices/priceList/prod[price < 30])
then {
       doc("Data.xml")/*/priceList/prod[price < 30]
     }

else ()
Output:


   
      29.99