Esempio n. 1
0
 protected override void OnReadXml(XmlReader aXmlReader, SepaMessageInfo aMessageInfo)
 {
     if (aXmlReader.IsStartElement("BIC"))
     {
         this.m_tBIC = new SepaBIC(aXmlReader.ReadElementString("BIC"));
     }
     if (aXmlReader.IsStartElement("ClrSysMmbId"))
     {
         aXmlReader.ReadStartElement();
         if (aXmlReader.IsStartElement("ClrSysId"))
         {
             aXmlReader.Skip();
         }
         this.m_sClrSysMmbId = aXmlReader.ReadElementString("MmbId");
         aXmlReader.ReadEndElement();
     }
     if (aXmlReader.IsStartElement("Nm"))
     {
         this.m_sNm = aXmlReader.ReadElementString();
     }
     if (aXmlReader.IsStartElement("PstlAdr"))
     {
         aXmlReader.Skip();
     }
     if (aXmlReader.IsStartElement("Othr"))
     {
         this.m_sVatId = SepaUtil.ReadOthrId(aXmlReader, "UmsStId");
     }
 }
 protected override void OnReadXml(XmlReader aXmlReader, SepaMessageInfo aMessageInfo)
 {
     if (aXmlReader.IsStartElement("Nm"))
     {
         this.m_sNm = aXmlReader.ReadElementString();
     }
     if (aXmlReader.IsStartElement("PstlAdr"))
     {
         aXmlReader.Skip();
     }
     if (aXmlReader.IsStartElement("Id"))
     {
         aXmlReader.ReadStartElement();
         if (aXmlReader.IsStartElement("OrgId"))
         {
             if (aXmlReader.IsEmptyElement)
             {
                 aXmlReader.Skip();
             }
             else
             {
                 aXmlReader.ReadStartElement();
                 while (aXmlReader.NodeType != XmlNodeType.EndElement)
                 {
                     if (aXmlReader.IsStartElement("BICOrBEI") || aXmlReader.IsStartElement("BkPtyId"))
                     {
                         this.m_tBIC = new SepaBIC(aXmlReader.ReadElementString());
                     }
                     else if (aXmlReader.IsStartElement("Othr"))
                     {
                         this.m_sEBICSPartnerId = SepaUtil.ReadOthrId(aXmlReader, "EBICS");
                     }
                     else
                     {
                         aXmlReader.Skip();
                     }
                 }
                 aXmlReader.ReadEndElement();
             }
         }
         if (aXmlReader.IsStartElement("PrvtId"))
         {
             if (aXmlReader.IsEmptyElement || ((this.m_nSupportedFields & Fields.CdtrId) == Fields.None))
             {
                 aXmlReader.Skip();
             }
             else
             {
                 aXmlReader.ReadStartElement();
                 if (aXmlReader.IsStartElement("DtAndPlcOfBirth"))
                 {
                     aXmlReader.Skip();
                 }
                 if (aXmlReader.IsStartElement("Othr"))
                 {
                     this.m_sCdtrSchmeId = SepaUtil.ReadOthrId(aXmlReader, null);
                 }
                 aXmlReader.ReadEndElement();
             }
         }
         aXmlReader.ReadEndElement();
     }
     while (aXmlReader.NodeType != XmlNodeType.EndElement)
     {
         aXmlReader.Skip();
     }
 }