Link to home
Start Free TrialLog in
Avatar of SAZ2
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,

Avatar of rajaamirapu
rajaamirapu

After getting the namespace nodes, you could remove the namespace from the xml
Exectue the stored procedure
see this link,
it has everthing about namespace
Avatar of SAZ2

ASKER

Thank you for the response.  Will you please post the link?  Thanks
ASKER CERTIFIED SOLUTION
Avatar of rajaamirapu
rajaamirapu

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SAZ2

ASKER

Thank you all for the response.  I have gotten it to with the namespaces.  Thank you
Avatar of SAZ2

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.