I am getting below XML as a response, how can I convert it to an array?
I have tried almost all the think available in internet but always getting this error: Decoding failed: Syntax error
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Header/>
<soap-env:Body>
<n0:CustomerGetChildrenResponse xmlns:n0="urn:sap-com:document:sap:soap:functions:mc-style">
<NodeList>
<item>
<Customer>00000000</Customer>
<SalesOrg>000000</SalesOrg>
<DistrChan>00</DistrChan>
<Division>00</Division>
<ValidFrom>2021-11-21</ValidFrom>
<Custhityp>AAA</Custhityp>
<ParentCustomer/>
<ParentSalesOrg/>
<ParentDistrChan/>
<ParentDivision/>
<BrotherCustomer/>
<BrotherSalesOrg/>
<BrotherDistrChan/>
<BrotherDivision/>
<NodeLevel>00</NodeLevel>
<ValidTo>9999-12-31</ValidTo>
<Routine>000</Routine>
<RebateRel>X</RebateRel>
<PricRel>X</PricRel>
<AssignHi>00</AssignHi>
</item>
<item>
<Customer>00000000</Customer>
<SalesOrg>000000</SalesOrg>
<DistrChan>00</DistrChan>
<Division>00</Division>
<ValidFrom>2021-11-21</ValidFrom>
<Custhityp>A</Custhityp>
<ParentCustomer>0000000</ParentCustomer>
<ParentSalesOrg>0000</ParentSalesOrg>
<ParentDistrChan>00</ParentDistrChan>
<ParentDivision>00</ParentDivision>
<BrotherCustomer/>
<BrotherSalesOrg/>
<BrotherDistrChan/>
<BrotherDivision/>
<NodeLevel>01</NodeLevel>
<ValidTo>9999-12-31</ValidTo>
<Routine>000</Routine>
<RebateRel>X</RebateRel>
<PricRel>X</PricRel>
<AssignHi>00</AssignHi>
</item>
</NodeList>
<Return>
<Type/>
<Id/>
<Number>000</Number>
<Message/>
<LogNo/>
<LogMsgNo>000000</LogMsgNo>
<MessageV1/>
<MessageV2/>
<MessageV3/>
<MessageV4/>
<Parameter/>
<Row>0</Row>
<Field/>
<System/>
</Return>
<SalesArea/>
</n0:CustomerGetChildrenResponse>
</soap-env:Body>
</soap-env:Envelope>