问题描述
是否有编码方法和解码 *的 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名称解码,还有的和的的。
If you are referring to encoding/decoding of XML names, there is XmlConvert.EncodeName and DecodeName.
或者,你说的指定整个XML文档的编码/解码使用的或 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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!