you can access it by result['env:Envelope']
.
Suppose you have xml with namespace as follows:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<GetItems xmlns="http://www.test.com">
<Items>
<Object d3p1:type="Fruits" xmlns:d3p1="http://www.w3.org/2001/XMLSchema-instance">
<Key>11032896</Key>
<Name>Apple</Name>
</Object>
<Object d3p1:type="Fruits" xmlns:d3p1="http://www.w3.org/2001/XMLSchema-instance">
<Key>11662896</Key>
<Name>Banana</Name>
</Object>
</Items>
</GetItems>
</s:Body>
</s:Envelope>
You can access it with out getting compile error in TypeScript as
result['Envelope']['Body']['GetItems']['Items']['Object']