





















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






















catalog.xml
doc("catalog.xml")/catalog/product
doc, passing it the name of the file to open
element of the document
elements, exactly as they appear (with the same attributes and contents) in the input document
their compact, easy-to-remember syntax.
queries is the FLWOR expression
for $prod in doc("catalog.xml")/catalog/product where $prod/@dept = "ACC" order by $prod/name return $prod/name
for $prod in doc("catalog.xml")/catalog/product where $prod/@dept = "ACC" order by $prod/name return $prod/name
for $prod in doc("catalog.xml")/catalog/product where $prod/@dept = "ACC" order by $prod/name return $prod/name
convenience that avoids repeating the same expression multiple times.
improve performance, because the expression is evaluated only once instead of each time it is needed.
XML vocabulary **Query