Jump to content
Sign in to follow this  
Newtoxml001

XML name spaces in sql query

Recommended Posts

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:ExchangedDocumentContext>
  <rsm:ExchangedDocument xmlns:rsm="uri:" xmlns:ram="uri:">
    <ram:ID>2019108789744</ram:ID>
    <ram:TypeCode>380</ram:TypeCode>
    <ram:IssueDateTime xmlns:rsm="uri:" xmlns:ram="uri:">
      <ram:DateTimeString>20190307</ram:DateTimeString>
    </ram:IssueDateTime>

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...