File: Data.xml
0002
name 2
File: Query.xquery
xmlns:cat="http://rntsoft.com/cat"
xmlns:prod="http://rntsoft.com/prod"> {
for $car in doc("Data.xml")/prod:car
return
{$car/prod:id}
{$car/prod:name}
}
Output:
xmlns="http://rntsoft.com/report">
0002
name 2