SAZ2
asked on
suppressing namespace declarations in subqueries when using for xml
Hello,
I 've created a sqlserver stored procedure to generate an xml file. I use " with xmlnamespaces" and have multiple nested "select for xml " statements. When the xml file is created, the namespace shows up for each nested query. What can I do in the stored procedure to eliminate the namespace in the subquery elements?
Thank you,
I 've created a sqlserver stored procedure to generate an xml file. I use " with xmlnamespaces" and have multiple nested "select for xml " statements. When the xml file is created, the namespace shows up for each nested query. What can I do in the stored procedure to eliminate the namespace in the subquery elements?
Thank you,
ASKER
Thank you for the response. Will you please post the link? Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you all for the response. I have gotten it to with the namespaces. Thank you
ASKER
Not sure how to grade. The program worked with all the imbedded namespaces, I thought it would not so I was trying to get rid of them. I appreciate the feedback none the less.
Exectue the stored procedure
see this link,
it has everthing about namespace