using System; using System.Collections.Generic; using System.Globalization; using System.Text; using System.Xml; namespace Nikse.SubtitleEdit.Core.SubtitleFormats { public class AdobeAfterEffectsFTME : SubtitleFormat { public override string Extension { get { return ".xml"; } } public override string Name { get { return "Adobe After Effects ft-MarkerExporter"; } } public override bool IsTimeBased { get { return true; } } public override bool IsMine(List lines, string fileName) { var subtitle = new Subtitle(); LoadSubtitle(subtitle, lines, fileName); return subtitle.Paragraphs.Count > 0; } public override string ToText(Subtitle subtitle, string title) { string xmlStructure = @" 1 ".Replace("'", "\""); var xml = new XmlDocument { XmlResolver = null }; xml.LoadXml(xmlStructure); const string innerXml = "