File: Data.xml
xmlns:prod="http://rntsoft.com/prod"
xmlns:ord="http://rntsoft.com/ord">
0002
name 2
File: Query.xquery
declare copy-namespaces no-preserve, inherit;
xmlns:cat="http://rntsoft.com/cat"
xmlns:prodnew="http://rntsoft.com/prod"> {
doc("Data.xml")//prodnew:car
}
Output:
xmlns="http://rntsoft.com/report">
0002
name 2