如何根据webservice返回的json字符串在本地创建xml文件 [英] how to create a xml file locally based on a json string returned from webservice

查看:188
本文介绍了如何根据webservice返回的json字符串在本地创建xml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所有





有没有人知道如何根据webservice返回的json字符串创建一个xml文件。 />


假设来自webservice的返回字符串是json frommat。这是在dicionary类型和



字典键xmlString,我想根据这个字典中的值创建一个xml文件



键xmlString。我尝试过JsonConvert.DeserializeXmlNode并得到一些错误。





任何帮助都非常感谢

all


Does anyone know how to create a xml file based on a json string returned from webservice.

Let's say the return string from webservice is json frommat. It's in dicionary type and for the

dictionary key "xmlString", i want to create a xml file based on the value from this dictionary

key "xmlString". I have tried JsonConvert.DeserializeXmlNode and get some error.


Any help would really appreciated

推荐答案

如果您收到错误,请告诉我们它是什么。 JSON库应该将JSON转换为类。您应该能够从那里创建XML。
If you get an error, tell us what it is. A JSON library should turn JSON in to a class. You should be able to create XML from there.


这篇关于如何根据webservice返回的json字符串在本地创建xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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