我需要使用C#和&amp ;;将我的电子邮件订单提取到XML文件。 。净。 [英] I need to extract my email orders to XML files using C# & .net.

查看:62
本文介绍了我需要使用C#和&amp ;;将我的电子邮件订单提取到XML文件。 。净。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用C#& amp;提取我的电子邮件订单到xml文件。净。任何人都可以这样描述吗?

到目前为止,我已将我的电子邮件正文提取到文本文件中。我需要删除所有空元素并将数据转换为xml格式。



我尝试过:



到目前为止,我已将我的电子邮件正文提取到文本文件中。我需要删除所有空元素并将数据转换为xml格式。

I need to extract my email orders to xml files using C# & .Net. Can anyone describe this?
So far I have extracted my email body to a text file. I need to get remove all empty elements and convert data to xml format.

What I have tried:

So far I have extracted my email body to a text file. I need to get remove all empty elements and convert data to xml format.

推荐答案

这里没有足够的信息供任何人帮助你。请记住,我们无法访问您的代码,计算机或屏幕,因此您不应该假设我们可以提供有关我们无法访问的内容的输入。例如,我们怎么知道我需要删除所有空元素甚至意味着什么?



听起来你已经在做你需要的了,您已下载电子邮件的内容并将其保存到文本文件中。而不是将其保存到文本文件,而是将其保存到XML文件。



如果您的问题是您不确定如何编写XML,我建议谷歌搜索,它将为您提供大量选择。



如何编写xml c - Google搜索 [ ^ ]



如何在C#中构建XML? - 堆栈溢出 [ ^ ]



https://www.dotnetperls.com / xmlwriter [ ^ ]
There is not nearly enough information here to be of use for anyone to help you. Remember we don't have access to your code, computer or screen so you shouldn't assume we can provide input on what we can't access. For example, how are we supposed to know what "I need to get remove all empty elements" even means?

It sounds like you are already doing what you need, you've downloaded the contents of the email and saving it to a text file. Instead of saving it to a text file, save it to an XML file.

If your issue is you're not sure how to write XML, i'd suggest a google search which will provide you with plenty of options.

how to write xml c - Google Search[^]

How can I build XML in C#? - Stack Overflow[^]

https://www.dotnetperls.com/xmlwriter[^]


这篇关于我需要使用C#和&amp ;;将我的电子邮件订单提取到XML文件。 。净。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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