Returns valid XML characters : XmlConvert « XML « VB.Net






Returns valid XML characters

  

Imports System
Imports System.Xml

Public Class Sample

  Public Shared Sub Main()
        Dim illegalChar As Char = ChrW(CInt("&hFFFE"))
        Dim charsToVerify As String = "Test String "

        Console.WriteLine(XmlConvert.VerifyXmlChars(charsToVerify + illegalChar))
  End Sub
End Class

   
    
  








Related examples in the same category

1.XmlConvert.DecodeName
2.XmlConvert.ToDateTime converts the String to a DateTime equivalent.
3.XmlConvert.ToDateTimeOffset
4.XmlConvert.ToString converts the DateTime to a String.
5.XmlConvert.VerifyWhitespace
6.Encode and decode a local name