i am try to make Hl7 falt file using 72xsendpipeline i wring following code for header mean MSHsegment but getting error: HeaderInfo = new System.Xml.XmlDocument(); HeaderInfo.LoadXml(System.String.Concat("<ns0:MSH_24_GLO_DEF xmlns:ns0=\"http://microsoft.com/HealthCare/HL7/2X\"><MSH><MSH. 2_EncodingCharacters>^~\\\\&</MSH.2_EncodingCharacters><MSH. 7_DateTimeOfMessage><TS.1>",System.String.Format("{0:yyyyMMddHHmm}",System. DateTime.Now),"</TS.1></MSH.7_DateTimeOfMessage><MSH.9_MessageType><CM_MSG. 0_MessageType>ADT</CM_MSG.0_MessageType><CM_MSG.1_TriggerEvent>A08</CM_MSG. 1_TriggerEvent></MSH.9_MessageType><MSH.11_ProcessingId><PT. 0_ProcessingId>P</PT.0_ProcessingId></MSH.11_ProcessingId><MSH. 12_VersionId><VID.0_VersionId>2.3</VID.0_VersionId></MSH.12_VersionId><MSH. 15_AcceptAcknowledgmentType>AL</MSH.15_AcceptAcknowledgmentType><MSH. 16_ApplicationAcknowledgmentType>NE</MSH. 16_ApplicationAcknowledgmentType></MSH></ns0:MSH_24_GLO_DEF>")); FinalHl7Msg.Header = HeaderInfo; FinalHl7Msg.Body = Hl7_MSG; FinalHl7Msg.Zsegment = ""; FinalHl7Msg(BTAHL7Schemas.MSH1) = 124 ; FinalHl7Msg(BTAHL7Schemas.MSH2) = "^~\\&"; FinalHl7Msg(BTAHL7Schemas.MSH3_1)="HIS"; FinalHl7Msg(BTAHL7Schemas.MSH5_1)="Varian"; FinalHl7Msg(BTAHL7Schemas.ParseError) = false; FinalHl7Msg(BTAHL7Schemas.ZPartPresent) = false; FinalHl7Msg(BTAHL7Schemas.SegmentDelimiter2Char) = true; url:http://www.ureader.com/gp/1202-1.aspx