是否有一个XmlEn code / XmlDe code为.NET? [英] Is there an XmlEncode / XmlDecode for .NET?

查看:198
本文介绍了是否有一个XmlEn code / XmlDe code为.NET?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有编码方法解码 *的 XML 的* .NET中?我似乎无法找到他们,想知道他们为什么不在那里,并用什么代替?

Are there methods for encoding and decoding *XML* in .NET? I can't seem to find them and am wondering why they aren't there and what to use instead?

我需要连接code XML文档,并通过它传递给一个字符串参数上的Web服务。然后,它必须是德$ C $光盘在另一端

I need to encode an XML document and pass it through to a string parameter on a web service. It then needs to be decoded at the other end.

推荐答案

如果你指的是编码/ XML名称解码,还有的 XmlConvert.En codeNAME 和的德codeNAME 的。

If you are referring to encoding/decoding of XML names, there is XmlConvert.EncodeName and DecodeName.

或者,你说的指定整个XML文档的编码/解码使用的 XmlDeclaration XDeclaration ? (我认为这照顾了编码我们)

Or are you talking about specifying the encoding/decoding of the whole XML document using XmlDeclaration or XDeclaration? (I thought this took care of encoding for us)

这篇关于是否有一个XmlEn code / XmlDe code为.NET?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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