Load children
File: Data.xml <order> <car dept="A"> <number>1</number> </car> <car dept="B"> <number>2</number> </car> <car dept="B"> <number>3</number> </car> <car dept="C"> <number>4</number> </car> </order> File: Query.xquery doc("Data.xml")/order/car/number Output: