I have an XML response I need to parse the userId.
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetUser>
<m:UserId>123</m:UserId>
</m:GetUser>
</soap:Body>
</soap:Envelope>
How do I get data from this in a structured way?
This does not work. Is there a command or addon that can handle XML?
cy.wrap(xml).find('m:UserId')