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

2.XmlConvert.ToDateTime converts the String to a DateTime equivalent.
4.XmlConvert.ToString converts the DateTime to a String.
6.Returns valid XML characters