private void BuildXml(List <Document> docs, string xmlFilepath, InvoiceType invType) { if (invType.Equals(InvoiceType.Special) || invType.Equals(InvoiceType.Common)) { BuildXmlForSpecialAndCommon(docs, xmlFilepath); } if (invType.Equals(InvoiceType.Electric)) { BuildXmlForElectric(docs, xmlFilepath); } }