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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019c5321-6e63-7ca3-84ef-b68fa3b4e75c,g:41981f4f-41b7-4344-b935-b26b550343ce-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:cswc="http://www.capitalsouthwest.com/20260331" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:dtr-types="http://www.xbrl.org/dtr/type/2024-01-31" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.capitalsouthwest.com/20260331">
  <xs:import namespace="http://fasb.org/srt/2025" schemaLocation="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd"/>
  <xs:import namespace="http://fasb.org/us-gaap/2025" schemaLocation="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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/2024-01-31" schemaLocation="https://www.xbrl.org/dtr/type/2024-01-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/2025" schemaLocation="https://xbrl.sec.gov/cef/2025/cef-2025_pre.xsd"/>
  <xs:import namespace="http://xbrl.sec.gov/cyd-af-sub/2025" schemaLocation="https://xbrl.sec.gov/cyd/2025/cyd-af-sub-2025.xsd"/>
  <xs:import namespace="http://xbrl.sec.gov/dei/2025" schemaLocation="https://xbrl.sec.gov/dei/2025/dei-2025.xsd"/>
  <xs:import namespace="http://xbrl.sec.gov/ecd/2025" schemaLocation="https://xbrl.sec.gov/ecd/2025/ecd-2025.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-20260331_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-20260331_def.xml" xlink:role="http://www.xbrl.org/2003/role/definitionLinkbaseRef" 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-20260331_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-20260331_cal.xml" xlink:role="http://www.xbrl.org/2003/role/calculationLinkbaseRef" 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="AuditInformation" roleURI="http://www.capitalsouthwest.com/role/AuditInformation">
        <link:definition>0000002 - Document - Audit 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="CONSOLIDATEDSTATEMENTSOFASSETSANDLIABILITIES" roleURI="http://www.capitalsouthwest.com/role/CONSOLIDATEDSTATEMENTSOFASSETSANDLIABILITIES">
        <link:definition>0000003 - 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>0000004 - 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>0000005 - 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>0000006 - 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>0000007 - 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>0000008 - 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>0000008 - 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>0000009 - 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="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="EARNINGSPERSHARE" roleURI="http://www.capitalsouthwest.com/role/EARNINGSPERSHARE">
        <link:definition>0000017 - Disclosure - EARNINGS PER SHARE</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>0000018 - 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>0000019 - 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="RETIREMENTPLANS" roleURI="http://www.capitalsouthwest.com/role/RETIREMENTPLANS">
        <link:definition>0000020 - Disclosure - RETIREMENT 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="COMMITMENTSANDCONTINGENCIES" roleURI="http://www.capitalsouthwest.com/role/COMMITMENTSANDCONTINGENCIES">
        <link:definition>0000021 - 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="SELECTEDQUARTERLYFINANCIALDATAUNAUDITED" roleURI="http://www.capitalsouthwest.com/role/SELECTEDQUARTERLYFINANCIALDATAUNAUDITED">
        <link:definition>0000022 - Disclosure - SELECTED QUARTERLY FINANCIAL DATA (UNAUDITED)</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>0000023 - 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>0000024 - 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>0000025 - 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>0000026 - 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>9955511 - 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>9955512 - 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>9955513 - 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>9955514 - 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>9955515 - 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>9955516 - 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="EARNINGSPERSHARETables" roleURI="http://www.capitalsouthwest.com/role/EARNINGSPERSHARETables">
        <link:definition>9955517 - Disclosure - EARNINGS PER SHARE (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>9955518 - 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="RETIREMENTPLANSTables" roleURI="http://www.capitalsouthwest.com/role/RETIREMENTPLANSTables">
        <link:definition>9955519 - Disclosure - RETIREMENT 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>9955520 - 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="SELECTEDQUARTERLYFINANCIALDATAUNAUDITEDTables" roleURI="http://www.capitalsouthwest.com/role/SELECTEDQUARTERLYFINANCIALDATAUNAUDITEDTables">
        <link:definition>9955521 - Disclosure - SELECTED QUARTERLY FINANCIAL DATA (UNAUDITED) (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>9955522 - 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>9955523 - 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>9955524 - 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>9955525 - 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="INVESTMENTSScheduleofInvestmentsDetails" roleURI="http://www.capitalsouthwest.com/role/INVESTMENTSScheduleofInvestmentsDetails">
        <link:definition>9955526 - Disclosure - INVESTMENTS - Schedule of Investments (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="INVESTMENTSNarrativeDetails" roleURI="http://www.capitalsouthwest.com/role/INVESTMENTSNarrativeDetails">
        <link:definition>9955527 - Disclosure - INVESTMENTS - 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="FAIRVALUEMEASUREMENTSNarrativeDetails" roleURI="http://www.capitalsouthwest.com/role/FAIRVALUEMEASUREMENTSNarrativeDetails">
        <link:definition>9955528 - 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="FAIRVALUEMEASUREMENTSScheduleofInvestmentPortfoliobyLevelDetails" roleURI="http://www.capitalsouthwest.com/role/FAIRVALUEMEASUREMENTSScheduleofInvestmentPortfoliobyLevelDetails">
        <link:definition>9955529 - Disclosure - FAIR VALUE MEASUREMENTS - Schedule of 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="FAIRVALUEMEASUREMENTSScheduleofValuationTechniquesandSignificantLevel3InputsDetails" roleURI="http://www.capitalsouthwest.com/role/FAIRVALUEMEASUREMENTSScheduleofValuationTechniquesandSignificantLevel3InputsDetails">
        <link:definition>9955530 - Disclosure - FAIR VALUE MEASUREMENTS - Schedule of Valuation Techniques and Significant 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="FAIRVALUEMEASUREMENTSScheduleofChangesinFairValueofInvestmentsMeasuredUsingLevel3InputsDetails" roleURI="http://www.capitalsouthwest.com/role/FAIRVALUEMEASUREMENTSScheduleofChangesinFairValueofInvestmentsMeasuredUsingLevel3InputsDetails">
        <link:definition>9955531 - 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>9955532 - 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>9955533 - 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="BORROWINGSScheduleofCreditFacilitiesDetails" roleURI="http://www.capitalsouthwest.com/role/BORROWINGSScheduleofCreditFacilitiesDetails">
        <link:definition>9955534 - Disclosure - BORROWINGS - Schedule of Credit Facilities (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="BORROWINGSNotesDetails" roleURI="http://www.capitalsouthwest.com/role/BORROWINGSNotesDetails">
        <link:definition>9955535 - Disclosure - BORROWINGS - Notes (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="BORROWINGSConvertibleFeaturesofthe2029ConvertibleNotesDetails" roleURI="http://www.capitalsouthwest.com/role/BORROWINGSConvertibleFeaturesofthe2029ConvertibleNotesDetails">
        <link:definition>9955536 - Disclosure - BORROWINGS - Convertible Features of the 2029 Convertible Notes (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="BORROWINGSSBADebenturesDetails" roleURI="http://www.capitalsouthwest.com/role/BORROWINGSSBADebenturesDetails">
        <link:definition>9955537 - Disclosure - BORROWINGS - 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="BORROWINGSIssuedandOutstandingSBADebenturesDetails" roleURI="http://www.capitalsouthwest.com/role/BORROWINGSIssuedandOutstandingSBADebenturesDetails">
        <link:definition>9955538 - Disclosure - BORROWINGS - 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="BORROWINGSScheduleofContractualPaymentObligationsDetails" roleURI="http://www.capitalsouthwest.com/role/BORROWINGSScheduleofContractualPaymentObligationsDetails">
        <link:definition>9955539 - Disclosure - BORROWINGS - Schedule of Contractual Payment Obligations (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>9955540 - 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="INCOMETAXESDistributionsDetails" roleURI="http://www.capitalsouthwest.com/role/INCOMETAXESDistributionsDetails">
        <link:definition>9955541 - Disclosure - INCOME TAXES - Distributions (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="INCOMETAXESScheduleofBookandTaxBasisDifferencesRelatingtoDividendsandDistributionsDetails" roleURI="http://www.capitalsouthwest.com/role/INCOMETAXESScheduleofBookandTaxBasisDifferencesRelatingtoDividendsandDistributionsDetails">
        <link:definition>9955542 - Disclosure - INCOME TAXES - Schedule of Book and Tax Basis Differences Relating to Dividends and Distributions (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="INCOMETAXESScheduleofDistributionsDetails" roleURI="http://www.capitalsouthwest.com/role/INCOMETAXESScheduleofDistributionsDetails">
        <link:definition>9955543 - Disclosure - INCOME TAXES - Schedule of Distributions (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="INCOMETAXESScheduleofNetAssetsResultingfromOperationstoEstimatedRICTaxableIncomeDetails" roleURI="http://www.capitalsouthwest.com/role/INCOMETAXESScheduleofNetAssetsResultingfromOperationstoEstimatedRICTaxableIncomeDetails">
        <link:definition>9955544 - Disclosure - INCOME TAXES - Schedule of 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="INCOMETAXESScheduleofComponentsofEstimatedTaxBasisRICAccumulatedEarningsDetails" roleURI="http://www.capitalsouthwest.com/role/INCOMETAXESScheduleofComponentsofEstimatedTaxBasisRICAccumulatedEarningsDetails">
        <link:definition>9955545 - Disclosure - INCOME TAXES - Schedule of Components of Estimated Tax Basis RIC Accumulated Earnings (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="INCOMETAXESScheduleofDeferredTaxAssetsandLiabilitiesDetails" roleURI="http://www.capitalsouthwest.com/role/INCOMETAXESScheduleofDeferredTaxAssetsandLiabilitiesDetails">
        <link:definition>9955546 - Disclosure - INCOME TAXES - Schedule of 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="INCOMETAXESSignificantComponentsofIncomeTaxProvisionDetails" roleURI="http://www.capitalsouthwest.com/role/INCOMETAXESSignificantComponentsofIncomeTaxProvisionDetails">
        <link:definition>9955547 - Disclosure - INCOME TAXES - Significant Components of Income Tax Provision (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="INCOMETAXESScheduleofFederalandStateIncomeTaxesPaidDetails" roleURI="http://www.capitalsouthwest.com/role/INCOMETAXESScheduleofFederalandStateIncomeTaxesPaidDetails">
        <link:definition>9955548 - Disclosure - INCOME TAXES - Schedule of Federal and State Income Taxes Paid (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>9955549 - 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>9955550 - 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="SHAREHOLDERSEQUITYScheduleofShareRepurchasesDetails" roleURI="http://www.capitalsouthwest.com/role/SHAREHOLDERSEQUITYScheduleofShareRepurchasesDetails">
        <link:definition>9955551 - Disclosure - SHAREHOLDERS' EQUITY - Schedule of Share Repurchases (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="EARNINGSPERSHAREDetails" roleURI="http://www.capitalsouthwest.com/role/EARNINGSPERSHAREDetails">
        <link:definition>9955552 - Disclosure - EARNINGS PER SHARE (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>9955553 - 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>9955554 - 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>9955555 - 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="RETIREMENTPLANSScheduleofChangesinProjectedBenefitObligationsDetails" roleURI="http://www.capitalsouthwest.com/role/RETIREMENTPLANSScheduleofChangesinProjectedBenefitObligationsDetails">
        <link:definition>9955556 - Disclosure - RETIREMENT PLANS - Schedule of Changes in Projected Benefit Obligations (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="RETIREMENTPLANSScheduleofAssumptionsUsedDetails" roleURI="http://www.capitalsouthwest.com/role/RETIREMENTPLANSScheduleofAssumptionsUsedDetails">
        <link:definition>9955557 - Disclosure - RETIREMENT PLANS - Schedule of Assumptions Used (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="RETIREMENTPLANSActuarialGainsorLossesDetails" roleURI="http://www.capitalsouthwest.com/role/RETIREMENTPLANSActuarialGainsorLossesDetails">
        <link:definition>9955558 - Disclosure - RETIREMENT PLANS - Actuarial Gains or Losses (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>9955559 - 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>9955559 - 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>9955560 - 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="COMMITMENTSANDCONTINGENCIESUnfundedEquityCommitmentsDetails" roleURI="http://www.capitalsouthwest.com/role/COMMITMENTSANDCONTINGENCIESUnfundedEquityCommitmentsDetails">
        <link:definition>9955561 - Disclosure - COMMITMENTS AND CONTINGENCIES - Unfunded Equity 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="COMMITMENTSANDCONTINGENCIESUnfundedEquityCommitmentsDetails_1" roleURI="http://www.capitalsouthwest.com/role/COMMITMENTSANDCONTINGENCIESUnfundedEquityCommitmentsDetails_1">
        <link:definition>9955561 - Disclosure - COMMITMENTS AND CONTINGENCIES - Unfunded Equity 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>9955562 - 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="COMMITMENTSANDCONTINGENCIESScheduleofFutureMinimumPaymentsDetails" roleURI="http://www.capitalsouthwest.com/role/COMMITMENTSANDCONTINGENCIESScheduleofFutureMinimumPaymentsDetails">
        <link:definition>9955563 - Disclosure - COMMITMENTS AND CONTINGENCIES - Schedule of 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="SELECTEDQUARTERLYFINANCIALDATAUNAUDITEDDetails" roleURI="http://www.capitalsouthwest.com/role/SELECTEDQUARTERLYFINANCIALDATAUNAUDITEDDetails">
        <link:definition>9955564 - Disclosure - SELECTED QUARTERLY FINANCIAL DATA (UNAUDITED) (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>9955565 - 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>9955566 - 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>9955567 - 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>9955568 - 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>9955568 - 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_AuditInformationAbstract" abstract="true" name="AuditInformationAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="cswc_SmallBusinessAdministrationDebenturesMember" abstract="true" name="SmallBusinessAdministrationDebenturesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_October2026NotesMember" abstract="true" name="October2026NotesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <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_A2029ConvertibleNotesMember" abstract="true" name="A2029ConvertibleNotesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_September2030NotesMember" abstract="true" name="September2030NotesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types: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_InterestIncomePaidInKindAbstract" abstract="true" name="InterestIncomePaidInKindAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="cswc_FeeIncomeAbstract" abstract="true" name="FeeIncomeAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <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_InvestmentIncomeOperatingDeferredTaxes" abstract="false" name="InvestmentIncomeOperatingDeferredTaxes" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" 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_InvestmentCompanyNetInvestmentIncomeBeforeTaxesPerBasicShare" abstract="false" name="InvestmentCompanyNetInvestmentIncomeBeforeTaxesPerBasicShare" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:perShareItemType"/>
  <xs:element id="cswc_TreasuryStockSharesCancelled" abstract="false" name="TreasuryStockSharesCancelled" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:sharesItemType"/>
  <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_ChangeInRestorationPlanLiability" abstract="false" name="ChangeInRestorationPlanLiability" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <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_NetRealizedLossOnInvestmentsAndExtinguishmentOfDebt" abstract="false" name="NetRealizedLossOnInvestmentsAndExtinguishmentOfDebt" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_RealizedGainLossOnInvestmentsExtinguishmentOfDebtAndDisposalOfFixedAssets" abstract="false" name="RealizedGainLossOnInvestmentsExtinguishmentOfDebtAndDisposalOfFixedAssets" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_January2026NotesMember" abstract="true" name="January2026NotesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types: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_ProceedsFromDispositionOfInvestmentEquitySecuritiesOperatingActivity" abstract="false" name="ProceedsFromDispositionOfInvestmentEquitySecuritiesOperatingActivity" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_ProceedsFromReturnOfCapitalOperatingActivity" abstract="false" name="ProceedsFromReturnOfCapitalOperatingActivity" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <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_RealizedGainLossOnExtinguishmentOfDebt" abstract="false" name="RealizedGainLossOnExtinguishmentOfDebt" 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_DistributionsInKindReceived" abstract="false" name="DistributionsInKindReceived" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <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_STELLANTMIDCOLLCMember" abstract="true" name="STELLANTMIDCOLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_BRANDNERDESIGNLLCMember" abstract="true" name="BRANDNERDESIGNLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_DYNAMICCOMMUNITIESLLCMember" abstract="true" name="DYNAMICCOMMUNITIESLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_GAINSINTERMEDIATELLCMember" abstract="true" name="GAINSINTERMEDIATELLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_IVUEITLLCMember" abstract="true" name="IVUEITLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_SpotlightARLLCMember" abstract="true" name="SpotlightARLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_WinterServicesOperationsLLCMember" abstract="true" name="WinterServicesOperationsLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_LEHRUPFITTERSLLCMember" abstract="true" name="LEHRUPFITTERSLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_VPMOVEPURCHASERINCMember" abstract="true" name="VPMOVEPURCHASERINCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_WHITEPLAINSLINENLLCMember" abstract="true" name="WHITEPLAINSLINENLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_CLUTCHINC.Member" abstract="true" name="CLUTCHINC.Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_GRAVITIQLLCMember" abstract="true" name="GRAVITIQLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types: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_LashOpCoLLCMember" abstract="true" name="LashOpCoLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_RevoBrandsINCMember" abstract="true" name="RevoBrandsINCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_TruFragranceBeautyLLCMember" abstract="true" name="TruFragranceBeautyLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_AirConditioningSpecialistIncMember" abstract="true" name="AirConditioningSpecialistIncMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_AMERICANPETRESORTLLCMember" abstract="true" name="AMERICANPETRESORTLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_APPLEROOFINGADMINISTRATIVESERVICESLLCFkaROOFOPCOLLCMember" abstract="true" name="APPLEROOFINGADMINISTRATIVESERVICESLLCFkaROOFOPCOLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_APPLEROOFINGADMINISTRATIVESERVICESLLCMember" abstract="true" name="APPLEROOFINGADMINISTRATIVESERVICESLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_BETTERTHANHOMEINC.Member" abstract="true" name="BETTERTHANHOMEINC.Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_CAMPANYROOFMAINTENANCELLCMember" abstract="true" name="CAMPANYROOFMAINTENANCELLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_KINDREDPETSERVICELLCFkaREDDOGOPERATIONSHOLDINGCOMPANYLLCMember" abstract="true" name="KINDREDPETSERVICELLCFkaREDDOGOPERATIONSHOLDINGCOMPANYLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_LIFTBRANDSINCMember" abstract="true" name="LIFTBRANDSINCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_MAINLINEBRANDSLLCMember" abstract="true" name="MAINLINEBRANDSLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_POOLSERVICEPARTNERSINCMember" abstract="true" name="POOLSERVICEPARTNERSINCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_REDDOGOPERATIONSHOLDINGCOMPANYLLCMember" abstract="true" name="REDDOGOPERATIONSHOLDINGCOMPANYLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_TMTBHCBUYERINC.Member" abstract="true" name="TMTBHCBUYERINC.Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ZIPSCARWASHLLCMember" abstract="true" name="ZIPSCARWASHLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_WASHWAXHOLDINGSLLCMember" abstract="true" name="WASHWAXHOLDINGSLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_BURNINGGLASSINTERMEDIATEHOLDINGCOMPANYINC.Member" abstract="true" name="BURNINGGLASSINTERMEDIATEHOLDINGCOMPANYINC.Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_KMSLLCMember" abstract="true" name="KMSLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_MUSIKERDISCOVERYPROGRAMSINC.Member" abstract="true" name="MUSIKERDISCOVERYPROGRAMSINC.Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_PIPELINETECHNIQUELTDMember" abstract="true" name="PIPELINETECHNIQUELTDMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_WELLFOAMINCMember" abstract="true" name="WELLFOAMINCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ARBORWORKSLLCMember" abstract="true" name="ARBORWORKSLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ISLANDPUMPANDTANKLLCMember" abstract="true" name="ISLANDPUMPANDTANKLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_LIGHTINGRETROFITINTERNATIONALLLCMember" abstract="true" name="LIGHTINGRETROFITINTERNATIONALLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_INDINEROGROUPINC.Member" abstract="true" name="INDINEROGROUPINC.Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_NATIONALCREDITCARELLCMember" abstract="true" name="NATIONALCREDITCARELLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_NINJATRADERLLCMember" abstract="true" name="NINJATRADERLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_AMERICANNUTSOPERATIONSLLCMember" abstract="true" name="AMERICANNUTSOPERATIONSLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_CHALETDESSERTSLLCMember" abstract="true" name="CHALETDESSERTSLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_FOODPHARMASUBSIDIARYHOLDINGSLLCMember" abstract="true" name="FOODPHARMASUBSIDIARYHOLDINGSLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_GULFPACIFICACQUISITIONLLCMember" abstract="true" name="GULFPACIFICACQUISITIONLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_MAMMOTHBORROWCOINCMember" abstract="true" name="MAMMOTHBORROWCOINCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_MUENSTERMILLINGCOMPANYLLCMember" abstract="true" name="MUENSTERMILLINGCOMPANYLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_NEWSKINNYMIXESLLCMember" abstract="true" name="NEWSKINNYMIXESLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_CENTRALMEDICALSUPPLYLLCMember" abstract="true" name="CENTRALMEDICALSUPPLYLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types: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_DWSBUYERLLCMember" abstract="true" name="DWSBUYERLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_LIGHTNINGINTERMEDIATEIILLCMember" abstract="true" name="LIGHTNINGINTERMEDIATEIILLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_MICROBEFORMULASLLCMember" abstract="true" name="MICROBEFORMULASLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_AACNEWHOLDCOINC.Member" abstract="true" name="AACNEWHOLDCOINC.Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ARKSTONEMEDICALSOLUTIONSLLCMember" abstract="true" name="ARKSTONEMEDICALSOLUTIONSLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_CAVALIERBUYERINCMember" abstract="true" name="CAVALIERBUYERINCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_CDCDENTALMANAGEMENTCOLLCMember" abstract="true" name="CDCDENTALMANAGEMENTCOLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_CUMBRIACAPITALMSOLLCMember" abstract="true" name="CUMBRIACAPITALMSOLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types: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_INSTITUTESOFHEALTHLLCMember" abstract="true" name="INSTITUTESOFHEALTHLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_MIDFLORIDAENDODONTICSMANAGEMENTCOMPANYLLCMember" abstract="true" name="MIDFLORIDAENDODONTICSMANAGEMENTCOMPANYLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_NEUROPSYCHIATRICHOSPITALSLLCMember" abstract="true" name="NEUROPSYCHIATRICHOSPITALSLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_PYRAMIDSACQUISITIONLLCMember" abstract="true" name="PYRAMIDSACQUISITIONLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ROSELANDMANAGEMENTLLCMember" abstract="true" name="ROSELANDMANAGEMENTLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_SPECTRUMOFHOPELLCMember" abstract="true" name="SPECTRUMOFHOPELLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_SUPERIORHEALTHPARENTLLCMember" abstract="true" name="SUPERIORHEALTHPARENTLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_WELLLABSPLUSLLCMember" abstract="true" name="WELLLABSPLUSLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_CMCONVEYORINCMember" abstract="true" name="CMCONVEYORINCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_DRIVELINESERVICEOFPORTLANDLLCMember" abstract="true" name="DRIVELINESERVICEOFPORTLANDLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_SUREKAPLLCMember" abstract="true" name="SUREKAPLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_DAMOTECHINC.Member" abstract="true" name="DAMOTECHINC.Member" 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-types:domainItemType"/>
  <xs:element id="cswc_SERVERLIFTLLCMember" abstract="true" name="SERVERLIFTLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_MISSIONCRITICALGROUPLLCMember" abstract="true" name="MISSIONCRITICALGROUPLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_PATRIOTINTERMEDIATEHOLDCOLLCMember" abstract="true" name="PATRIOTINTERMEDIATEHOLDCOLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_PRECISIONSPRAYCOATINGSLLCMember" abstract="true" name="PRECISIONSPRAYCOATINGSLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_BPLOENBROHOLDINGSINC.Member" abstract="true" name="BPLOENBROHOLDINGSINC.Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_A360QUOTETOPCOLLCMember" abstract="true" name="A360QUOTETOPCOLLCMember" 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_EXACTBORROWERLLCMember" abstract="true" name="EXACTBORROWERLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_IGNITEVISIBILITYLLCMember" abstract="true" name="IGNITEVISIBILITYLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_LOCALWEBLEADSLLCMember" abstract="true" name="LOCALWEBLEADSLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_SOCIALSEOLLCMember" abstract="true" name="SOCIALSEOLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_CRAFTYAPESLLCMember" abstract="true" name="CRAFTYAPESLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_LDGACQUISITIONCOMPANYLLCMember" abstract="true" name="LDGACQUISITIONCOMPANYLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_LGMPHARMALLCMember" abstract="true" name="LGMPHARMALLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_MONROEBIOMEDICALRESEARCHLLCMember" abstract="true" name="MONROEBIOMEDICALRESEARCHLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ARMKOLLCMember" abstract="true" name="ARMKOLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ENSTOAINC.Member" abstract="true" name="ENSTOAINC.Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types: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_SPHERIXGLOBALINSIGHTSUSINC.Member" abstract="true" name="SPHERIXGLOBALINSIGHTSUSINC.Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_THEGOBELGROUPLLCMember" abstract="true" name="THEGOBELGROUPLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ONEGROUPLLCMember" abstract="true" name="ONEGROUPLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_RODIZIOOPCOLLCMember" abstract="true" name="RODIZIOOPCOLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types: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_ACACIABUYERCOVLLCMember" abstract="true" name="ACACIABUYERCOVLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_CADMIUMLLCMember" abstract="true" name="CADMIUMLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_GRAMMATECHINCMember" abstract="true" name="GRAMMATECHINCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ISIENTERPRISESLLCMember" abstract="true" name="ISIENTERPRISESLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ZENFOLIOINCMember" abstract="true" name="ZENFOLIOINCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ATSOPERATINGLLCMember" abstract="true" name="ATSOPERATINGLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_CATBIRDNYCLLCMember" abstract="true" name="CATBIRDNYCLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_LOGIXHOLDINGCOMPANYLLCMember" abstract="true" name="LOGIXHOLDINGCOMPANYLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_MERCURYACQUISITION2021LLCMember" abstract="true" name="MERCURYACQUISITION2021LLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_U.S.TELEPACIFICCORPMember" abstract="true" name="U.S.TELEPACIFICCORPMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_UNWIREDBROADBANDLLCMember" abstract="true" name="UNWIREDBROADBANDLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ITAHoldingsGroupLLCMember" abstract="true" name="ITAHoldingsGroupLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_LABLOGISTICSLLCMember" abstract="true" name="LABLOGISTICSLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_BRANDNERDESIGNLLCEquitySecuritiesMember" abstract="true" name="BRANDNERDESIGNLLCEquitySecuritiesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_DYNAMICCOMMUNITIESLLCEquitySecuritiesMember" abstract="true" name="DYNAMICCOMMUNITIESLLCEquitySecuritiesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_USCOURTSCRIPTHOLDINGSINCMember" abstract="true" name="USCOURTSCRIPTHOLDINGSINCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ShearwaterResearchInc.Member" abstract="true" name="ShearwaterResearchInc.Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_APPLEROOFINGADMINISTRATIVESERVICESLLCFkaROOFOPCOLLCEquityInvestmentsMember" abstract="true" name="APPLEROOFINGADMINISTRATIVESERVICESLLCFkaROOFOPCOLLCEquityInvestmentsMember" 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-types:domainItemType"/>
  <xs:element id="cswc_ARBORWORKSLLCEquityInvestmentsMember" abstract="true" name="ARBORWORKSLLCEquityInvestmentsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_LIGHTINGRETROFITINTERNATIONALLLCDBAENVOCOREMember" abstract="true" name="LIGHTINGRETROFITINTERNATIONALLLCDBAENVOCOREMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_NATIONALCREDITCARELLCEquityInvestmentsMember" abstract="true" name="NATIONALCREDITCARELLCEquityInvestmentsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_AMERICANNUTSOPERATIONSLLCEquityInvestmentsMember" abstract="true" name="AMERICANNUTSOPERATIONSLLCEquityInvestmentsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_MUENSTERMILLINGCOMPANYLLCEquityInvestmentsMember" abstract="true" name="MUENSTERMILLINGCOMPANYLLCEquityInvestmentsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_AACNEWHOLDCOINCEquityInvestmentsMember" abstract="true" name="AACNEWHOLDCOINCEquityInvestmentsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_CAVALIERBUYERINCEquityInvestmentsMember" abstract="true" name="CAVALIERBUYERINCEquityInvestmentsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ROSELANDMANAGEMENTLLCEquityInvestmentsMember" abstract="true" name="ROSELANDMANAGEMENTLLCEquityInvestmentsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ACCELERATIONLLCEquityInvestmentsMember" abstract="true" name="ACCELERATIONLLCEquityInvestmentsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_DAMOTECHINCEquityInvestmentsMember" abstract="true" name="DAMOTECHINCEquityInvestmentsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ACCELERATIONPARTNERSLLCEquityInvestmentsMember" abstract="true" name="ACCELERATIONPARTNERSLLCEquityInvestmentsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_BONDBRANDLOYALTYULCEquityInvestmentsMember" abstract="true" name="BONDBRANDLOYALTYULCEquityInvestmentsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_IGNITEVISIBILITYLLCEquityInterestMember" abstract="true" name="IGNITEVISIBILITYLLCEquityInterestMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_OUTERBOXLLCEquityInterestMember" abstract="true" name="OUTERBOXLLCEquityInterestMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_STATINMEDLLCMember" abstract="true" name="STATINMEDLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_THEGOBELGROUPLLCEquitySecuritiesMember" abstract="true" name="THEGOBELGROUPLLCEquitySecuritiesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ACACIABUYERCOVLLCEquitySecuritiesMember" abstract="true" name="ACACIABUYERCOVLLCEquitySecuritiesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_GRAMMATECHINCEquityInvestmentsMember" abstract="true" name="GRAMMATECHINCEquityInvestmentsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ISIEnterprisesLLCEquityInvestmentsMember" abstract="true" name="ISIEnterprisesLLCEquityInvestmentsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_VTXHOLDINGSINC.EquityInvestmentsMember" abstract="true" name="VTXHOLDINGSINC.EquityInvestmentsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_CATBIRDNYCLLCEquityInvestmentsMember" abstract="true" name="CATBIRDNYCLLCEquityInvestmentsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_BROADSKYNETWORKSLLCMember" abstract="true" name="BROADSKYNETWORKSLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_MERCURYACQUISITION2021LLCEquityInvestmentsMember" abstract="true" name="MERCURYACQUISITION2021LLCEquityInvestmentsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_GUARDIANFLEETSERVICESINCMember" abstract="true" name="GUARDIANFLEETSERVICESINCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ITAHOLDINGSGROUPLLCEquityInvestmentsMember" abstract="true" name="ITAHOLDINGSGROUPLLCEquityInvestmentsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_CLEARWATERGROUPLLCMember" abstract="true" name="CLEARWATERGROUPLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_AerospaceAndDefenseSectorMember" abstract="true" name="AerospaceAndDefenseSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_BuildingInfrastructureProductsSectorMember" abstract="true" name="BuildingInfrastructureProductsSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_BusinessServicesSectorMember" abstract="true" name="BusinessServicesSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_CommercialServicesAndSuppliesMember" abstract="true" name="CommercialServicesAndSuppliesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ConsumerProductsSectorMember" abstract="true" name="ConsumerProductsSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ConsumerServicesSectorMember" abstract="true" name="ConsumerServicesSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_DataProcessingOutsourcedServicesSectorMember" abstract="true" name="DataProcessingOutsourcedServicesSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_DistributionSectorMember" abstract="true" name="DistributionSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_EducationSectorMember" abstract="true" name="EducationSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_EnergyServicesMidstreamSectorMember" abstract="true" name="EnergyServicesMidstreamSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_EnvironmentalServicesSectorMember" abstract="true" name="EnvironmentalServicesSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_FoodAgricultureAndBeverageSectorMember" abstract="true" name="FoodAgricultureAndBeverageSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_HealthcareEquipmentSuppliesSectorMember" abstract="true" name="HealthcareEquipmentSuppliesSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_HealthcareProductsSectorMember" abstract="true" name="HealthcareProductsSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_HealthcareServicesSectorMember" abstract="true" name="HealthcareServicesSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_IndustrialMachinerySectorMember" abstract="true" name="IndustrialMachinerySectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_IndustrialProductsSectorMember" abstract="true" name="IndustrialProductsSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_IndustrialServicesSectorMember" abstract="true" name="IndustrialServicesSectorMember" 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-types:domainItemType"/>
  <xs:element id="cswc_MoviesEntertainmentSectorMember" abstract="true" name="MoviesEntertainmentSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_PharmaceuticalsBiotechnologyLifeSciencesSectorMember" abstract="true" name="PharmaceuticalsBiotechnologyLifeSciencesSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ResearchConsultingServicesSectorMember" abstract="true" name="ResearchConsultingServicesSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_RestaurantsSectorMember" abstract="true" name="RestaurantsSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_SoftwareAndITServicesSectorMember" abstract="true" name="SoftwareAndITServicesSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_SpecialtyRetailSectorMember" abstract="true" name="SpecialtyRetailSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_TechnologyProductsComponentsMember" abstract="true" name="TechnologyProductsComponentsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_TelecommunicationsSectorMember" abstract="true" name="TelecommunicationsSectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_OtherFinancialInstrumentsMember" abstract="true" name="OtherFinancialInstrumentsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_InvestmentOwnedBalancePercentOfShares" abstract="false" name="InvestmentOwnedBalancePercentOfShares" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="cswc_DebtInstrumentBasisSpreadOnVariableRateAdjustment" abstract="false" name="DebtInstrumentBasisSpreadOnVariableRateAdjustment" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="cswc_InvestmentOwnedPercentOfPortfolio" abstract="false" name="InvestmentOwnedPercentOfPortfolio" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="cswc_InvestmentCompanyInvestmentOwnedNonQualifiedAssetsPercentOfNetAssets" abstract="false" name="InvestmentCompanyInvestmentOwnedNonQualifiedAssetsPercentOfNetAssets" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="cswc_InvestmentOwnedPercentOfTotalAssets" abstract="false" name="InvestmentOwnedPercentOfTotalAssets" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="cswc_EscrowReceivablePolicyPolicyTextBlock" abstract="false" name="EscrowReceivablePolicyPolicyTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="cswc_RevenueRecognitionFeeIncomePolicyPolicyTextBlock" abstract="false" name="RevenueRecognitionFeeIncomePolicyPolicyTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="cswc_WarrantsPolicyTextBlock" abstract="false" name="WarrantsPolicyTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="cswc_InvestmentCompanyDistributionToShareholdersTableTextBlock" abstract="false" name="InvestmentCompanyDistributionToShareholdersTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="cswc_InvestmentCompanyDividendsAndDistributionsTaxDifferencesTableTextBlock" abstract="false" name="InvestmentCompanyDividendsAndDistributionsTaxDifferencesTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="cswc_InvestmentCompanyComponentsOfDistributableEarningsAccumulatedLossesTableTextBlock" abstract="false" name="InvestmentCompanyComponentsOfDistributableEarningsAccumulatedLossesTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="cswc_InvestmentCompanyScheduleOfUnusedFinancialCommitmentsTableTextBlock" abstract="false" name="InvestmentCompanyScheduleOfUnusedFinancialCommitmentsTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="cswc_InvestmentCompanyScheduleOfUnfundedDebtCommitmentsTableTextBlock" abstract="false" name="InvestmentCompanyScheduleOfUnfundedDebtCommitmentsTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <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_InvestmentCompanyTargetInvestment" abstract="false" name="InvestmentCompanyTargetInvestment" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_InvestmentCompanyPercentOfQualifiedAssets" abstract="false" name="InvestmentCompanyPercentOfQualifiedAssets" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="cswc_InvestmentCompanyPercentOfNonqualifiedAssets" abstract="false" name="InvestmentCompanyPercentOfNonqualifiedAssets" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="cswc_InvestmentOwnedNonAccrualStatusMember" abstract="true" name="InvestmentOwnedNonAccrualStatusMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_InvestmentOwnedFairValueMember" abstract="true" name="InvestmentOwnedFairValueMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_InvestmentOwnedCostMember" abstract="true" name="InvestmentOwnedCostMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_A2010PlanMember" abstract="true" name="A2010PlanMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_InvestmentIncomePaidInKindInterestPercent" abstract="false" name="InvestmentIncomePaidInKindInterestPercent" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="cswc_ShareBasedCompensationArrangementByShareBasedPaymentAwardPlanExpirationPeriod" abstract="false" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardPlanExpirationPeriod" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="cswc_DebtSecuritiesFirstLienMember" abstract="true" name="DebtSecuritiesFirstLienMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_DebtSecuritiesSecondLienMember" abstract="true" name="DebtSecuritiesSecondLienMember" 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-types:domainItemType"/>
  <xs:element id="cswc_EarnoutMember" abstract="true" name="EarnoutMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_InvestmentTypeConcentrationRiskMember" abstract="true" name="InvestmentTypeConcentrationRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_IndustryConcentrationRiskMember" abstract="true" name="IndustryConcentrationRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_FirstLienLoansLastOutMember" abstract="true" name="FirstLienLoansLastOutMember" 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-types:domainItemType"/>
  <xs:element id="cswc_SecondLienLoansSplitLienTermLoansMember" abstract="true" name="SecondLienLoansSplitLienTermLoansMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_UnsecuredConvertibleNotesMember" abstract="true" name="UnsecuredConvertibleNotesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_CommercialServicesSuppliesMember" abstract="true" name="CommercialServicesSuppliesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_TrinityCapitalInc.Member" abstract="true" name="TrinityCapitalInc.Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_PrivatelyHeldDebtAndEquityInstrumentsMember" abstract="true" name="PrivatelyHeldDebtAndEquityInstrumentsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ValuationEnterpriseValueWaterfallApproachMember" abstract="true" name="ValuationEnterpriseValueWaterfallApproachMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_MeasurementInputCostMember" abstract="true" name="MeasurementInputCostMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types: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_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPaidInKindInterestCapitalized" abstract="false" name="FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPaidInKindInterestCapitalized" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" 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_CorporateCreditFacilityMember" abstract="true" name="CorporateCreditFacilityMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_SpecialPurposeVehicleFinancingCreditFacilityMember" abstract="true" name="SpecialPurposeVehicleFinancingCreditFacilityMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types: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_A2029ConvertibleNotesOverallotementMember" abstract="true" name="A2029ConvertibleNotesOverallotementMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_DebtInstrumentRatePeriodAxis" abstract="true" name="DebtInstrumentRatePeriodAxis" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:dimensionItem" type="xbrli:stringItemType"/>
  <xs:element id="cswc_DebtInstrumentRatePeriodDomain" abstract="true" name="DebtInstrumentRatePeriodDomain" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_BeforeMarch202027Member" abstract="true" name="BeforeMarch202027Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_AfterMarch202027Member" abstract="true" name="AfterMarch202027Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_BeforeApril202024Member" abstract="true" name="BeforeApril202024Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_AfterApril202024Member" abstract="true" name="AfterApril202024Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_SBICIMember" abstract="true" name="SBICIMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_SBICIIMember" abstract="true" name="SBICIIMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_InvestmentCompanySeniorSecurityIndebtednessAssetCoverageRatioMinimumThreshold" abstract="false" name="InvestmentCompanySeniorSecurityIndebtednessAssetCoverageRatioMinimumThreshold" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="cswc_NumberOfRevolvingCreditFacility" abstract="false" name="NumberOfRevolvingCreditFacility" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <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_NumberOfLenders" abstract="false" name="NumberOfLenders" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="cswc_DebtInstrumentCovenantSeniorCoverageRatioMinimum" abstract="false" name="DebtInstrumentCovenantSeniorCoverageRatioMinimum" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:pureItemType"/>
  <xs:element id="cswc_DebtInstrumentCovenantRegulatoryAssetCoverageRatioMinimum" abstract="false" name="DebtInstrumentCovenantRegulatoryAssetCoverageRatioMinimum" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:pureItemType"/>
  <xs:element id="cswc_DebtInstrumentCovenantInterestCoverageRatioMinimum" abstract="false" name="DebtInstrumentCovenantInterestCoverageRatioMinimum" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:pureItemType"/>
  <xs:element id="cswc_LineOfCreditFacilityAccordionFeatureHigherBorrowingCapacityOption" abstract="false" name="LineOfCreditFacilityAccordionFeatureHigherBorrowingCapacityOption" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_DebtInstrumentIssuancePricePercentOfPrincipalAmount" abstract="false" name="DebtInstrumentIssuancePricePercentOfPrincipalAmount" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="cswc_DebtInstrumentYieldToMaturityAtIssuance" abstract="false" name="DebtInstrumentYieldToMaturityAtIssuance" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="cswc_DebtInstrumentConvertiblePerShareDividendThreshold" abstract="false" name="DebtInstrumentConvertiblePerShareDividendThreshold" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types:perShareItemType"/>
  <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_RegulatoryCapital" abstract="false" name="RegulatoryCapital" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <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_DebtInstrumentLeverageCommitmentAmount" abstract="false" name="DebtInstrumentLeverageCommitmentAmount" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_DebtInstrumentConvertibleConversionPremiumPercentage" abstract="false" name="DebtInstrumentConvertibleConversionPremiumPercentage" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:pureItemType"/>
  <xs:element id="cswc_InterestExpenseAndUnusedCommitmentFees" abstract="false" name="InterestExpenseAndUnusedCommitmentFees" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_SmallBusinessAdministrationDebenturesDueSeptember2031Member" abstract="true" name="SmallBusinessAdministrationDebenturesDueSeptember2031Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_SmallBusinessAdministrationDebenturesDueMarch2032Member" abstract="true" name="SmallBusinessAdministrationDebenturesDueMarch2032Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types: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_SmallBusinessAdministrationDebenturesDueMarch2033Member" abstract="true" name="SmallBusinessAdministrationDebenturesDueMarch2033Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_SmallBusinessAdministrationDebenturesDueSeptember2033Member" abstract="true" name="SmallBusinessAdministrationDebenturesDueSeptember2033Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_SmallBusinessAdministrationDebenturesDueMarch2034Member" abstract="true" name="SmallBusinessAdministrationDebenturesDueMarch2034Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_SmallBusinessAdministrationDebenturesDueDecember2034PoolMember" abstract="true" name="SmallBusinessAdministrationDebenturesDueDecember2034PoolMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_SmallBusinessAdministrationDebenturesDueMarch2035PoolMember" abstract="true" name="SmallBusinessAdministrationDebenturesDueMarch2035PoolMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_SmallBusinessAdministrationDebenturesDueMarch2036PoolMember" abstract="true" name="SmallBusinessAdministrationDebenturesDueMarch2036PoolMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_SmallBusinessAdministrationDebenturesMarch2026PoolMember" abstract="true" name="SmallBusinessAdministrationDebenturesMarch2026PoolMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_O2026Q4DividendsMember" abstract="true" name="O2026Q4DividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_O2026M1TaxYearDividendsMember" abstract="true" name="O2026M1TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_O2026M2TaxYearDividendsMember" abstract="true" name="O2026M2TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_O2026M3TaxYearDividendsMember" abstract="true" name="O2026M3TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_S2026Q4DividendsMember" abstract="true" name="S2026Q4DividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_O2026M4TaxYearDividendsMember" abstract="true" name="O2026M4TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_O2026M5TaxYearDividendsMember" abstract="true" name="O2026M5TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_O2026M6TaxYearDividendsMember" abstract="true" name="O2026M6TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_O2025AQualifiedDividendsMember" abstract="true" name="O2025AQualifiedDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_O2027Q1DividendsMember" abstract="true" name="O2027Q1DividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_S2027Q1DividendsMember" abstract="true" name="S2027Q1DividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_InvestmentCompanyOrdinaryInterestRelatedDistributionsPercentage" abstract="false" name="InvestmentCompanyOrdinaryInterestRelatedDistributionsPercentage" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="cswc_InvestmentCompanyDistributableEarningsLossAccumulatedOrdinaryIncomeLossPerShare" abstract="false" name="InvestmentCompanyDistributableEarningsLossAccumulatedOrdinaryIncomeLossPerShare" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types:perShareItemType"/>
  <xs:element id="cswc_O2025Q1TaxYearDividendsMember" abstract="true" name="O2025Q1TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_O2025Q2TaxYearDividendsMember" abstract="true" name="O2025Q2TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_O2025M7TaxYearDividendsMember" abstract="true" name="O2025M7TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_O2025M8TaxYearDividendsMember" abstract="true" name="O2025M8TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_O2025M9TaxYearDividendsMember" abstract="true" name="O2025M9TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_O2025M10TaxYearDividendsMember" abstract="true" name="O2025M10TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_O2025M11TaxYearDividendsMember" abstract="true" name="O2025M11TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_O2025Q12TaxYearDividendsMember" abstract="true" name="O2025Q12TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_O2024Q1TaxYearDividendsMember" abstract="true" name="O2024Q1TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_O2024Q2TaxYearDividendsMember" abstract="true" name="O2024Q2TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_O2024Q3TaxYearDividendsMember" abstract="true" name="O2024Q3TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_O2024Q4TaxYearDividendsMember" abstract="true" name="O2024Q4TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_O2023Q1TaxYearDividendsMember" abstract="true" name="O2023Q1TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_O2023Q2TaxYearDividendsMember" abstract="true" name="O2023Q2TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_O2023Q3TaxYearDividendsMember" abstract="true" name="O2023Q3TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_O2023Q4TaxYearDividendsMember" abstract="true" name="O2023Q4TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_S2025Q1TaxYearDividendsMember" abstract="true" name="S2025Q1TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_S2025Q2TaxYearDividendsMember" abstract="true" name="S2025Q2TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_S2025M9TaxYearDividendsMember" abstract="true" name="S2025M9TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_S2025M12TaxYearDividendsMember" abstract="true" name="S2025M12TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_S2024Q1TaxYearDividendsMember" abstract="true" name="S2024Q1TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_S2024Q2TaxYearDividendsMember" abstract="true" name="S2024Q2TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_S2024Q3TaxYearDividendsMember" abstract="true" name="S2024Q3TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_S2024Q4TaxYearDividendsMember" abstract="true" name="S2024Q4TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_S2023Q1TaxYearDividendsMember" abstract="true" name="S2023Q1TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_S2023Q2TaxYearDividendsMember" abstract="true" name="S2023Q2TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_S2023Q3TaxYearDividendsMember" abstract="true" name="S2023Q3TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_S2023Q4TaxYearDividendsMember" abstract="true" name="S2023Q4TaxYearDividendsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_InvestmentCompanySummaryOfDividendsAndDistributionsTaxDifferencesTable" abstract="true" name="InvestmentCompanySummaryOfDividendsAndDistributionsTaxDifferencesTable" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:hypercubeItem" type="xbrli:stringItemType"/>
  <xs:element id="cswc_InvestmentCompanySummaryOfDividendsAndDistributionsTaxDifferencesLineItems" abstract="true" name="InvestmentCompanySummaryOfDividendsAndDistributionsTaxDifferencesLineItems" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="cswc_InvestmentCompanyTaxDividendDistribution" abstract="false" name="InvestmentCompanyTaxDividendDistribution" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <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_InvestmentCompanyTaxBasisReconciliationLossGainRecognizedOnDispositionsIncreaseDecreaseInTaxableIncome" abstract="false" name="InvestmentCompanyTaxBasisReconciliationLossGainRecognizedOnDispositionsIncreaseDecreaseInTaxableIncome" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <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_InvestmentCompanyTaxBasisReconciliationDividendIncomeSubsidiaryIncreaseDecreaseInTaxableIncome" abstract="false" name="InvestmentCompanyTaxBasisReconciliationDividendIncomeSubsidiaryIncreaseDecreaseInTaxableIncome" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <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_InvestmentCompanyTaxBasisReconciliationNonDeductibleCompensationIncreaseDecreaseInTaxableIncome" abstract="false" name="InvestmentCompanyTaxBasisReconciliationNonDeductibleCompensationIncreaseDecreaseInTaxableIncome" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <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_InvestmentCompanyTaxBasisReconciliationInterestOnNonAccrualLoansIncreaseDecreaseInTaxableIncome" abstract="false" name="InvestmentCompanyTaxBasisReconciliationInterestOnNonAccrualLoansIncreaseDecreaseInTaxableIncome" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_InvestmentCompanyTaxDistributionOrdinaryIncome" abstract="false" name="InvestmentCompanyTaxDistributionOrdinaryIncome" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_InvestmentCompanyUndistributedTaxableIncome" abstract="false" name="InvestmentCompanyUndistributedTaxableIncome" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_DistributableEarningsTaxBasis" abstract="false" name="DistributableEarningsTaxBasis" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <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_IncomeTaxExpenseBenefitFromSubsidiaries" abstract="false" name="IncomeTaxExpenseBenefitFromSubsidiaries" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_EquityATMProgramMember" abstract="true" name="EquityATMProgramMember" 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_SaleOfStockNumberOfAdditionalSalesAgents" abstract="false" name="SaleOfStockNumberOfAdditionalSalesAgents" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="cswc_SaleOfStockGrossSalesPriceCommissionPercentage" abstract="false" name="SaleOfStockGrossSalesPriceCommissionPercentage" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="cswc_SaleOfStockWeightedAveragePricePerShare" abstract="false" name="SaleOfStockWeightedAveragePricePerShare" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:perShareItemType"/>
  <xs:element id="cswc_SaleOfStockConsiderationReceivable" abstract="false" name="SaleOfStockConsiderationReceivable" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_SharesRepurchasedRestrictedStockAwardsVestedMember" abstract="true" name="SharesRepurchasedRestrictedStockAwardsVestedMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_A2021EmployeePlanMember" abstract="true" name="A2021EmployeePlanMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_NonEmployeeDirectorPlanMember" abstract="true" name="NonEmployeeDirectorPlanMember" 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_A2010PlanAnd2021EmployeePlanMember" abstract="true" name="A2010PlanAnd2021EmployeePlanMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types: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_DefinedBenefitPlanNetPeriodicBenefitCostCreditInterestCostStatementOfIncomeOrComprehensiveIncomeExtensibleListNotDisclosedFlag" abstract="false" name="DefinedBenefitPlanNetPeriodicBenefitCostCreditInterestCostStatementOfIncomeOrComprehensiveIncomeExtensibleListNotDisclosedFlag" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="cswc_DefinedBenefitPlanNetPeriodicBenefitCostCreditAmortizationOfGainLossStatementOfIncomeOrComprehensiveIncomeExtensibleListNotDisclosedFlag" abstract="false" name="DefinedBenefitPlanNetPeriodicBenefitCostCreditAmortizationOfGainLossStatementOfIncomeOrComprehensiveIncomeExtensibleListNotDisclosedFlag" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="cswc_DefinedBenefitPlanNetPeriodicBenefitCostCreditExpectedReturnLossStatementOfIncomeOrComprehensiveIncomeExtensibleListNotDisclosedFlag" abstract="false" name="DefinedBenefitPlanNetPeriodicBenefitCostCreditExpectedReturnLossStatementOfIncomeOrComprehensiveIncomeExtensibleListNotDisclosedFlag" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="cswc_DebtCommitmentsMember" abstract="true" name="DebtCommitmentsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_UnusedCommitmentsToLendOtherMember" abstract="true" name="UnusedCommitmentsToLendOtherMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ExpirationPeriodAxis" abstract="true" name="ExpirationPeriodAxis" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:dimensionItem" type="xbrli:stringItemType"/>
  <xs:element id="cswc_ExpirationPeriodDomain" abstract="true" name="ExpirationPeriodDomain" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_FinancialCommitmentYearOneMember" abstract="true" name="FinancialCommitmentYearOneMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_FinancialCommitmentYearTwoMember" abstract="true" name="FinancialCommitmentYearTwoMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_FinancialCommitmentYearThreeMember" abstract="true" name="FinancialCommitmentYearThreeMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_FinancialCommitmentYearFourMember" abstract="true" name="FinancialCommitmentYearFourMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_FinancialCommitmentYearFiveMember" abstract="true" name="FinancialCommitmentYearFiveMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_FinancialCommitmentYearSixMember" abstract="true" name="FinancialCommitmentYearSixMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_FinancialCommitmentYearSevenMember" abstract="true" name="FinancialCommitmentYearSevenMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ExpirationTrancheAxis" abstract="true" name="ExpirationTrancheAxis" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:dimensionItem" type="xbrli:stringItemType"/>
  <xs:element id="cswc_ExpirationTrancheDomain" abstract="true" name="ExpirationTrancheDomain" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ExpirationTrancheOneMember" abstract="true" name="ExpirationTrancheOneMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ExpirationTrancheTwoMember" abstract="true" name="ExpirationTrancheTwoMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ExpirationTrancheThreeMember" abstract="true" name="ExpirationTrancheThreeMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_LesseeOperatingLeaseExtensionTerm" abstract="false" name="LesseeOperatingLeaseExtensionTerm" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="cswc_LesseeOperatingLeaseLiabilityUndiscountedExcessAmountNotDisclosed" abstract="false" name="LesseeOperatingLeaseLiabilityUndiscountedExcessAmountNotDisclosed" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_CapitalSouthwestCorporationAndTrinityCapitalInc.Member" abstract="true" name="CapitalSouthwestCorporationAndTrinityCapitalInc.Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_InvestmentCompanyPerShareDataAbstract" abstract="true" name="InvestmentCompanyPerShareDataAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="cswc_InvestmentCompanyInvestmentIncomeLossGrossPerShare" abstract="false" name="InvestmentCompanyInvestmentIncomeLossGrossPerShare" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:perShareItemType"/>
  <xs:element id="cswc_InvestmentCompanyInvestmentIncomeLossOperatingExpensesPerShare" abstract="false" name="InvestmentCompanyInvestmentIncomeLossOperatingExpensesPerShare" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:perShareItemType"/>
  <xs:element id="cswc_InvestmentCompanyInvestmentIncomeLossTaxesPerShare" abstract="false" name="InvestmentCompanyInvestmentIncomeLossTaxesPerShare" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:perShareItemType"/>
  <xs:element id="cswc_InvestmentCompanyNetUnrealizedDepreciationAppreciationOnInvestmentsNetOfTaxPerShare" abstract="false" name="InvestmentCompanyNetUnrealizedDepreciationAppreciationOnInvestmentsNetOfTaxPerShare" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:perShareItemType"/>
  <xs:element id="cswc_InvestmentCompanyExtinguishmentOfDebtGainLossPerShareNetOfTax" abstract="false" name="InvestmentCompanyExtinguishmentOfDebtGainLossPerShareNetOfTax" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:perShareItemType"/>
  <xs:element id="cswc_InvestmentCompanyAccretiveEffectOfShareIssuancesAndRepurchasesPerShare" abstract="false" name="InvestmentCompanyAccretiveEffectOfShareIssuancesAndRepurchasesPerShare" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:perShareItemType"/>
  <xs:element id="cswc_InvestmentCompanySpinOffCompensationPlanDistributionNetOfTaxPerShare" abstract="false" name="InvestmentCompanySpinOffCompensationPlanDistributionNetOfTaxPerShare" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:perShareItemType"/>
  <xs:element id="cswc_InvestmentCompanyCommonStockWithheldForPayrollTaxesUponVestingOfRestrictedStockPerShare" abstract="false" name="InvestmentCompanyCommonStockWithheldForPayrollTaxesUponVestingOfRestrictedStockPerShare" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:perShareItemType"/>
  <xs:element id="cswc_InvestmentCompanyExerciseOfEmployeeStockOptionsPerShare" abstract="false" name="InvestmentCompanyExerciseOfEmployeeStockOptionsPerShare" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:perShareItemType"/>
  <xs:element id="cswc_InvestmentCompanyShareBasedCompensationExpensePerShare" abstract="false" name="InvestmentCompanyShareBasedCompensationExpensePerShare" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:perShareItemType"/>
  <xs:element id="cswc_InvestmentCompanyChangeInRestorationPlanPerShare" abstract="false" name="InvestmentCompanyChangeInRestorationPlanPerShare" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:perShareItemType"/>
  <xs:element id="cswc_InvestmentCompanyOtherAdjustmentsPerShare" abstract="false" name="InvestmentCompanyOtherAdjustmentsPerShare" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:perShareItemType"/>
  <xs:element id="cswc_InvestmentCompanyRatioToAverageNetAssetsAndSupplementalDataAbstract" abstract="true" name="InvestmentCompanyRatioToAverageNetAssetsAndSupplementalDataAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="cswc_InvestmentCompanyExpenseRatioExcludingInterestAfterFeeWaiverAndIncentiveFeeDeduction" abstract="false" name="InvestmentCompanyExpenseRatioExcludingInterestAfterFeeWaiverAndIncentiveFeeDeduction" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="cswc_CapTrinCreditFacilityMember" abstract="true" name="CapTrinCreditFacilityMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_CapTrinPartnersLLCMember" abstract="true" name="CapTrinPartnersLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_AssetsPercent" abstract="false" name="AssetsPercent" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <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_InvestmentsInAndAdvancesToAffiliatesAtFairValueUnrealizedChangeInFairValue" abstract="false" name="InvestmentsInAndAdvancesToAffiliatesAtFairValueUnrealizedChangeInFairValue" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="cswc_EffectiveAllocationAndManagementOfCapitalRiskMember" abstract="true" name="EffectiveAllocationAndManagementOfCapitalRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_FutureRealizedLossesRiskMember" abstract="true" name="FutureRealizedLossesRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ReferralRelationshipRiskMember" abstract="true" name="ReferralRelationshipRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_CreditFacilityDefaultRiskMember" abstract="true" name="CreditFacilityDefaultRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_DebtObligationCovenantsRiskMember" abstract="true" name="DebtObligationCovenantsRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_LeverageRiskMember" abstract="true" name="LeverageRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_QualifyingAssetsFailureToQualifyRiskMember" abstract="true" name="QualifyingAssetsFailureToQualifyRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_OperatingFlexibilityFailureToQualifyRiskMember" abstract="true" name="OperatingFlexibilityFailureToQualifyRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_TaxQualificationRiskMember" abstract="true" name="TaxQualificationRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_TaxLiabilityRiskMember" abstract="true" name="TaxLiabilityRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_FairValueValuationRiskMember" abstract="true" name="FairValueValuationRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_CapitalMarketsDisruptionsAndEconomicUncertaintyRiskMember" abstract="true" name="CapitalMarketsDisruptionsAndEconomicUncertaintyRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_InflationRiskMember" abstract="true" name="InflationRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_PoliticalSocialAndEconomicUncertaintyRiskMember" abstract="true" name="PoliticalSocialAndEconomicUncertaintyRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_TariffImportAndExportRegulatoryUncertaintyRiskMember" abstract="true" name="TariffImportAndExportRegulatoryUncertaintyRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_EffectOfGlobalClimateChangeRiskMember" abstract="true" name="EffectOfGlobalClimateChangeRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_EnvironmentalSocialAndGovernanceRiskMember" abstract="true" name="EnvironmentalSocialAndGovernanceRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_DowngradesToUSCreditRatingAutomaticSpendingCutsOrGovernmentShutdownRiskMember" abstract="true" name="DowngradesToUSCreditRatingAutomaticSpendingCutsOrGovernmentShutdownRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_BankRelationshipRiskMember" abstract="true" name="BankRelationshipRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ChangeInLawsOrRegulationRiskMember" abstract="true" name="ChangeInLawsOrRegulationRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_CompetitiveMarketRiskMember" abstract="true" name="CompetitiveMarketRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_QualifiedPersonnelAttractionAndRetentionRiskMember" abstract="true" name="QualifiedPersonnelAttractionAndRetentionRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_AssetCoverageRequirementRiskMember" abstract="true" name="AssetCoverageRequirementRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ComplianceRiskMember" abstract="true" name="ComplianceRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_TransactionsWithAffiliatesRiskMember" abstract="true" name="TransactionsWithAffiliatesRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_RegulatoryRiskMember" abstract="true" name="RegulatoryRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_SmallBusinessAdministrationRegulatoryRiskMember" abstract="true" name="SmallBusinessAdministrationRegulatoryRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ShareholderDilutionRiskMember" abstract="true" name="ShareholderDilutionRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_LegislativeOrTaxationRiskMember" abstract="true" name="LegislativeOrTaxationRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_InformationSystemsDependencyRiskMember" abstract="true" name="InformationSystemsDependencyRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_CybersecuritySystemsRiskMember" abstract="true" name="CybersecuritySystemsRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_TerroristAttacksActsOfWarOrNaturalDisastersRiskMember" abstract="true" name="TerroristAttacksActsOfWarOrNaturalDisastersRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_SecuritiesLitigationOrShareholderActivismRiskMember" abstract="true" name="SecuritiesLitigationOrShareholderActivismRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_InvestmentPortfolioRiskMember" abstract="true" name="InvestmentPortfolioRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_SeniorLoansRiskMember" abstract="true" name="SeniorLoansRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_LiquidityRiskMember" abstract="true" name="LiquidityRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_DefaultRiskMember" abstract="true" name="DefaultRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_UnrealizedGainRiskMember" abstract="true" name="UnrealizedGainRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_DebtInvestmentsPrepaymentRiskMember" abstract="true" name="DebtInvestmentsPrepaymentRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_NonperformingLoanRiskMember" abstract="true" name="NonperformingLoanRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_InterestRateExposureRiskMember" abstract="true" name="InterestRateExposureRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_SubordinatedDebtRiskMember" abstract="true" name="SubordinatedDebtRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_RegulatoryRestrictionRiskMember" abstract="true" name="RegulatoryRestrictionRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_PortfolioControlRiskMember" abstract="true" name="PortfolioControlRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_PriorityRiskMember" abstract="true" name="PriorityRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_NewSeniorDebtRiskMember" abstract="true" name="NewSeniorDebtRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_HealthcareLawsAndOtherRegulationRiskMember" abstract="true" name="HealthcareLawsAndOtherRegulationRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_BusinessServicesIndustryRiskMember" abstract="true" name="BusinessServicesIndustryRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_MarketPriceRiskMember" abstract="true" name="MarketPriceRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_OwnShareDealingRiskMember" abstract="true" name="OwnShareDealingRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_MarketDiscountRiskMember" abstract="true" name="MarketDiscountRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_UnsecuredSubordinatedNoteRiskMember" abstract="true" name="UnsecuredSubordinatedNoteRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_StructurallySubordinatedNoteRiskMember" abstract="true" name="StructurallySubordinatedNoteRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_IndentureLimitedProtectionRiskMember" abstract="true" name="IndentureLimitedProtectionRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_SettlementOrConversionRiskMember" abstract="true" name="SettlementOrConversionRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_CashPaymentSettlementOrConversionRiskMember" abstract="true" name="CashPaymentSettlementOrConversionRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ConversionDilutionRiskMember" abstract="true" name="ConversionDilutionRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_ActiveMarketRiskMember" abstract="true" name="ActiveMarketRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_DefaultPaymentRiskMember" abstract="true" name="DefaultPaymentRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_RedemptionRiskMember" abstract="true" name="RedemptionRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_DividendRiskMember" abstract="true" name="DividendRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_DividendPaymentRiskMember" abstract="true" name="DividendPaymentRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_CapitalRaiseTermsRiskMember" abstract="true" name="CapitalRaiseTermsRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_AlternativeReferenceRatesEconomicResultsRiskMember" abstract="true" name="AlternativeReferenceRatesEconomicResultsRiskMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_December2022NotesMember" abstract="true" name="December2022NotesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_October2024NotesMember" abstract="true" name="October2024NotesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_CreditFacilityMember" abstract="true" name="CreditFacilityMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="cswc_SBADebenturesMember" abstract="true" name="SBADebenturesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
</xs:schema>
