title: Need to consume Rest API XML response using Javascript/ JQuery
body: <p>I need to consume Rest API XML response on my website using JS or JQuery. Can someone provide the code for this. Thanks in advance.</p>
  
  <p>Following is the REST API call to get the XML response displayed below:</p>
  
  <p><strong>/restapi/vc/boards/id/{board id}/subscriptions/global/float/thread</strong></p>
  
  <p><em><strong>XML RESPONSE</em></strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" standalone="yes"?&gt;
  &lt;response status="success"&gt;
    &lt;subscriptions&gt;
      &lt;subscription type="subscription" href="/subscriptions/global/id/321"&gt;
        &lt;id type="int"&gt;321&lt;/id&gt;
        &lt;target type="thread" href="/threads/id/4849"&gt;
          &lt;id type="int"&gt;4849&lt;/id&gt;
          &lt;title type="string" null="true"/&gt;
          &lt;messages&gt;
            &lt;count type="int"&gt;1&lt;/count&gt;
            &lt;topic type="message" href="/messages/id/4849"&gt;
              &lt;id type="int"&gt;4849&lt;/id&gt;
              &lt;read_only type="boolean"&gt;false&lt;/read_only&gt;
              &lt;parent type="message" null="true"/&gt;
              &lt;teaser type="string"&gt;&lt;/teaser&gt;
              &lt;views&gt;
                &lt;count type="int"&gt;2&lt;/count&gt;
              &lt;/views&gt;
              &lt;subject type="string"&gt;Cannot download Pinball Arcade vita&lt;/subject&gt;
              &lt;deleted type="boolean"&gt;false&lt;/deleted&gt;
              &lt;author type="user" href="/users/id/149"&gt;
                &lt;login type="string"&gt;psforums&lt;/login&gt;
              &lt;/author&gt;
              &lt;thread type="thread" href="/threads/id/4849"/&gt;
              &lt;board_id type="int"&gt;1&lt;/board_id&gt;
              &lt;message_rating type="float"&gt;0.0&lt;/message_rating&gt;
              &lt;last_edit_author type="user" href="/users/id/149"&gt;
                &lt;login type="string"&gt;psforums&lt;/login&gt;
              &lt;/last_edit_author&gt;
              &lt;kudos&gt;
                &lt;count type="int"&gt;0&lt;/count&gt;
              &lt;/kudos&gt;
              &lt;last_edit_time type="date_time"&gt;2013-07-24T16:28:44+00:00&lt;/last_edit_time&gt;
              &lt;post_time type="date_time"&gt;2013-07-24T16:28:44+00:00&lt;/post_time&gt;
              &lt;labels/&gt;
              &lt;root type="message" href="/messages/id/4849"/&gt;
              &lt;board type="board" href="/boards/id/22034"/&gt;
            &lt;/topic&gt;
            &lt;read&gt;
              &lt;count type="int"&gt;1&lt;/count&gt;
            &lt;/read&gt;
            &lt;linear&gt;
              &lt;message type="message" href="/messages/id/4849"&gt;
                &lt;id type="int"&gt;4849&lt;/id&gt;
                &lt;read_only type="boolean"&gt;false&lt;/read_only&gt;
                &lt;parent type="message" null="true"/&gt;
                &lt;teaser type="string"&gt;&lt;/teaser&gt;
                &lt;views&gt;
                  &lt;count type="int"&gt;2&lt;/count&gt;
                &lt;/views&gt;
                &lt;subject type="string"&gt;Cannot download Pinball Arcade vita&lt;/subject&gt;
                &lt;deleted type="boolean"&gt;false&lt;/deleted&gt;
                &lt;author type="user" href="/users/id/149"&gt;
                  &lt;login type="string"&gt;psforums&lt;/login&gt;
                &lt;/author&gt;
                &lt;thread type="thread" href="/threads/id/4849"/&gt;
                &lt;board_id type="int"&gt;1&lt;/board_id&gt;
                &lt;message_rating type="float"&gt;0.0&lt;/message_rating&gt;
                &lt;last_edit_author type="user" href="/users/id/149"&gt;
                  &lt;login type="string"&gt;psforums&lt;/login&gt;
                &lt;/last_edit_author&gt;
                &lt;kudos&gt;
                  &lt;count type="int"&gt;0&lt;/count&gt;
                &lt;/kudos&gt;
                &lt;last_edit_time type="date_time"&gt;2013-07-24T16:28:44+00:00&lt;/last_edit_time&gt;
                &lt;post_time type="date_time"&gt;2013-07-24T16:28:44+00:00&lt;/post_time&gt;
                &lt;labels/&gt;
                &lt;root type="message" href="/messages/id/4849"/&gt;
                &lt;board type="board" href="/boards/id/22034"/&gt;
              &lt;/message&gt;
            &lt;/linear&gt;
          &lt;/messages&gt;
          &lt;board type="board" href="/boards/id/22034"/&gt;
          &lt;solutions/&gt;
          &lt;interaction_style type="string"&gt;board&lt;/interaction_style&gt;
        &lt;/target&gt;
        &lt;target_type type="subscription_target_type"&gt;thread&lt;/target_type&gt;
        &lt;user type="user" null="true"/&gt;
        &lt;subscription_type type="subscription_type"&gt;float&lt;/subscription_type&gt;
      &lt;/subscription&gt;
    &lt;/subscriptions&gt;
  &lt;/response&gt;
  </code></pre>