是否有一个XmlEn code / XmlDe code为.NET?有一个、XmlEn、code、XmlDe

2023-09-03 04:50:04 作者:人穷嘴贱还不美

是否有编码方法和解码 *的 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)