Replace any non-ASCII characters in an XML document (as a byte array) with XML character references (where permitted).
Namespace: FirmaSATAssembly: diFirmaSatNet (in diFirmaSatNet.dll) Version: 10.70.0.38178 (10.70.0.0)
Syntaxpublic static string Asciify(
byte[] xmlData
)
Public Shared Function Asciify (
xmlData As Byte()
) As String
Parameters
- xmlData Byte
- Byte array containing XML data
Return Value
StringXML document as a string with non-ASCII characters replaced by XML character references.
Remarks(bytes) --> (string)
Examplebyte[] b = File.ReadAllBytes("cfdv40-ejemplo.xml");
string s = Sat.Asciify(b);
Console.WriteLine(s);
See Also