<i id='tMJ5o'><tr id='tMJ5o'><dt id='tMJ5o'><q id='tMJ5o'><span id='tMJ5o'><b id='tMJ5o'><form id='tMJ5o'><ins id='tMJ5o'></ins><ul id='tMJ5o'></ul><sub id='tMJ5o'></sub></form><legend id='tMJ5o'></legend><bdo id='tMJ5o'><pre id='tMJ5o'><center id='tMJ5o'></center></pre></bdo></b><th id='tMJ5o'></th></span></q></dt></tr></i><div id='tMJ5o'><tfoot id='tMJ5o'></tfoot><dl id='tMJ5o'><fieldset id='tMJ5o'></fieldset></dl></div>

<legend id='tMJ5o'><style id='tMJ5o'><dir id='tMJ5o'><q id='tMJ5o'></q></dir></style></legend>
    • <bdo id='tMJ5o'></bdo><ul id='tMJ5o'></ul>

    <tfoot id='tMJ5o'></tfoot>
  • <small id='tMJ5o'></small><noframes id='tMJ5o'>

      1. dataSet.GetXml() 不为 null 或空白列返回 xml

        时间:2023-06-04
        <tfoot id='0IY3l'></tfoot>
        • <i id='0IY3l'><tr id='0IY3l'><dt id='0IY3l'><q id='0IY3l'><span id='0IY3l'><b id='0IY3l'><form id='0IY3l'><ins id='0IY3l'></ins><ul id='0IY3l'></ul><sub id='0IY3l'></sub></form><legend id='0IY3l'></legend><bdo id='0IY3l'><pre id='0IY3l'><center id='0IY3l'></center></pre></bdo></b><th id='0IY3l'></th></span></q></dt></tr></i><div id='0IY3l'><tfoot id='0IY3l'></tfoot><dl id='0IY3l'><fieldset id='0IY3l'></fieldset></dl></div>

            • <small id='0IY3l'></small><noframes id='0IY3l'>

                  <tbody id='0IY3l'></tbody>

                <legend id='0IY3l'><style id='0IY3l'><dir id='0IY3l'><q id='0IY3l'></q></dir></style></legend>
                • <bdo id='0IY3l'></bdo><ul id='0IY3l'></ul>

                  本文介绍了dataSet.GetXml() 不为 null 或空白列返回 xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  当我调用 dataSet.GetXml() 时,我没有为具有空值或空白值的列返回任何 xml.有没有一种简单有效的方法来解决这个问题?下面是问题的一个例子.请注意第二个结果部分中缺少 a2 的情况.

                  When I call dataSet.GetXml() I don't get any xml returned for columns with null or blank values. Is there a simple, efficient way to get around this? An example of the problem below. Notice how a2 is missing from the second results section.

                  <results>
                  <a1>test1</a1>
                  <a2>test2</a2>
                  <a3>test3</a3>
                  </results>
                  <results>
                  <a1>Atest1</a1>
                  <a3>Atest3</a3>
                  </results>
                  

                  推荐答案

                  此 Microsoft 知识库文章中详细介绍了该问题:http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q317961.有关更多详细信息,请参阅上一个 SO 问题:DataSet.GetXml 不返回空结果.

                  The problem is detailed in this Microsoft KB article: http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q317961. See this previous SO question for more detail: DataSet.GetXml not returning null results.

                  我认为您的直接问题没有很好的解决方案.不过,考虑到上下文,可能还有另一种解决问题的方法.

                  I don't think there is a good solution to your direct question. Given context, there may be another way to approach the problem though.

                  这篇关于dataSet.GetXml() 不为 null 或空白列返回 xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:为什么 XSD.EXE 会创建两个 .XSD 文件,以及如何使 下一篇:在 .NET XML 反序列化中,如何允许多态使用 Array

                  相关文章

                  最新文章

                  1. <legend id='7HPTR'><style id='7HPTR'><dir id='7HPTR'><q id='7HPTR'></q></dir></style></legend>
                  2. <tfoot id='7HPTR'></tfoot>

                    1. <small id='7HPTR'></small><noframes id='7HPTR'>

                      <i id='7HPTR'><tr id='7HPTR'><dt id='7HPTR'><q id='7HPTR'><span id='7HPTR'><b id='7HPTR'><form id='7HPTR'><ins id='7HPTR'></ins><ul id='7HPTR'></ul><sub id='7HPTR'></sub></form><legend id='7HPTR'></legend><bdo id='7HPTR'><pre id='7HPTR'><center id='7HPTR'></center></pre></bdo></b><th id='7HPTR'></th></span></q></dt></tr></i><div id='7HPTR'><tfoot id='7HPTR'></tfoot><dl id='7HPTR'><fieldset id='7HPTR'></fieldset></dl></div>
                        <bdo id='7HPTR'></bdo><ul id='7HPTR'></ul>