<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2023 Workiva-->
<!--r:f7984806-928c-4319-9d3e-e2a20b3c12d2,g:1fdde3eb-9cb5-442b-9f14-b120d51f42d9-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:cswc="http://www.capitalsouthwest.com/20230930" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:dtr-types1="http://www.xbrl.org/dtr/type/2020-01-21" xmlns:dtr-types="http://www.xbrl.org/dtr/type/2022-03-31" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.capitalsouthwest.com/20230930">
  <xs:import namespace="http://fasb.org/srt/2023" schemaLocation="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd"/>
  <xs:import namespace="http://fasb.org/us-gaap/2023" schemaLocation="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd"/>
  <xs:import namespace="http://www.w3.org/1999/xlink" schemaLocation="http://www.xbrl.org/2003/xlink-2003-12-31.xsd"/>
  <xs:import namespace="http://www.xbrl.org/2003/instance" schemaLocation="http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"/>
  <xs:import namespace="http://www.xbrl.org/2003/linkbase" schemaLocation="http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd"/>
  <xs:import namespace="http://www.xbrl.org/dtr/type/2020-01-21" schemaLocation="https://www.xbrl.org/dtr/type/2020-01-21/types.xsd"/>
  <xs:import namespace="http://www.xbrl.org/dtr/type/2022-03-31" schemaLocation="https://www.xbrl.org/dtr/type/2022-03-31/types.xsd"/>
  <xs:import namespace="http://xbrl.org/2005/xbrldt" schemaLocation="http://www.xbrl.org/2005/xbrldt-2005.xsd"/>
  <xs:import namespace="http://xbrl.org/2006/xbrldi" schemaLocation="http://www.xbrl.org/2006/xbrldi-2006.xsd"/>
  <xs:import namespace="http://xbrl.sec.gov/cef-pre/2023" schemaLocation="https://xbrl.sec.gov/cef/2023/cef-2023_pre.xsd"/>
  <xs:import namespace="http://xbrl.sec.gov/dei/2023" schemaLocation="https://xbrl.sec.gov/dei/2023/dei-2023.xsd"/>
  <xs:import namespace="http://xbrl.sec.gov/ecd/2023" schemaLocation="https://xbrl.sec.gov/ecd/2023/ecd-2023.xsd"/>
  <xs:annotation>
    <xs:appinfo>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="cswc-20230930_lab.xml" xlink:role="http://www.xbrl.org/2003/role/labelLinkbaseRef" xlink:type="simple"/>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="cswc-20230930_pre.xml" xlink:role="http://www.xbrl.org/2003/role/presentationLinkbaseRef" xlink:type="simple"/>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="cswc-20230930_cal.xml" xlink:role="http://www.xbrl.org/2003/role/calculationLinkbaseRef" xlink:type="simple"/>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="cswc-20230930_def.xml" xlink:role="http://www.xbrl.org/2003/role/definitionLinkbaseRef" xlink:type="simple"/>
      <link:roleType id="Cover" roleURI="http://www.capitalsouthwest.com/role/Cover">
        <link:definition>0000001 - Document - Cover</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONSOLIDATEDSTATEMENTSOFASSETSANDLIABILITIES" roleURI="http://www.capitalsouthwest.com/role/CONSOLIDATEDSTATEMENTSOFASSETSANDLIABILITIES">
        <link:definition>0000002 - Statement - CONSOLIDATED STATEMENTS OF ASSETS AND LIABILITIES</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONSOLIDATEDSTATEMENTSOFASSETSANDLIABILITIESParenthetical" roleURI="http://www.capitalsouthwest.com/role/CONSOLIDATEDSTATEMENTSOFASSETSANDLIABILITIESParenthetical">
        <link:definition>0000003 - Statement - CONSOLIDATED STATEMENTS OF ASSETS AND LIABILITIES (Parenthetical)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONSOLIDATEDSTATEMENTSOFOPERATIONS" roleURI="http://www.capitalsouthwest.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONS">
        <link:definition>0000004 - Statement - CONSOLIDATED STATEMENTS OF OPERATIONS</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONSOLIDATEDSTATEMENTSOFCHANGESINNETASSETS" roleURI="http://www.capitalsouthwest.com/role/CONSOLIDATEDSTATEMENTSOFCHANGESINNETASSETS">
        <link:definition>0000005 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN NET ASSETS</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONSOLIDATEDSTATEMENTSOFCASHFLOWS" roleURI="http://www.capitalsouthwest.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS">
        <link:definition>0000006 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONSOLIDATEDSCHEDULEOFINVESTMENTS" roleURI="http://www.capitalsouthwest.com/role/CONSOLIDATEDSCHEDULEOFINVESTMENTS">
        <link:definition>0000007 - Statement - CONSOLIDATED SCHEDULE OF INVESTMENTS</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONSOLIDATEDSCHEDULEOFINVESTMENTS_1" roleURI="http://www.capitalsouthwest.com/role/CONSOLIDATEDSCHEDULEOFINVESTMENTS_1">
        <link:definition>0000007 - Statement - CONSOLIDATED SCHEDULE OF INVESTMENTS</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONSOLIDATEDSCHEDULEOFINVESTMENTSParenthetical" roleURI="http://www.capitalsouthwest.com/role/CONSOLIDATEDSCHEDULEOFINVESTMENTSParenthetical">
        <link:definition>0000008 - Statement - CONSOLIDATED SCHEDULE OF INVESTMENTS (Parenthetical)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONSOLIDATEDSCHEDULEOFINVESTMENTSParenthetical_1" roleURI="http://www.capitalsouthwest.com/role/CONSOLIDATEDSCHEDULEOFINVESTMENTSParenthetical_1">
        <link:definition>0000008 - Statement - CONSOLIDATED SCHEDULE OF INVESTMENTS (Parenthetical)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalFootnotes" roleURI="http://www.capitalsouthwest.com/role/CONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalFootnotes">
        <link:definition>0000009 - Statement - CONSOLIDATED SCHEDULE OF INVESTMENTS (Parenthetical Footnotes)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ORGANIZATIONANDBASISOFPRESENTATION" roleURI="http://www.capitalsouthwest.com/role/ORGANIZATIONANDBASISOFPRESENTATION">
        <link:definition>0000010 - Disclosure - ORGANIZATION AND BASIS OF PRESENTATION</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIES" roleURI="http://www.capitalsouthwest.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIES">
        <link:definition>0000011 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="INVESTMENTS" roleURI="http://www.capitalsouthwest.com/role/INVESTMENTS">
        <link:definition>0000012 - Disclosure - INVESTMENTS</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FAIRVALUEMEASUREMENTS" roleURI="http://www.capitalsouthwest.com/role/FAIRVALUEMEASUREMENTS">
        <link:definition>0000013 - Disclosure - FAIR VALUE MEASUREMENTS</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BORROWINGS" roleURI="http://www.capitalsouthwest.com/role/BORROWINGS">
        <link:definition>0000014 - Disclosure - BORROWINGS</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="INCOMETAXES" roleURI="http://www.capitalsouthwest.com/role/INCOMETAXES">
        <link:definition>0000015 - Disclosure - INCOME TAXES</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SHAREHOLDERSEQUITY" roleURI="http://www.capitalsouthwest.com/role/SHAREHOLDERSEQUITY">
        <link:definition>0000016 - Disclosure - SHAREHOLDERS' EQUITY</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="STOCKBASEDCOMPENSATIONPLANS" roleURI="http://www.capitalsouthwest.com/role/STOCKBASEDCOMPENSATIONPLANS">
        <link:definition>0000017 - Disclosure - STOCK BASED COMPENSATION PLANS</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="OTHEREMPLOYEECOMPENSATION" roleURI="http://www.capitalsouthwest.com/role/OTHEREMPLOYEECOMPENSATION">
        <link:definition>0000018 - Disclosure - OTHER EMPLOYEE COMPENSATION</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="COMMITMENTSANDCONTINGENCIES" roleURI="http://www.capitalsouthwest.com/role/COMMITMENTSANDCONTINGENCIES">
        <link:definition>0000019 - Disclosure - COMMITMENTS AND CONTINGENCIES</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RELATEDPARTYTRANSACTIONS" roleURI="http://www.capitalsouthwest.com/role/RELATEDPARTYTRANSACTIONS">
        <link:definition>0000020 - Disclosure - RELATED PARTY TRANSACTIONS</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SUMMARYOFPERSHAREINFORMATION" roleURI="http://www.capitalsouthwest.com/role/SUMMARYOFPERSHAREINFORMATION">
        <link:definition>0000021 - Disclosure - SUMMARY OF PER SHARE INFORMATION</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SUBSEQUENTEVENTS" roleURI="http://www.capitalsouthwest.com/role/SUBSEQUENTEVENTS">
        <link:definition>0000022 - Disclosure - SUBSEQUENT EVENTS</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ScheduleofInvestmentsinandAdvancestoAffiliates" roleURI="http://www.capitalsouthwest.com/role/ScheduleofInvestmentsinandAdvancestoAffiliates">
        <link:definition>0000023 - Disclosure - Schedule of Investments in and Advances to Affiliates</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies" roleURI="http://www.capitalsouthwest.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies">
        <link:definition>9954701 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Policies)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="INVESTMENTSTables" roleURI="http://www.capitalsouthwest.com/role/INVESTMENTSTables">
        <link:definition>9954702 - Disclosure - INVESTMENTS (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FAIRVALUEMEASUREMENTSTables" roleURI="http://www.capitalsouthwest.com/role/FAIRVALUEMEASUREMENTSTables">
        <link:definition>9954703 - Disclosure - FAIR VALUE MEASUREMENTS (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BORROWINGSTables" roleURI="http://www.capitalsouthwest.com/role/BORROWINGSTables">
        <link:definition>9954704 - Disclosure - BORROWINGS (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="INCOMETAXESTables" roleURI="http://www.capitalsouthwest.com/role/INCOMETAXESTables">
        <link:definition>9954705 - Disclosure - INCOME TAXES (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SHAREHOLDERSEQUITYTables" roleURI="http://www.capitalsouthwest.com/role/SHAREHOLDERSEQUITYTables">
        <link:definition>9954706 - Disclosure - SHAREHOLDERS' EQUITY (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="STOCKBASEDCOMPENSATIONPLANSTables" roleURI="http://www.capitalsouthwest.com/role/STOCKBASEDCOMPENSATIONPLANSTables">
        <link:definition>9954707 - Disclosure - STOCK BASED COMPENSATION PLANS (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="COMMITMENTSANDCONTINGENCIESTables" roleURI="http://www.capitalsouthwest.com/role/COMMITMENTSANDCONTINGENCIESTables">
        <link:definition>9954708 - Disclosure - COMMITMENTS AND CONTINGENCIES (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SUMMARYOFPERSHAREINFORMATIONTables" roleURI="http://www.capitalsouthwest.com/role/SUMMARYOFPERSHAREINFORMATIONTables">
        <link:definition>9954709 - Disclosure - SUMMARY OF PER SHARE INFORMATION (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ScheduleofInvestmentsinandAdvancestoAffiliatesTables" roleURI="http://www.capitalsouthwest.com/role/ScheduleofInvestmentsinandAdvancestoAffiliatesTables">
        <link:definition>9954710 - Disclosure - Schedule of Investments in and Advances to Affiliates (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ORGANIZATIONANDBASISOFPRESENTATIONDetails" roleURI="http://www.capitalsouthwest.com/role/ORGANIZATIONANDBASISOFPRESENTATIONDetails">
        <link:definition>9954711 - Disclosure - ORGANIZATION AND BASIS OF PRESENTATION (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESDetails" roleURI="http://www.capitalsouthwest.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESDetails">
        <link:definition>9954712 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="INVESTMENTSInvestmentPortfolioatFairValueandCostDetails" roleURI="http://www.capitalsouthwest.com/role/INVESTMENTSInvestmentPortfolioatFairValueandCostDetails">
        <link:definition>9954713 - Disclosure - INVESTMENTS - Investment Portfolio, at Fair Value and Cost (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FAIRVALUEMEASUREMENTSNarrativeDetails" roleURI="http://www.capitalsouthwest.com/role/FAIRVALUEMEASUREMENTSNarrativeDetails">
        <link:definition>9954714 - Disclosure - FAIR VALUE MEASUREMENTS - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FAIRVALUEMEASUREMENTSScheduleInvestmentPortfoliobyLevelDetails" roleURI="http://www.capitalsouthwest.com/role/FAIRVALUEMEASUREMENTSScheduleInvestmentPortfoliobyLevelDetails">
        <link:definition>9954715 - Disclosure - FAIR VALUE MEASUREMENTS - Schedule Investment Portfolio by Level (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FAIRVALUEMEASUREMENTSMeasurementInputsandValuationTechniquesDetails" roleURI="http://www.capitalsouthwest.com/role/FAIRVALUEMEASUREMENTSMeasurementInputsandValuationTechniquesDetails">
        <link:definition>9954716 - Disclosure - FAIR VALUE MEASUREMENTS - Measurement Inputs and Valuation Techniques (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FAIRVALUEMEASUREMENTSScheduleofChangesinFairValueofInvestmentsMeasuredUsingLevel3InputsDetails" roleURI="http://www.capitalsouthwest.com/role/FAIRVALUEMEASUREMENTSScheduleofChangesinFairValueofInvestmentsMeasuredUsingLevel3InputsDetails">
        <link:definition>9954717 - Disclosure - FAIR VALUE MEASUREMENTS - Schedule of Changes in Fair Value of Investments Measured Using Level 3 Inputs (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BORROWINGSNarrativeDetails" roleURI="http://www.capitalsouthwest.com/role/BORROWINGSNarrativeDetails">
        <link:definition>9954718 - Disclosure - BORROWINGS - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BORROWINGSScheduleofBorrowingsOutstandingDetails" roleURI="http://www.capitalsouthwest.com/role/BORROWINGSScheduleofBorrowingsOutstandingDetails">
        <link:definition>9954719 - Disclosure - BORROWINGS - Schedule of Borrowings Outstanding (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BORROWINGSScheduleofIssuedandOutstandingSBADebenturesDetails" roleURI="http://www.capitalsouthwest.com/role/BORROWINGSScheduleofIssuedandOutstandingSBADebenturesDetails">
        <link:definition>9954720 - Disclosure - BORROWINGS - Schedule of Issued and Outstanding SBA Debentures (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="INCOMETAXESNarrativeDetails" roleURI="http://www.capitalsouthwest.com/role/INCOMETAXESNarrativeDetails">
        <link:definition>9954721 - Disclosure - INCOME TAXES - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="INCOMETAXESNetAssetsResultingFromOperationsToEstimatedRICTaxableIncomeDetails" roleURI="http://www.capitalsouthwest.com/role/INCOMETAXESNetAssetsResultingFromOperationsToEstimatedRICTaxableIncomeDetails">
        <link:definition>9954722 - Disclosure - INCOME TAXES - Net Assets Resulting From Operations To Estimated RIC Taxable Income (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="INCOMETAXESDeferredTaxAssetsAndLiabilitiesDetails" roleURI="http://www.capitalsouthwest.com/role/INCOMETAXESDeferredTaxAssetsAndLiabilitiesDetails">
        <link:definition>9954723 - Disclosure - INCOME TAXES - Deferred Tax Assets And Liabilities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SHAREHOLDERSEQUITYNarrativeDetails" roleURI="http://www.capitalsouthwest.com/role/SHAREHOLDERSEQUITYNarrativeDetails">
        <link:definition>9954724 - Disclosure - SHAREHOLDERS' EQUITY - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SHAREHOLDERSEQUITYScheduleofSharesSoldDetails" roleURI="http://www.capitalsouthwest.com/role/SHAREHOLDERSEQUITYScheduleofSharesSoldDetails">
        <link:definition>9954725 - Disclosure - SHAREHOLDERS' EQUITY - Schedule of Shares Sold (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SHAREHOLDERSEQUITYSharesRepurchasedInConnectionWithTheVestingOfRestrictedStockAwardsDetails" roleURI="http://www.capitalsouthwest.com/role/SHAREHOLDERSEQUITYSharesRepurchasedInConnectionWithTheVestingOfRestrictedStockAwardsDetails">
        <link:definition>9954726 - Disclosure - SHAREHOLDERS' EQUITY - Shares Repurchased In Connection With The Vesting Of Restricted Stock Awards (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="STOCKBASEDCOMPENSATIONPLANSNarrativeDetails" roleURI="http://www.capitalsouthwest.com/role/STOCKBASEDCOMPENSATIONPLANSNarrativeDetails">
        <link:definition>9954727 - Disclosure - STOCK BASED COMPENSATION PLANS - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="STOCKBASEDCOMPENSATIONPLANSScheduleofRestrictedStockOutstandingDetails" roleURI="http://www.capitalsouthwest.com/role/STOCKBASEDCOMPENSATIONPLANSScheduleofRestrictedStockOutstandingDetails">
        <link:definition>9954728 - Disclosure - STOCK BASED COMPENSATION PLANS - Schedule of Restricted Stock Outstanding (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="OTHEREMPLOYEECOMPENSATIONDetails" roleURI="http://www.capitalsouthwest.com/role/OTHEREMPLOYEECOMPENSATIONDetails">
        <link:definition>9954729 - Disclosure - OTHER EMPLOYEE COMPENSATION (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="COMMITMENTSANDCONTINGENCIESUnusedCommitmentsDetails" roleURI="http://www.capitalsouthwest.com/role/COMMITMENTSANDCONTINGENCIESUnusedCommitmentsDetails">
        <link:definition>9954730 - Disclosure - COMMITMENTS AND CONTINGENCIES - Unused Commitments (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="COMMITMENTSANDCONTINGENCIESUnusedCommitmentsDetails_1" roleURI="http://www.capitalsouthwest.com/role/COMMITMENTSANDCONTINGENCIESUnusedCommitmentsDetails_1">
        <link:definition>9954730 - Disclosure - COMMITMENTS AND CONTINGENCIES - Unused Commitments (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="COMMITMENTSANDCONTINGENCIESUnfundedDebtCommitmentsDetails" roleURI="http://www.capitalsouthwest.com/role/COMMITMENTSANDCONTINGENCIESUnfundedDebtCommitmentsDetails">
        <link:definition>9954731 - Disclosure - COMMITMENTS AND CONTINGENCIES - Unfunded Debt Commitments (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="COMMITMENTSANDCONTINGENCIESNarrativeDetails" roleURI="http://www.capitalsouthwest.com/role/COMMITMENTSANDCONTINGENCIESNarrativeDetails">
        <link:definition>9954732 - Disclosure - COMMITMENTS AND CONTINGENCIES - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="COMMITMENTSANDCONTINGENCIESFutureMinimumPaymentsDetails" roleURI="http://www.capitalsouthwest.com/role/COMMITMENTSANDCONTINGENCIESFutureMinimumPaymentsDetails">
        <link:definition>9954733 - Disclosure - COMMITMENTS AND CONTINGENCIES - Future Minimum Payments (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RELATEDPARTYTRANSACTIONSDetails" roleURI="http://www.capitalsouthwest.com/role/RELATEDPARTYTRANSACTIONSDetails">
        <link:definition>9954734 - Disclosure - RELATED PARTY TRANSACTIONS (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SUMMARYOFPERSHAREINFORMATIONDetails" roleURI="http://www.capitalsouthwest.com/role/SUMMARYOFPERSHAREINFORMATIONDetails">
        <link:definition>9954735 - Disclosure - SUMMARY OF PER SHARE INFORMATION (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SUBSEQUENTEVENTSDetails" roleURI="http://www.capitalsouthwest.com/role/SUBSEQUENTEVENTSDetails">
        <link:definition>9954736 - Disclosure - SUBSEQUENT EVENTS (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ScheduleofInvestmentsinandAdvancestoAffiliatesDetails" roleURI="http://www.capitalsouthwest.com/role/ScheduleofInvestmentsinandAdvancestoAffiliatesDetails">
        <link:definition>9954737 - Disclosure - Schedule of Investments in and Advances to Affiliates (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ScheduleofInvestmentsinandAdvancestoAffiliatesDetails_1" roleURI="http://www.capitalsouthwest.com/role/ScheduleofInvestmentsinandAdvancestoAffiliatesDetails_1">
        <link:definition>9954737 - Disclosure - Schedule of Investments in and Advances to Affiliates (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
    </xs:appinfo>
  </xs:annotation>
  <xs:element id="cswc_InvestmentCompanyInvestmentOwnedNonQualifiedAssetsPercentOfNetAssets" abstract="false" name="InvestmentCompanyInvestmentOwnedNonQualifiedAssetsPercentOfNetAssets" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="cswc_InvestmentCompanyTaxBasisReconciliationNetOperatingIncomeSubsidiaryIncreaseDecreaseInTaxableIncome" abstract="false" name="InvestmentCompanyTaxBasisReconciliationNetOperatingIncomeSubsidiaryIncreaseDecreaseInTaxableIncome" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_ISIEnterprisesLLCMember" abstract="true" name="ISIEnterprisesLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_NonEmployeeDirectorPlanMember" abstract="true" name="NonEmployeeDirectorPlanMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_ExpirationTrancheTwoMember" abstract="true" name="ExpirationTrancheTwoMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_TelecommunicationsSectorMember" abstract="true" name="TelecommunicationsSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentCompanyDistributableEarningsLossBeforeDeductions" abstract="false" name="InvestmentCompanyDistributableEarningsLossBeforeDeductions" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_InfolinksMediaBuycoLLCMember" abstract="true" name="InfolinksMediaBuycoLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentCompanyTaxBasisReconciliationInterestOnNonAccrualLoansIncreaseDecreaseInTaxableIncome" abstract="false" name="InvestmentCompanyTaxBasisReconciliationInterestOnNonAccrualLoansIncreaseDecreaseInTaxableIncome" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_PaymentInKindInterestAccrued" abstract="false" name="PaymentInKindInterestAccrued" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_DebtInstrumentCovenantRegulatoryAssetCoverageRatioMinimum" abstract="false" name="DebtInstrumentCovenantRegulatoryAssetCoverageRatioMinimum" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:pureItemType"/>
  <xs:element id="cswc_August2028NotesMember" abstract="true" name="August2028NotesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_MediaAndMarketingSectorMember" abstract="true" name="MediaAndMarketingSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_MERCURYACQUISITION2021LLCDBATELETOWNHALLMember" abstract="true" name="MERCURYACQUISITION2021LLCDBATELETOWNHALLMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_GulfPacificAcquisitionLLCMember" abstract="true" name="GulfPacificAcquisitionLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentCompanyRatioToAverageNetAssetsAndSupplementalDataAbstract" abstract="true" name="InvestmentCompanyRatioToAverageNetAssetsAndSupplementalDataAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="cswc_RevenueRecognitionFeeIncomePolicyPolicyTextBlock" abstract="false" name="RevenueRecognitionFeeIncomePolicyPolicyTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="cswc_January2026NotesMember" abstract="true" name="January2026NotesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentCompanyCommonStockWithheldForPayrollTaxesUponVestingOfRestrictedStockPerShare" abstract="false" name="InvestmentCompanyCommonStockWithheldForPayrollTaxesUponVestingOfRestrictedStockPerShare" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:perShareItemType"/>
  <xs:element id="cswc_SPECTRUMOFHOPELLCMember" abstract="true" name="SPECTRUMOFHOPELLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_CMCONVEYORINCMember" abstract="true" name="CMCONVEYORINCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_HealthcareProductsSectorMember" abstract="true" name="HealthcareProductsSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_ITAHoldingsGroupLLCMember" abstract="true" name="ITAHoldingsGroupLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentsInAndAdvancesToAffiliatesAtFairValueUnrealizedChangeInFairValue" abstract="false" name="InvestmentsInAndAdvancesToAffiliatesAtFairValueUnrealizedChangeInFairValue" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPaidInKindInterestCapitalized" abstract="false" name="FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPaidInKindInterestCapitalized" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_RegulatoryCapital" abstract="false" name="RegulatoryCapital" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_ProceedsFromDispositionOfInvestmentEquitySecuritiesOperatingActivity" abstract="false" name="ProceedsFromDispositionOfInvestmentEquitySecuritiesOperatingActivity" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_A360QuoteTopCoLLCMember" abstract="true" name="A360QuoteTopCoLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_MakoSteelLPMember" abstract="true" name="MakoSteelLPMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_FSVECTORLLCMember" abstract="true" name="FSVECTORLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_DebtInstrumentLeverageCommitmentAmount" abstract="false" name="DebtInstrumentLeverageCommitmentAmount" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_InvestmentCompanyTaxBasisReconciliationNonDeductibleCompensationIncreaseDecreaseInTaxableIncome" abstract="false" name="InvestmentCompanyTaxBasisReconciliationNonDeductibleCompensationIncreaseDecreaseInTaxableIncome" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_CityVetIncMember" abstract="true" name="CityVetIncMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_MuensterMillingCompanyLLCMember" abstract="true" name="MuensterMillingCompanyLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_IndustrialServicesSectorMember" abstract="true" name="IndustrialServicesSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentIncomeNoncashInterestPercent" abstract="false" name="InvestmentIncomeNoncashInterestPercent" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="cswc_InvestmentCompanyInvestmentIncomeLossTaxesPerShare" abstract="false" name="InvestmentCompanyInvestmentIncomeLossTaxesPerShare" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:perShareItemType"/>
  <xs:element id="cswc_SupplementalDividendMember" abstract="true" name="SupplementalDividendMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_AirConditioningSpecialistIncMember" abstract="true" name="AirConditioningSpecialistIncMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_UnsecuredConvertibleNotesMember" abstract="true" name="UnsecuredConvertibleNotesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_EquityATMProgramMember" abstract="true" name="EquityATMProgramMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_LineOfCreditFacilityAccordionFeatureIncreaseLimit" abstract="false" name="LineOfCreditFacilityAccordionFeatureIncreaseLimit" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_LightingRetrofitInternationalLLCDBAEnvocoreMember" abstract="true" name="LightingRetrofitInternationalLLCDBAEnvocoreMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_MicrobeFormulasLLCMember" abstract="true" name="MicrobeFormulasLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_HEATTRAKLLCMember" abstract="true" name="HEATTRAKLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_TreasuryStockSharesCancelled" abstract="false" name="TreasuryStockSharesCancelled" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:sharesItemType"/>
  <xs:element id="cswc_OpcoBorrowerLLCDBAGivingHomeHealthCareMember" abstract="true" name="OpcoBorrowerLLCDBAGivingHomeHealthCareMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentCompanyAccretiveEffectOfShareIssuancesAndRepurchasesPerShare" abstract="false" name="InvestmentCompanyAccretiveEffectOfShareIssuancesAndRepurchasesPerShare" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:perShareItemType"/>
  <xs:element id="cswc_DiverseSetOfGeographicRegionsMember" abstract="true" name="DiverseSetOfGeographicRegionsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_TreasuryStockValueCancelled" abstract="false" name="TreasuryStockValueCancelled" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_ISLANDPUMPANDTANKLLCMember" abstract="true" name="ISLANDPUMPANDTANKLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_FinancialCommitmentRemainderOfFiscalYearMember" abstract="true" name="FinancialCommitmentRemainderOfFiscalYearMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_InvestmentCompanyTaxBasisReconciliationLossOnExtinguishmentOfDebtIncreaseDecreaseInTaxableIncome" abstract="false" name="InvestmentCompanyTaxBasisReconciliationLossOnExtinguishmentOfDebtIncreaseDecreaseInTaxableIncome" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_UnusedCommitmentsToLendOtherMember" abstract="true" name="UnusedCommitmentsToLendOtherMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_SecondLienLoansSplitLienTermLoansMember" abstract="true" name="SecondLienLoansSplitLienTermLoansMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentCompanyShareBasedCompensationExpensePerShare" abstract="false" name="InvestmentCompanyShareBasedCompensationExpensePerShare" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:perShareItemType"/>
  <xs:element id="cswc_NumberOfInvestmentsPaidInKindInterestNonaccrual" abstract="false" name="NumberOfInvestmentsPaidInKindInterestNonaccrual" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="cswc_InvestmentsInAndAdvancesToAffiliatesAtFairValueRealizedChangeInFairValue" abstract="false" name="InvestmentsInAndAdvancesToAffiliatesAtFairValueRealizedChangeInFairValue" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_SaleOfStockWeightedAveragePricePerShare" abstract="false" name="SaleOfStockWeightedAveragePricePerShare" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:perShareItemType"/>
  <xs:element id="cswc_GrammaTechIncMember" abstract="true" name="GrammaTechIncMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentCompanyNetInvestmentIncomeBeforeTaxesPerDilutedShare" abstract="false" name="InvestmentCompanyNetInvestmentIncomeBeforeTaxesPerDilutedShare" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:perShareItemType"/>
  <xs:element id="cswc_InvestmentCompanyInvestmentIncomeLossGrossPerShare" abstract="false" name="InvestmentCompanyInvestmentIncomeLossGrossPerShare" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:perShareItemType"/>
  <xs:element id="cswc_GUARDIANFLEETSERVICESINCMember" abstract="true" name="GUARDIANFLEETSERVICESINCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_STATINMEDLLCMember" abstract="true" name="STATINMEDLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_AmericanTeleconferencingServicesLtdDBAPremiereGlobalServicesIncMember" abstract="true" name="AmericanTeleconferencingServicesLtdDBAPremiereGlobalServicesIncMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_DebtInstrumentYieldToMaturityAtIssuance" abstract="false" name="DebtInstrumentYieldToMaturityAtIssuance" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="cswc_SaleOfStockGrossSalesPriceCommissionPercentage" abstract="false" name="SaleOfStockGrossSalesPriceCommissionPercentage" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="cswc_SCRIPINCMember" abstract="true" name="SCRIPINCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_ACACIABUYERCOVLLCMember" abstract="true" name="ACACIABUYERCOVLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentCompanyExtinguishmentOfDebtGainLossPerShareNetOfTax" abstract="false" name="InvestmentCompanyExtinguishmentOfDebtGainLossPerShareNetOfTax" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:perShareItemType"/>
  <xs:element id="cswc_RoselandManagementLLCMember" abstract="true" name="RoselandManagementLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_August2028NotesOverallotmentMember" abstract="true" name="August2028NotesOverallotmentMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_FirstLienLoansSplitLienTermLoansMember" abstract="true" name="FirstLienLoansSplitLienTermLoansMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_FinancialCommitmentYearFiveMember" abstract="true" name="FinancialCommitmentYearFiveMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_ZipsCarWashLLCMember" abstract="true" name="ZipsCarWashLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_AccruedRestorationPlanLiability" abstract="false" name="AccruedRestorationPlanLiability" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetConversionOrReclassificationOfSecurity" abstract="false" name="FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetConversionOrReclassificationOfSecurity" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_RTICSubsidiaryHoldingsLLCMember" abstract="true" name="RTICSubsidiaryHoldingsLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_WinterServicesOperationsLLCMember" abstract="true" name="WinterServicesOperationsLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_ValuationEnterpriseValueWaterfallApproachMember" abstract="true" name="ValuationEnterpriseValueWaterfallApproachMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_NWNParentHoldingsLLCMember" abstract="true" name="NWNParentHoldingsLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_EnergyServicesMidstreamSectorMember" abstract="true" name="EnergyServicesMidstreamSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_AerospaceAndDefenseSectorMember" abstract="true" name="AerospaceAndDefenseSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_CAVALIERBUYERINCMember" abstract="true" name="CAVALIERBUYERINCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_TRAFERALLCFKATRINITY3LLCTRAFERALLCFKATRINITY3LLCMember" abstract="true" name="TRAFERALLCFKATRINITY3LLCTRAFERALLCFKATRINITY3LLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_SIBHoldingsLLCMember" abstract="true" name="SIBHoldingsLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_A2010PlanMember" abstract="true" name="A2010PlanMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_SmallBusinessAdministrationDebenturesDueMarch2033Member" abstract="true" name="SmallBusinessAdministrationDebenturesDueMarch2033Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_StudentResourceCenterLLCMember" abstract="true" name="StudentResourceCenterLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_FinancialCommitmentYearFourMember" abstract="true" name="FinancialCommitmentYearFourMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentCompanyNetUnrealizedDepreciationAppreciationOnInvestmentsNetOfTaxPerShare" abstract="false" name="InvestmentCompanyNetUnrealizedDepreciationAppreciationOnInvestmentsNetOfTaxPerShare" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:perShareItemType"/>
  <xs:element id="cswc_NEWSKINNYMIXESLLCMember" abstract="true" name="NEWSKINNYMIXESLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentIncomePaidInKindInterestPercent" abstract="false" name="InvestmentIncomePaidInKindInterestPercent" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="cswc_NATIONALCREDITCARELLCMember" abstract="true" name="NATIONALCREDITCARELLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_SmallBusinessAdministrationDebenturesMember" abstract="true" name="SmallBusinessAdministrationDebenturesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentOwnedCostMember" abstract="true" name="InvestmentOwnedCostMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_ACCELERATIONPARTNERSLLCMember" abstract="true" name="ACCELERATIONPARTNERSLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_A2010PlanAnd2021EmployeePlanMember" abstract="true" name="A2010PlanAnd2021EmployeePlanMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_AccretionOfOriginalIssueDiscounts" abstract="false" name="AccretionOfOriginalIssueDiscounts" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_ConsumerServicesSectorMember" abstract="true" name="ConsumerServicesSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentIncomeOperatingFederalIncomeExciseAndOtherTaxes" abstract="false" name="InvestmentIncomeOperatingFederalIncomeExciseAndOtherTaxes" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_SBICIMember" abstract="true" name="SBICIMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentCompanyTargetInvestmentAnnualRevenue" abstract="false" name="InvestmentCompanyTargetInvestmentAnnualRevenue" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_IndustryConcentrationRiskMember" abstract="true" name="IndustryConcentrationRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_SystecCorporationDBAInspireAutomationMember" abstract="true" name="SystecCorporationDBAInspireAutomationMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_VersicareManagementLLCMember" abstract="true" name="VersicareManagementLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_AlternativeReferenceRatesEconomicResultsRiskMember" abstract="true" name="AlternativeReferenceRatesEconomicResultsRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_SWENSONSDRIVEINRESTAURANTSLLCMember" abstract="true" name="SWENSONSDRIVEINRESTAURANTSLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_WallStreetPrepIncMember" abstract="true" name="WallStreetPrepIncMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_RoofOpCoLLCMember" abstract="true" name="RoofOpCoLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_FairValueAssetRecurringBasisStillHeldUnrealizedGainLossStatementOfIncomeExtensibleListNotDisclosedFlag" abstract="false" name="FairValueAssetRecurringBasisStillHeldUnrealizedGainLossStatementOfIncomeExtensibleListNotDisclosedFlag" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="cswc_GAINSINTERMEDIATELLCMember" abstract="true" name="GAINSINTERMEDIATELLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_NEUROPSYCHIATRICHOSPITALSLLCMember" abstract="true" name="NEUROPSYCHIATRICHOSPITALSLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_EducationSectorMember" abstract="true" name="EducationSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_SouthCoastTerminalsLLCMember" abstract="true" name="SouthCoastTerminalsLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentCompanyNetInvestmentIncomeBeforeTaxesPerBasicShare" abstract="false" name="InvestmentCompanyNetInvestmentIncomeBeforeTaxesPerBasicShare" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:perShareItemType"/>
  <xs:element id="cswc_ALLIANCESPORTSGROUPLPMember" abstract="true" name="ALLIANCESPORTSGROUPLPMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_DeferredTaxLiabilitiesBasisDifferencesInPortfolioInvestmentsNet" abstract="false" name="DeferredTaxLiabilitiesBasisDifferencesInPortfolioInvestmentsNet" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_FirstLienLoansLastOutMember" abstract="true" name="FirstLienLoansLastOutMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_ProceedsFromDispositionOfInvestmentDebtSecuritiesOperatingActivity" abstract="false" name="ProceedsFromDispositionOfInvestmentDebtSecuritiesOperatingActivity" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_InvestmentCompanyPercentOfNonqualifiedAssets" abstract="false" name="InvestmentCompanyPercentOfNonqualifiedAssets" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="cswc_FlipElectronicsLLCMember" abstract="true" name="FlipElectronicsLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentCompanySeniorSecurityIndebtednessAssetCoverageRatioMinimumThreshold" abstract="false" name="InvestmentCompanySeniorSecurityIndebtednessAssetCoverageRatioMinimumThreshold" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="cswc_SmallBusinessAdministrationDebenturesDueSeptember2031Member" abstract="true" name="SmallBusinessAdministrationDebenturesDueSeptember2031Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_AACNewHoldcoIncMember" abstract="true" name="AACNewHoldcoIncMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_October2026NotesMember" abstract="true" name="October2026NotesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_PublicEquityOfferingMember" abstract="true" name="PublicEquityOfferingMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentCompanyTaxBasisReconciliationNetUnrealizedDepreciationAppreciationOnInvestmentsIncreaseDecreaseInTaxableIncome" abstract="false" name="InvestmentCompanyTaxBasisReconciliationNetUnrealizedDepreciationAppreciationOnInvestmentsIncreaseDecreaseInTaxableIncome" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_ExpirationPeriodAxis" abstract="true" name="ExpirationPeriodAxis" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:dimensionItem" type="xbrli:stringItemType"/>
  <xs:element id="cswc_OuterboxLLCMember" abstract="true" name="OuterboxLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentCompanyScheduleOfUnusedFinancialCommitmentsTableTextBlock" abstract="false" name="InvestmentCompanyScheduleOfUnusedFinancialCommitmentsTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="cswc_SaleOfStockNumberOfAdditionalSalesAgents" abstract="false" name="SaleOfStockNumberOfAdditionalSalesAgents" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="cswc_SecuredOvernightFinancingRateSOFRMember" abstract="true" name="SecuredOvernightFinancingRateSOFRMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_SmallBusinessAdministrationDebenturesDueSeptember2032Member" abstract="true" name="SmallBusinessAdministrationDebenturesDueSeptember2032Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ConsumerProductsAndRetailSectorMember" abstract="true" name="ConsumerProductsAndRetailSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentTypeConcentrationRiskMember" abstract="true" name="InvestmentTypeConcentrationRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_DebtInstrumentNumberOfScheduledPoolingDates" abstract="false" name="DebtInstrumentNumberOfScheduledPoolingDates" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="cswc_ExpirationPeriodDomain" abstract="true" name="ExpirationPeriodDomain" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_THEPRODUCTOGROUPLLCMember" abstract="true" name="THEPRODUCTOGROUPLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_UnusedCommitmentsToLendDelayedDrawTermLoansMember" abstract="true" name="UnusedCommitmentsToLendDelayedDrawTermLoansMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_AMERICANNUTSOPERATIONSLLCMember" abstract="true" name="AMERICANNUTSOPERATIONSLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_UpperMiddleMarketMember" abstract="true" name="UpperMiddleMarketMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_PrivatelyHeldDebtAndEquityInstrumentsMember" abstract="true" name="PrivatelyHeldDebtAndEquityInstrumentsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentCompanyTaxBasisReconciliationGainLossRecognizedOnDispositionsIncreaseDecreaseInTaxableIncome" abstract="false" name="InvestmentCompanyTaxBasisReconciliationGainLossRecognizedOnDispositionsIncreaseDecreaseInTaxableIncome" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_WarrantsPolicyTextBlock" abstract="false" name="WarrantsPolicyTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="cswc_ZenfolioIncMember" abstract="true" name="ZenfolioIncMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_SoftwareAndITServicesSectorMember" abstract="true" name="SoftwareAndITServicesSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_FoodPharmaSubsidiaryHoldingsLLCMember" abstract="true" name="FoodPharmaSubsidiaryHoldingsLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_CentralMedicalSupplyLLCMember" abstract="true" name="CentralMedicalSupplyLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentsFairValueDisclosureMeasurementInputAbstract" abstract="true" name="InvestmentsFairValueDisclosureMeasurementInputAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="cswc_CadmiumLLCMember" abstract="true" name="CadmiumLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentCompanyInvestmentIncomeLossOperatingExpensesPerShare" abstract="false" name="InvestmentCompanyInvestmentIncomeLossOperatingExpensesPerShare" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:perShareItemType"/>
  <xs:element id="cswc_A2021EmployeePlanMember" abstract="true" name="A2021EmployeePlanMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_DebtInstrumentCovenantInterestCoverageRatioMinimum" abstract="false" name="DebtInstrumentCovenantInterestCoverageRatioMinimum" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:pureItemType"/>
  <xs:element id="cswc_WellFoamIncMember" abstract="true" name="WellFoamIncMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_FeeIncomeAbstract" abstract="true" name="FeeIncomeAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="cswc_InvestmentCompanyTaxBasisReconciliationIncomeExpenseRecognizedForPassThroughEntitiesIncreaseDecreaseInTaxableIncome" abstract="false" name="InvestmentCompanyTaxBasisReconciliationIncomeExpenseRecognizedForPassThroughEntitiesIncreaseDecreaseInTaxableIncome" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_HealthcareServicesSectorMember" abstract="true" name="HealthcareServicesSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_LashOpCoLLCMember" abstract="true" name="LashOpCoLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentCompanyTargetInvestmentAnnualEarningsBeforeInterestTaxesDepreciationAndAmortization" abstract="false" name="InvestmentCompanyTargetInvestmentAnnualEarningsBeforeInterestTaxesDepreciationAndAmortization" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_InvestmentCompanyTaxBasisReconciliationNonDeductibleTaxExpenseIncreaseDecreaseInTaxableIncome" abstract="false" name="InvestmentCompanyTaxBasisReconciliationNonDeductibleTaxExpenseIncreaseDecreaseInTaxableIncome" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_UnrealizedInvestmentGainsLossesAbstract" abstract="true" name="UnrealizedInvestmentGainsLossesAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="cswc_InvestmentCompanyPerShareDataAbstract" abstract="true" name="InvestmentCompanyPerShareDataAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="cswc_InvestmentCompanyScheduleOfUnfundedDebtCommitmentsTableTextBlock" abstract="false" name="InvestmentCompanyScheduleOfUnfundedDebtCommitmentsTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="cswc_FinancialCommitmentYearThreeMember" abstract="true" name="FinancialCommitmentYearThreeMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentOwnedNonAccrualStatusMember" abstract="true" name="InvestmentOwnedNonAccrualStatusMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_IndustrialProductsSectorMember" abstract="true" name="IndustrialProductsSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_DistributionSectorMember" abstract="true" name="DistributionSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_FoodAgricultureAndBeverageSectorMember" abstract="true" name="FoodAgricultureAndBeverageSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_DebtSecuritiesFirstLienMember" abstract="true" name="DebtSecuritiesFirstLienMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsNonvestedWeightedAverageRemainingVestingTermAbstract" abstract="true" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsNonvestedWeightedAverageRemainingVestingTermAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="cswc_ChangeInRestorationPlanLiability" abstract="false" name="ChangeInRestorationPlanLiability" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_FinancialCommitmentYearTwoMember" abstract="true" name="FinancialCommitmentYearTwoMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_LowerMiddleMarketMember" abstract="true" name="LowerMiddleMarketMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_LeverageableCapital" abstract="false" name="LeverageableCapital" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_InvestmentCompanyTaxBasisReconciliationOtherReconcilingItemsIncreaseDecreaseInTaxableIncome" abstract="false" name="InvestmentCompanyTaxBasisReconciliationOtherReconcilingItemsIncreaseDecreaseInTaxableIncome" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_PIPELINETECHNIQUELTDMember" abstract="true" name="PIPELINETECHNIQUELTDMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_RestaurantsMember" abstract="true" name="RestaurantsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_BONDBRANDLOYALTYULCMember" abstract="true" name="BONDBRANDLOYALTYULCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_CommonEquityWarrantsMember" abstract="true" name="CommonEquityWarrantsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_EXACTBORROWERLLCMember" abstract="true" name="EXACTBORROWERLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_USCOURTSCRIPTHOLDINGSINCMember" abstract="true" name="USCOURTSCRIPTHOLDINGSINCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_LKCTECHNOLOGIESINCMember" abstract="true" name="LKCTECHNOLOGIESINCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_KMSINCMember" abstract="true" name="KMSINCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_DELPHIBEHAVIORALHEALTHGROUPLLCMember" abstract="true" name="DELPHIBEHAVIORALHEALTHGROUPLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InterestIncomePaidInKindAbstract" abstract="true" name="InterestIncomePaidInKindAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="cswc_LGMPHARMALLCMember" abstract="true" name="LGMPHARMALLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_DebtInstrumentCovenantSeniorCoverageRatioMinimum" abstract="false" name="DebtInstrumentCovenantSeniorCoverageRatioMinimum" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:pureItemType"/>
  <xs:element id="cswc_InvestmentOwnedPercentOfPortfolio" abstract="false" name="InvestmentOwnedPercentOfPortfolio" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="cswc_DebtInstrumentIssuancePricePercentOfPrincipalAmount" abstract="false" name="DebtInstrumentIssuancePricePercentOfPrincipalAmount" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="cswc_DebtInstrumentRegulatoryMaximumBorrowingCapacity" abstract="false" name="DebtInstrumentRegulatoryMaximumBorrowingCapacity" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_InvestmentCompanyTaxBasisReconciliationCapitalLossCarryoverIncreaseDecreaseInTaxableIncome" abstract="false" name="InvestmentCompanyTaxBasisReconciliationCapitalLossCarryoverIncreaseDecreaseInTaxableIncome" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_ShearwaterResearchIncMember" abstract="true" name="ShearwaterResearchIncMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_MeasurementInputCostMember" abstract="true" name="MeasurementInputCostMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_LIGHTNINGINTERMEDIATEIILLCDBAVIMERGYMember" abstract="true" name="LIGHTNINGINTERMEDIATEIILLCDBAVIMERGYMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_ShareBasedCompensationArrangementByShareBasedPaymentAwardPlanExpirationPeriod" abstract="false" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardPlanExpirationPeriod" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="cswc_FMSYLVANINCMember" abstract="true" name="FMSYLVANINCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_SpotlightARLLCMember" abstract="true" name="SpotlightARLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_JointVentureInvestmentsVariousIndustrySectorsMember" abstract="true" name="JointVentureInvestmentsVariousIndustrySectorsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_UnusedCommitmentsToLendRevolvingLoansMember" abstract="true" name="UnusedCommitmentsToLendRevolvingLoansMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_RegularDividendsMember" abstract="true" name="RegularDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentCompanyPercentOfQualifiedAssets" abstract="false" name="InvestmentCompanyPercentOfQualifiedAssets" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="cswc_ReclassificationForCertainPermanentBookToTaxDifferences" abstract="false" name="ReclassificationForCertainPermanentBookToTaxDifferences" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_InvestmentCompanyTaxBasisReconciliationDividendIncomeSubsidiaryIncreaseDecreaseInTaxableIncome" abstract="false" name="InvestmentCompanyTaxBasisReconciliationDividendIncomeSubsidiaryIncreaseDecreaseInTaxableIncome" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_InvestmentOwnedAtFairValueSellOrTransferNotificationPeriod" abstract="false" name="InvestmentOwnedAtFairValueSellOrTransferNotificationPeriod" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="cswc_EnvironmentalServicesSectorMember" abstract="true" name="EnvironmentalServicesSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentIncomeOperatingDeferredTaxes" abstract="false" name="InvestmentIncomeOperatingDeferredTaxes" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_SBADebenturesMember" abstract="true" name="SBADebenturesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_CreditFacilityMember" abstract="true" name="CreditFacilityMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_INSTITUTESOFHEALTHLLCMember" abstract="true" name="INSTITUTESOFHEALTHLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_JointVentureInvestmentsMember" abstract="true" name="JointVentureInvestmentsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_DebtInstrumentBasisSpreadOnVariableRateAdjustment" abstract="false" name="DebtInstrumentBasisSpreadOnVariableRateAdjustment" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="cswc_DAMOTECHINCMember" abstract="true" name="DAMOTECHINCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_SaleOfStockMaximumConsiderationThreshold" abstract="false" name="SaleOfStockMaximumConsiderationThreshold" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_DynamicCommunitiesLLCMember" abstract="true" name="DynamicCommunitiesLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentOwnedBalancePercentOfShares" abstract="false" name="InvestmentOwnedBalancePercentOfShares" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="cswc_EnergyServicesUpstreamSectorMember" abstract="true" name="EnergyServicesUpstreamSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_HHINSPIREACQUISITIONINCMember" abstract="true" name="HHINSPIREACQUISITIONINCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodPerDirector" abstract="false" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodPerDirector" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_ATSOperatingLLCMember" abstract="true" name="ATSOperatingLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_SharesRepurchasedRestrictedStockAwardsVestedMember" abstract="true" name="SharesRepurchasedRestrictedStockAwardsVestedMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_BROADSKYNETWORKSLLCDBAEPICIOTECHNOLOGIESMember" abstract="true" name="BROADSKYNETWORKSLLCDBAEPICIOTECHNOLOGIESMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_RealizedGainLossInvestmentDerivativeAndDebtOperatingAfterTax" abstract="false" name="RealizedGainLossInvestmentDerivativeAndDebtOperatingAfterTax" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_InvestmentCompanyRealizedGainLossOnInvestmentPerShare" abstract="false" name="InvestmentCompanyRealizedGainLossOnInvestmentPerShare" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:perShareItemType"/>
  <xs:element id="cswc_ExpirationTrancheAxis" abstract="true" name="ExpirationTrancheAxis" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:dimensionItem" type="xbrli:stringItemType"/>
  <xs:element id="cswc_InvestmentCompanyTaxBasisReconciliationCompensationRelatedDifferencesIncreaseDecreaseInTaxableIncome" abstract="false" name="InvestmentCompanyTaxBasisReconciliationCompensationRelatedDifferencesIncreaseDecreaseInTaxableIncome" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_DebtSecuritiesSecondLienMember" abstract="true" name="DebtSecuritiesSecondLienMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_ExpirationTrancheOneMember" abstract="true" name="ExpirationTrancheOneMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_FinancialCommitmentYearOneMember" abstract="true" name="FinancialCommitmentYearOneMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_ArborWorksLLCMember" abstract="true" name="ArborWorksLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_ExpirationTrancheDomain" abstract="true" name="ExpirationTrancheDomain" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_SmallBusinessAdministrationDebenturesDueSeptember2033Member" abstract="true" name="SmallBusinessAdministrationDebenturesDueSeptember2033Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentCompanyOtherAdjustmentsPerShare" abstract="false" name="InvestmentCompanyOtherAdjustmentsPerShare" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:perShareItemType"/>
  <xs:element id="cswc_AccelerationLLCMember" abstract="true" name="AccelerationLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_ExpirationTrancheThreeMember" abstract="true" name="ExpirationTrancheThreeMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_CatbirdNYCLLCMember" abstract="true" name="CatbirdNYCLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_NinjaTraderIncMember" abstract="true" name="NinjaTraderIncMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentOwnedFairValueMember" abstract="true" name="InvestmentOwnedFairValueMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentOwnedFairValueMeasurementInput" abstract="false" name="InvestmentOwnedFairValueMeasurementInput" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:decimalItemType"/>
  <xs:element id="cswc_EDGEAUTONOMYHOLDINGSLLCMember" abstract="true" name="EDGEAUTONOMYHOLDINGSLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_GPTINDUSTRIESLLCMember" abstract="true" name="GPTINDUSTRIESLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_BusinessServicesSectorMember" abstract="true" name="BusinessServicesSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="cswc_InvestmentOwnedPercentOfTotalAssets" abstract="false" name="InvestmentOwnedPercentOfTotalAssets" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="cswc_SmallBusinessAdministrationDebenturesDueMarch2032Member" abstract="true" name="SmallBusinessAdministrationDebenturesDueMarch2032Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
</xs:schema>
