XML XQuery
<!DOCTYPE html> <html> <body> <pre> for $product in doc("catalog.xml")/catalog/product where $product/price > 20 order by $product/name return <item> <name>{ $product/name/text() }</name> <price>{ $product/price/text() }</price> </item> </pre> </body> </html>