Example #1
0
        public static JournalHead Behead(ArkadeFile journalXmlFile)
        {
            var xmlTextReader = new XmlTextReader(journalXmlFile.FullName)
            {
                Namespaces = false
            };

            while (!xmlTextReader.Name.Equals("journalhode"))
            {
                xmlTextReader.Read();
            }

            string journalHeadXml = xmlTextReader.ReadOuterXml();

            xmlTextReader.Close();

            JournalHead journalHead = SerializeUtil.DeserializeFromString <JournalHead>(journalHeadXml);

            return(journalHead);
        }
Example #2
0
 public static T DeserializeFromFile <T>(ArkadeFile arkadeFile)
 {
     return(DeserializeFromFile <T>(arkadeFile.FullName));
 }