public string DisplayData(NAL pNal) { NameAuthorityList myData = new NameAuthorityList(); string storedString = myData.LoadXmlData(pNal); return(storedString); }
public List <T> FillList(NAL pNal) { NameAuthorityList myData = new NameAuthorityList(); string storedString = (myData.LoadXmlData(pNal)); List <T> myList = new List <T>(); int startIndex = 0; bool inSequence = true; while (inSequence == true) { Caption myCaption = getRecord(storedString, "<record ", "</record>", startIndex); int a = storedString.Length; if (myCaption.inSequence == true) { T myT = (T)Activator.CreateInstance(typeof(T), myCaption.sequence); myList.Add(myT); startIndex = myCaption.index; } inSequence = myCaption.inSequence; } return(myList); }