即使代码执行,XMLTextWriter也会停止写入。 [英] XMLTextWriter stops writing even though code executes.

查看:79
本文介绍了即使代码执行,XMLTextWriter也会停止写入。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用XMLTextWriter。它写得很完美,直到它会停止写作。我的代码继续执行而没有任何错误。当我查看xml文件后,会有一个未完成的xml标记,其中作者停止如下:

I'm using an XMLTextWriter. It writes perfectly until all of a sudden it will stop writing. My code continues to execute without any errors. After when I look in the xml file there will be an unfinished xml tag where the writer stopped like this :

 

  < Tag>

  <Tag>

    < Tag> value< / Tag>

    <Tag>value</Tag>

    < Tag> value< / Tag>

    <Tag>value</Tag>

    < Ta

    <Ta

 

程序也会执行WriteFullEndElement,没有完整的结尾元素。 

The program executes the WriteFullEndElement as well and there will be no full end element. 

请帮助!

谢谢,

Rick

 

推荐答案

您能提供更多详情吗?在每次运行代码时都会发生一些可重现的错误吗?您能否提供一个最小但完整的代码示例,以便我们重现该问题?

Can you provide more details? Is that some reproducible error that happens on every run of your code? Can you provide a minimal but complete code sample that allows us to reproduce that problem?

您如何看待该文件?该文件有多大?

How exactly do you look at the file? How large is that file?


这篇关于即使代码执行,XMLTextWriter也会停止写入。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆