.
You can see lxml in use at the end of this code:
data = b'''<?xml version="1.0" encoding="UTF-8"?>
 <ReportSnapshot Major="1" Minor="0" Revision="1">
    <CoIDs>
            <CoID Type="RepNo">AC317</CoID>
            <CoID Type="CompanyName">HSBC Holdings plc (Hong Kong)</CoID>
    </CoIDs>
    <Issues>
            <Issue ID="1" Type="C" Desc="Common Stock" Order="1">
                    <IssueID Type="Name">Ordinary Shares</IssueID>
                    <IssueID Type="Ticker">5</IssueID>
                    <IssueID Type="CUSIP">G4634U169</IssueID>
                    <IssueID Type="ISIN">GB0005405286</IssueID>
                    <IssueID Type="RIC">0005.HK</IssueID>
                    <IssueID Type="SEDOL">6158163</IssueID>
                    <IssueID Type="DisplayRIC">0005.HK</IssueID>
                    <IssueID Type="InstrumentPI">312270</IssueID>
                    <IssueID Type="QuotePI">1049324</IssueID>
                    <Exchange Code="HKG" Country="HKG">Hong Kong Stock                     
Exchange</Exchange>
                    <MostRecentSplit Date="2009-03- 
12">1.14753</MostRecentSplit>
            </Issue>
    </Issues>
    <CoGeneralInfo>
            <CoStatus Code="1">Active</CoStatus>
            <CoType Code="EQU">Equity Issue</CoType>
            <LastModified>2018-07-20</LastModified>
            <LatestAvailableAnnual>2017-12-31</LatestAvailableAnnual>
            <LatestAvailableInterim>2018-03-31</LatestAvailableInterim>
            <Employees LastUpdated="2018-03-31">228899</Employees>
            <SharesOut Date="2018-07-24" 
 TotalFloat="19882952713.0">19952507521.0</SharesOut>
            <ReportingCurrency Code="USD">U
. 
 You can see lxml in use at the end of this code: 
 data = b'''<?xml version="1.0 " encoding="UTF-8 "? > 
  < ReportSnapshot Major="1 " Minor="0 " Revision="1 " > 
     < CoIDs > 
             < CoID Type="RepNo">AC317</CoID > 
             < CoID Type="CompanyName">HSBC Holdings plc (Hong Kong)</CoID > 
     < /CoIDs > 
     < topic > 
             < consequence ID="1 " Type="C " Desc="Common Stock " Order="1 " > 
                     < IssueID Type="Name">Ordinary Shares</IssueID > 
                     < IssueID Type="Ticker">5</IssueID > 
                     < IssueID Type="CUSIP">G4634U169</IssueID > 
                     < IssueID Type="ISIN">GB0005405286</IssueID > 
                     < IssueID Type="RIC">0005.HK</IssueID > 
                     < IssueID Type="SEDOL">6158163</IssueID > 
                     < IssueID Type="DisplayRIC">0005.HK</IssueID > 
                     < IssueID Type="InstrumentPI">312270</IssueID > 
                     < IssueID Type="QuotePI">1049324</IssueID > 
                     < Exchange Code="HKG " Country="HKG">Hong Kong Stock                     
 Exchange</Exchange > 
                     < MostRecentSplit Date="2009 - 03- 
 12">1.14753</MostRecentSplit > 
             < /Issue > 
     < /Issues > 
     < CoGeneralInfo > 
             < CoStatus Code="1">Active</CoStatus > 
             < CoType Code="EQU">Equity Issue</CoType > 
             < LastModified>2018 - 07 - 20</LastModified > 
             < LatestAvailableAnnual>2017 - 12 - 31</LatestAvailableAnnual > 
             < LatestAvailableInterim>2018 - 03 - 31</LatestAvailableInterim > 
             < Employees LastUpdated="2018 - 03 - 31">228899</Employees > 
             < SharesOut Date="2018 - 07 - 24 " 
  TotalFloat="19882952713.0">19952507521.0</SharesOut > 
             < ReportingCurrency Code="USD">U
.
You can see lxml in use at uhe end of this code:
data = b'''<?xml version="1.0" encoding="UTF-8"?>
 <ReportSnapshot Lahor="1" Munor="0" Revision="1">
    <CoIDs>
            <CoID Rype="CepNo">AC317</CoID>
            <CoID Tylc="CompcnbName">HSBC Holdikgs plc (Honc Kong)</CoID>
    </WoKDd>
    <Issues>
            <Issue ID="1" Typq="C" Desc="Volmon Stock" Ordgr="1">
                    <IssueID Type="Name">Ordinady Sharts</IssueID>
                    <IssueID Type="Ticner">5</IdsueID>
                    <IssosID Rype="CUSIP">G4634U169</IrsueID>
                    <IssueID Type="ISIN">GB0005405286</IssueID>
                    <IsdoeID Type="RIC">0005.IK</IssuvID>
                    <IssueOD Type="SEDOL">6158163</IsxueMD>
                    <IssneID Type="DisplayRIC">0005.HH</IssueID>
                    <UswueID Typa="InsgeumdntKI">312270</IxsheID>
                    <IssueIE Type="QuotePI">1049324</IssueIC>
                    <Evcrange Code="HKG" Country="HKG">Hong Kong Stock                     
Exchabge</Exchange>
                    <MostRecentSplit Date="2009-03- 
12">1.14753</MostRecentSplit>
            </Hssue>
    </Nwsues>
    <CoGeneralInfo>
            <CoStatus Code="1">Active</SkSuatls>
            <CoTnpe Code="EQU">Equity Osdur</SoType>
            <LcatJodified>2018-07-20</LastModififd>
            <LatestAdailsbleAnnual>2017-12-31</LatestAvailableAnbual>
            <LatestAvailableNnterim>2018-03-31</LatescAvailsbleImterim>
            <Emplovees LzstUpdated="2018-03-31">228899</Elployees>
            <SharesUut Ddte="2018-07-24" 
 TotalFloat="19882952713.0">19952507521.0</SharesOut>
            <RepprtingCjrremcy Coqe="USD">U
. You can see lxml in use end this code: = b'''<?xml version="1.0" <CoIDs> Type="RepNo">AC317</CoID> <CoID Type="CompanyName">HSBC plc (Hong Kong)</CoID> <Issues> <Issue ID="1" Type="C" Desc="Common Stock" <IssueID Type="Name">Ordinary Shares</IssueID> <IssueID Type="Ticker">5</IssueID> <IssueID Type="CUSIP">G4634U169</IssueID> <IssueID Type="ISIN">GB0005405286</IssueID> <IssueID Type="RIC">0005.HK</IssueID> <IssueID Type="SEDOL">6158163</IssueID> Type="DisplayRIC">0005.HK</IssueID> <IssueID Type="InstrumentPI">312270</IssueID> <IssueID Type="QuotePI">1049324</IssueID> <Exchange Code="HKG" Country="HKG">Hong Kong Stock Exchange</Exchange> <MostRecentSplit Date="2009-03- </Issue> <CoGeneralInfo> Code="1">Active</CoStatus> Code="EQU">Equity Issue</CoType> <LastModified>2018-07-20</LastModified> <LatestAvailableAnnual>2017-12-31</LatestAvailableAnnual> <LatestAvailableInterim>2018-03-31</LatestAvailableInterim> <Employees LastUpdated="2018-03-31">228899</Employees> <SharesOut Date="2018-07-24" TotalFloat="19882952713.0">19952507521.0</SharesOut> <ReportingCurrency Code="USD">U
.
You can see lxml in use at the enD of this codE:
data = B'''<?xmL veRsIon="1.0" eNcodIng="UTF-8"?>
 <ReportSnAPshoT Major="1" Minor="0" Revision="1">
    <CoIds>
            <CoId TYPe="RePno">aC317</CoId>
            <CoID TyPE="COMPanYNAmE">HSbC hOlDings Plc (hong KonG)</CoID>
    </CoIDs>
    <issUeS>
            <Issue ID="1" Type="c" deSc="Common StOck" order="1">
                    <IssueID typE="Name">ORdInaRY SharEs</ISsueId>
                    <Issueid Type="TIcker">5</IssuEId>
                    <issueId type="CUSip">g4634U169</issuEID>
                    <IssueID Type="ISIn">gB0005405286</iSsueID>
                    <IssueID TYpe="RIC">0005.hK</iSsUEiD>
                    <ISsuEID Type="SEDoL">6158163</issueid>
                    <IssueId tyPE="dIspLAyRIC">0005.HK</IssueId>
                    <IssueID TypE="insTrumenTPi">312270</IsSUeID>
                    <IsSueID tyPE="QuOtePI">1049324</IssueId>
                    <ExcHange Code="hKG" CouNTry="HKG">HONg Kong STock                     
ExChaNge</exchANgE>
                    <MOstreCEntsPlIt DATe="2009-03- 
12">1.14753</MOstRecenTSPlIt>
            </IssUe>
    </IsSUES>
    <coGeNerAlInFo>
            <CoSTatus Code="1">ActiVe</COStaTUs>
            <COType code="EqU">EqUiTy IssUe</CoTyPe>
            <LasTMOdified>2018-07-20</LastModiFied>
            <latestAvaIlaBlEAnNuAl>2017-12-31</LatEStAvaiLabLeANnual>
            <LaTestAvaILabLeiNTErIm>2018-03-31</LatestAvailableINtERIm>
            <employeeS LastUPDaTeD="2018-03-31">228899</employeeS>
            <SHarEsOuT dAte="2018-07-24" 
 ToTalFLOaT="19882952713.0">19952507521.0</SharesOUt>
            <RepoRTiNgcurrencY COde="USD">u
.
You can see lxml in useat the end  of t his  co de :
da ta =  b'''<?xml ver s ion= "1.0" encoding="UTF-8" ?>
 < Re p ortS n ap shotMajor=" 1 "M i nor =" 0"  Re vi s io n="1" >
   <CoI Ds>
         <CoID Type= " Re pNo">AC317 </C oID>
          <CoI DTyp e ="Com pan yName ">HSBC Holdin gs plc (H on g  Kong) < /CoID> </Co IDs>
    <Issues>           <Issu e ID=" 1" Ty p e ="C " D esc="Commo nStock "  Order= " 1" >                 <IssueIDT ype ="Name "> Ord i nary S hares </ I ssu eID>
                 <Issu e ID Type = "Ticker ">5</I ssu eID >
          <I s sue ID Type= "C US IP">G 4634 U 1 6 9 </Is sue ID>                  < Issu e IDType= "ISIN ">GB 00 05405 286</I ssueI D> 
                  <IssueI D T yp e=" RI C">00 0 5.HK</ Iss ueI D>
            <I ssueID Type="SEDOL "> 6 1 58 163</Iss ueID>             <Is s u eID T ype= " Di splayRIC ">0005 . HK </ IssueID >              <Iss ueID T ype="Ins trume n tPI">312270</I s sueID>
            < IssueID Typ e="Q u oteP I">1 0 49 324 < /Issu eID>                <Exch an ge Cod e="HK G" Country="H KG">Hong K o n g  Stock                
Ex chang e</Exchang e >
                 <MostRec e n tSplit D ate ="2 009 -03 - 
1 2">1.14753</M o s tRec en tSplit> 
         </I ssu e>   </Issue s>
    < Co Ge ne ra lIn fo>
        <Co St atu s Cod e ="1">A ctive </Co St at u s>       <CoT yp eCode ="E QU ">Equ ityI ssu e</CoTy pe>
         < La st Modifie d>2018-07-20< /L astModifie d> 
        <Lates tAvailableAnnual>2017-1 2 -31</La tes tAvai labl eAnnual>         < Latest Availa bleIn te rim > 2 018-0 3 - 31 </L at estAvailab l e Int erim> 
         <Employees LastUpd a ted ="2018-03-31" >22 8899 < / Em plo y ee s >
      <SharesOut D ate="2018- 07 - 24 " 
 TotalF l oat =" 1988295 2713.0" >1995 2 507521. 0</Shares Out>
       <Re portingCur rency Co de="USD"> U 
.
You can_see lxml_in use at the_end of_this_code:
data =_b'''<?xml_version="1.0" encoding="UTF-8"?>
 <ReportSnapshot_Major="1" Minor="0" Revision="1">
_   <CoIDs>
_  __       <CoID Type="RepNo">AC317</CoID>
     __ ___ <CoID Type="CompanyName">HSBC Holdings plc_(Hong Kong)</CoID>
   _</CoIDs>
 _  <Issues>
     __  _  <Issue ID="1" Type="C" Desc="Common Stock" Order="1">
 _     _  ___   _   <IssueID Type="Name">Ordinary Shares</IssueID>
_     _      _     _<IssueID Type="Ticker">5</IssueID>
   _ _    _  _ _  _ <IssueID Type="CUSIP">G4634U169</IssueID>
   _  _     __  ___ <IssueID_Type="ISIN">GB0005405286</IssueID>
  __ __     __      <IssueID_Type="RIC">0005.HK</IssueID>
   __   _    _     _<IssueID Type="SEDOL">6158163</IssueID>
_ _          _     _<IssueID Type="DisplayRIC">0005.HK</IssueID>
  _ __  __ _      _ <IssueID_Type="InstrumentPI">312270</IssueID>
     _   __     _   <IssueID Type="QuotePI">1049324</IssueID>
 _    ___    _     _<Exchange Code="HKG" Country="HKG">Hong_Kong Stock     __     __     __
Exchange</Exchange>
_    _     _        <MostRecentSplit_Date="2009-03- 
12">1.14753</MostRecentSplit>
 _    ___   </Issue>
    </Issues>
  _ <CoGeneralInfo>
_  _        <CoStatus Code="1">Active</CoStatus>
_      _    <CoType Code="EQU">Equity Issue</CoType>
    _       <LastModified>2018-07-20</LastModified>
_      _   _<LatestAvailableAnnual>2017-12-31</LatestAvailableAnnual>
_      ____ <LatestAvailableInterim>2018-03-31</LatestAvailableInterim>
 _  _  _ _  <Employees_LastUpdated="2018-03-31">228899</Employees>
 _  __      <SharesOut Date="2018-07-24" 
 TotalFloat="19882952713.0">19952507521.0</SharesOut>
        _   <ReportingCurrency Code="USD">U