How can I declare the namespaces in a query?
I get an error when declaring the namespaces
Declare @Mydoc xml
set @Mydoc = (
select importe, algo,XD,
(select impuesto,tasa,transferencia
from CfdiDet
for xml raw('cfdi_detalle'),type)
from cfdienc
for xml raw('cfdi_encabezado'),type)
This is the part where I have a problem
set @Mydoc.modify('declare xmlnamespaces ('uri',cfdi')
I want to replace the "_"
with ":"