Encode and decode a local name : XmlConvert « XML « VB.Net






Encode and decode a local name

  


Imports System
Imports System.IO
Imports System.Xml

Public Class Sample
  Public Shared Sub Main()
     Dim name2 as string= XmlConvert.EncodeLocalName("a:book")
     Console.WriteLine("Encoded local name: " + name2)
     Console.WriteLine("Decoded local name: " + XmlConvert.DecodeName(name2))

  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.Returns valid XML characters