protected override void OnReadXml(XmlReader aXmlReader, SepaMessageInfo aMessageInfo) { aXmlReader.ReadStartElement("Tp"); aXmlReader.ReadStartElement("CdOrPrtry"); this.m_sTpCd = aXmlReader.ReadElementString("Cd"); aXmlReader.ReadEndElement(); if (aXmlReader.IsStartElement("SubTp")) { aXmlReader.Skip(); } aXmlReader.ReadEndElement(); if (aXmlReader.IsStartElement("CdtLine")) { aXmlReader.Skip(); } this.m_aAmt.ReadXml(aXmlReader, "Amt"); aXmlReader.ReadStartElement("Dt"); this.m_dtDt = SepaUtil.ReadDtOrDtTmXml(aXmlReader); aXmlReader.ReadEndElement(); while (aXmlReader.IsStartElement("Avlbty")) { aXmlReader.Skip(); } }
protected override void OnReadXml(XmlReader aXmlReader, SepaMessageInfo aMessageInfo) { if (aXmlReader.IsStartElement("NtryRef")) { this.m_sNtryRef = aXmlReader.ReadElementString(); } this.m_aAmt.ReadXml(aXmlReader, "Amt"); if (aXmlReader.IsStartElement("RvslInd")) { this.m_fRvslInd = XmlConvert.ToBoolean(aXmlReader.ReadElementString()); } this.m_sSts = aXmlReader.ReadElementString("Sts"); aXmlReader.ReadStartElement("BookgDt"); this.m_dtBookgDt = SepaUtil.ReadDtOrDtTmXml(aXmlReader); aXmlReader.ReadEndElement(); aXmlReader.ReadStartElement("ValDt"); this.m_dtValDt = SepaUtil.ReadDtOrDtTmXml(aXmlReader); aXmlReader.ReadEndElement(); if (aXmlReader.IsStartElement("AcctSvcrRef")) { this.m_sAcctSvcrRef = aXmlReader.ReadElementString(); } while (aXmlReader.IsStartElement("Avlbty")) { aXmlReader.Skip(); } if (aXmlReader.IsStartElement("BkTxCd")) { this.m_sBkTxCd = SepaUtil.ReadBkTxCd(aXmlReader, out this.m_sBkTxCdIssr); } if (aXmlReader.IsStartElement("ComssnWvrInd")) { aXmlReader.Skip(); } if (aXmlReader.IsStartElement("AddtlInfInd")) { aXmlReader.ReadStartElement(); if (aXmlReader.IsStartElement("MsgNmId")) { this.m_sAddtlInfIndMsgNmId = aXmlReader.ReadElementString(); } if (aXmlReader.IsStartElement("MsgId")) { this.m_sAddtlInfIndMsgId = aXmlReader.ReadElementString(); } aXmlReader.ReadEndElement(); } if (aXmlReader.IsStartElement("AmtDtls")) { aXmlReader.Skip(); } while (aXmlReader.IsStartElement("Chrgs")) { aXmlReader.Skip(); } if (aXmlReader.IsStartElement("TechInptChanl")) { aXmlReader.Skip(); } while (aXmlReader.IsStartElement("Intrst")) { aXmlReader.Skip(); } if (aXmlReader.IsStartElement("NtryDtls")) { aXmlReader.ReadStartElement(); if (aXmlReader.IsStartElement("Btch")) { if (aXmlReader.IsEmptyElement) { aXmlReader.Skip(); } else { aXmlReader.ReadStartElement(); while (aXmlReader.IsStartElement()) { if (aXmlReader.LocalName == "PmtInfId") { this.m_sBtchPmtInfId = aXmlReader.ReadElementString(); } else { aXmlReader.Skip(); } } aXmlReader.ReadEndElement(); } } while (aXmlReader.IsStartElement("TxDtls")) { SepaTransactionDetails item = new SepaTransactionDetails(); item.ReadXml(aXmlReader, aMessageInfo); this.m_vTxDtls.Add(item); } aXmlReader.ReadEndElement(); } if (aXmlReader.IsStartElement("AddtlNtryInf")) { this.m_sAddtlNtryInf = aXmlReader.ReadElementString(); } }