有关WPF和XML应用程序的帮助 [英] Help regarding WPF and XML application

查看:83
本文介绍了有关WPF和XML应用程序的帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的任务就像调查将由一个ipad {OFFLINE}完成,然后从该ipad中,我们必须将这些被调查的值存储在XML中...

因此,在使用这些XML存储的值进行调查之后,我们将连接到PC,然后将这些值与SQL同步..

到目前为止,我已经设计了一个样本调查,其中包含一个具有1-5个评分的列表框,所以我想知道如何将这些值存储为XML:?

My task is like the survey will be done by an ipad{OFFLINE} and from that ipad we have to store those surveyed values in an XML...

so after the survey with those XML stored values we will connect to a PC and then we will synchronize the values with SQL..

SO upto now i have designed a sample survey which contains a listbox with 1 - 5 ratings,so i wanna know how to store that values in XML:?

推荐答案

the最简单的方法是获取包含xaml控件绑定到的值的对象并将该对象序列化为XmlDocument,然后将XmlDocument保存到磁盘,或者您可以手动创建XmlDocument并插入节点并将XmlDocument保存到磁盘.
the simplest way to do that is to take the object containing the values that the xaml controls binds to and serialize that object down to XmlDocument, then save the XmlDocument to disk, or you can manualy create a XmlDocument and insert the nodes and save the XmlDocument to disk.


感谢annathor.

现在,我能够将这些值存储为XML,但是现在最大的任务是将这些数据同步到sql.


请给我建议任何解决方案.
Thanks annathor.

Now i am able to store that values in XML but now the biggest task is to synchronise these datas to sql.


Please suggest me any solution..


这篇关于有关WPF和XML应用程序的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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