private void RecordHistory() { try { if (this.PresentationXML != null) { if (this.PresentationXML.SelectSingleNode("Presentation/@PresentationClass").Value.ToLower() == "profile") { UserHistory uh = new UserHistory(); HistoryItem hi; List <string> types = new List <string>(); foreach (XmlNode x in this.RDFData.SelectNodes("rdf:RDF/rdf:Description[1]/rdf:type/@rdf:resource", this.Namespaces)) { if (this.RDFData.SelectSingleNode("rdf:RDF/rdf:Description[@rdf:about='" + x.Value + "']/rdfs:label", this.Namespaces) != null) { types.Add(this.RDFData.SelectSingleNode("rdf:RDF/rdf:Description[@rdf:about='" + x.Value + "']/rdfs:label", this.Namespaces).InnerText); } else { string[] s = x.Value.Split('/'); types.Add(s[s.Length - 1]); } } if (this.RDFData.SelectSingleNode("rdf:RDF/rdf:Description/rdfs:label", this.Namespaces) != null) { hi = new HistoryItem(this.RDFData.SelectSingleNode("rdf:RDF/rdf:Description/rdfs:label", this.Namespaces).InnerText, RDFData.SelectSingleNode("rdf:RDF/rdf:Description/@rdf:about", this.Namespaces).Value , types); uh.LoadItem(hi); } } } } catch (Exception ex) { Framework.Utilities.DebugLogging.Log(ex.Message + " " + ex.InnerException.Message); } }