title: Get attribute value from XML in Spring boot
body: <p>I've got a response in XML using restTemplate. </p>
  
  <pre><code>ResponseEntity&lt;?&gt; response = restTemplate.exchange(url, HttpMethod.POST, request, String.class);
  </code></pre>
  
  <p>Now I need need to get value from my response. I tried to use Jsoup.parse(you can see below). </p>
  
  <p><code>Document doc = Jsoup.parse(response.toString(), "", Parser.xmlParser());</code></p>
  
  <p>When i try to <code>System.out.println(doc);</code>, i got such response:</p>
  
  <pre><code>&amp;lt;200,
  &lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
   &lt;soap:Body&gt;
    &lt;GetRateInfoResponse xmlns:ns4="http://www.skidata.com/interfaces/common/v1/data" xmlns:ns3="http://www.skidata.com/contractor/dtaservice/v7/common" xmlns:ns2="http://www.skidata.com/interfaces/parking/ticketManagement/v3/data" xmlns="http://www.skidata.com/interfaces/parking/ticketManagement/v3/msg"&gt;
     &lt;RateInfo&gt;
      &lt;ns2:EntryDateTime&gt;
       2020-02-14T10:30:59.67
      &lt;/ns2:EntryDateTime&gt;
      &lt;ns2:Price&gt;
       &lt;ns3:Amount&gt;
        1000
       &lt;/ns3:Amount&gt;
       &lt;ns3:CurrencyCode&gt;
        KZT
       &lt;/ns3:CurrencyCode&gt;
      &lt;/ns2:Price&gt;
     &lt;/RateInfo&gt;
    &lt;/GetRateInfoResponse&gt;
   &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;,[Connection:"close", X-Powered-By:"Undertow/1", "Undertow/1", x-correlationid:"d24aa9db-2557-4b23-a1fb-ecee38dcc247", Server:"WildFly/10", Content-Type:"text/xml;charset=UTF-8", Date:"Wed, 19 Feb 2020 09:32:24 GMT", Set-Cookie:"cookiesession1=0E896615GF3N66QVS2PC3U44Z8D3F82A;Path=/;HttpOnly"]&amp;gt;
  </code></pre>
  
  <p>But i need value only in amount tag, so i tried <code>System.out.println(doc.select("Amount").text());</code> 
  But log is empty.</p>