Imports System.Xml Imports System.IO Imports System.Collections Imports System.Runtime.Serialization Imports System.Runtime.Serialization.Formatters.Binary <Serializable()> Public Class CEmpData
Implements ICloneable, ISerializable Private ArrEmp As ArrayList Public Sub New() Dim xmldoc As New XmlDocument Dim node As XmlNode Dim objEmp As CEmp ArrEmp = New ArrayList xmldoc.Load("empdata.xml") For Each node In xmldoc.DocumentElement.ChildNodes objEmp = New CEmp objEmp.FName = node.SelectSingleNode("firstname").InnerText objEmp.LName = node.SelectSingleNode("lastname").InnerText ArrEmp.Add(objEmp) Next End Sub Public Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext) Dim intIndex As Integer |