Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5843527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:10:01+00:00 2026-05-22T12:10:01+00:00

Is XMLDATA transmitted as binary xml dom representation, or as an xml string? ,

  • 0

Is XMLDATA transmitted as binary xml dom representation, or as an xml string?, when accessed with command.ExecuteXmlReader()?

A documentation link would be perfect.

What serialization/deserialization steps involved on the sql server and client side?

UPDATE:

The question is not about how to use the classes provided by net framework.

It’s about the internal details of data transmission during execution of an Adonet command on an SQL Server connection, resulting in an XMLDATA column in a resultset.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T12:10:01+00:00Added an answer on May 22, 2026 at 12:10 pm

    OK, this is quite fun. I didn’t find any reference, but I did do a quick trace with WireShark.

    The format is some sort of internal representation, presumably a tree structure. The following value:

    <ErrorData>
      <Error>The provided value for ItemCode contains invalid characters (_).</Error>
    </ErrorData>
    

    comes across the wire like this:

    00c0   b0 04 f0 09 45 00 72 00 72 00 6f 00 72 00 44 00  ....E.r.r.o.r.D.
    00d0   61 00 74 00 61 00 ef 00 00 01 f8 01 f0 05 45 00  a.t.a.........E.
    00e0   72 00 72 00 6f 00 72 00 ef 00 00 02 f8 02 11 40  r.r.o.r........@
    00f0   54 00 68 00 65 00 20 00 70 00 72 00 6f 00 76 00  T.h.e. .p.r.o.v.
    0100   69 00 64 00 65 00 64 00 20 00 76 00 61 00 6c 00  i.d.e.d. .v.a.l.
    0110   75 00 65 00 20 00 66 00 6f 00 72 00 20 00 49 00  u.e. .f.o.r. .I.
    0120   74 00 65 00 6d 00 43 00 6f 00 64 00 65 00 20 00  t.e.m.C.o.d.e. .
    0130   63 00 6f 00 6e 00 74 00 61 00 69 00 6e 00 73 00  c.o.n.t.a.i.n.s.
    0140   20 00 69 00 6e 00 76 00 61 00 6c 00 69 00 64 00   .i.n.v.a.l.i.d.
    0150   20 00 63 00 68 00 61 00 72 00 61 00 63 00 74 00   .c.h.a.r.a.c.t.
    0160   65 00 72 00 73 00 20 00 28 00 5f 00 29 00 2e 00  e.r.s. .(._.)...
    0170   f7 f7 00 00 00 00 d1 0d 27 00 00 02 00 00 00 01  ........'.......
    

    Notes:

    • The tag names are included as (unicode) text, but they are included only once at opening, not at open and close.
    • Text node content is included as unicode text
    • In the binary stream extract attached, I don’t have a clear picture of where the data actually starts, so it’s hard to make good guesses about the format.

    UPDATE: hey, cool, found it. I forgot the format is called TDS: http://www.freetds.org/tds.html#login7. It looks like you can specify whether Xml will be returned in binary format or not, depending on whether it’s being passed to ADO or not.

    Doc for Binary Xml: http://msdn.microsoft.com/en-us/library/ee208875.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to check if loaded with xmlDoc.loadXML(xmlData); xml string is invalid? For
When loading XML into an XmlDocument, i.e. XmlDocument document = new XmlDocument(); document.LoadXml(xmlData); is
There is the following code: declare @XmlData xml = '<Locations> <Location rid=1/> </Locations>' declare
Following is the data and Select statement to work with : declare @XMLdata xml
Currently I am trying to parse an xml string that I already have (no
What path would you took to parse a large XML file (2MB - 20
Please see below SQL Server 2005 script Declare @xmlData XML SET @xmlData = '<?xml
My Flash Code var myLoader:URLLoader = new URLLoader; var xmlData = new XML(); myLoader.addEventListener(Event.COMPLETE,
I have declared a @xmldata as xml. How to read it? I tried declare
Using this code: xml = new groovy.xml.MarkupBuilder() xmldata = xml.Plugins(nextid: '10') { Target(name: 'default.auth')

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.