Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Newtoxml001

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hello, I created a sql query in sql server that outputs an xml document. I have added namespaces to the beginning of the query WITH XMLNAMESPACES ('uri:' as ram, 'uri:' as rsm). Is there a way that this wording does not appear within the structure? xmlns:rsm="uri:" xmlns:ram="uri:" <rsm:ExchangedDocumentContext xmlns:rsm="uri:" xmlns:ram="uri:"> <ram:GuidelineSpecifiedDocumentContextParameter xmlns:rsm="uri:" xmlns:ram="uri:"> <ram:ID>urn:cen.eu:en16931:2017</ram:ID> </ram:GuidelineSpecifiedDocumentContextParameter> </rsm
  2. I am creating an XML file using SQL server using FOR xml path(''), TYPE) to create the structure. There is a section that combines single elements and repeating elements (details) within the same root. What I get is the single elements being repeated as many times for each repeating element. I need the output to look like the attached example. Is there a way to accomplish this? Thanks! Untitled.bmp
  • Create New...