CSMSL.IO.PepXML.PepXmlWriter.PepXmlWriter C# (CSharp) Method

PepXmlWriter() public method

public PepXmlWriter ( string filePath ) : System
filePath string
return System
        public PepXmlWriter(string filePath)
        {
            FilePath = filePath;
            BaseName = Path.GetFileNameWithoutExtension(filePath);

            _writer = new XmlTextWriter(filePath, Encoding.UTF8);
            _writer.Formatting = Formatting.Indented;
            _writer.WriteStartDocument();
            _writer.WriteStartElement("msms_pipeline_analysis");
            _writer.WriteAttributeString("date", DateTime.Now.ToString("s"));
            _writer.WriteAttributeString("summary_xml", filePath);
            _writer.WriteAttributeString("xmlns", "http://regis-web.systembiology.net/pepXML");

            SetCurrentStage(Stage.RunSummary, false);
        }