title: Update text on a website live from an external XML
body: <p>I'm a back-end programmer tasked with creating a front-end element on a site.</p>
  <p>I have to take only two data points from an external XML file and have then both placed within the site's existing html, and have it update every few minutes.</p>
  <p>The xml tree is large and has several parent elements, I only need two child elements from the first parent element &quot;Main-Library&quot;</p>
  <p>Here is what the xml looks like. I compressed it so only the first child of the first two parents are shown:</p>
  <pre><code>&lt;Root&gt;
      &lt;Main-Library&gt;
              &lt;Book&gt;
                  &lt;Title&gt;Book Name&lt;/Title&gt;
                  &lt;Author&gt;John Smith&lt;/Author&gt;
                  &lt;Genre&gt;Fiction&lt;/Genre&gt;
                  &lt;Loaned&gt;2020-09-03 13:13:48&lt;/Loaned&gt;
                  &lt;Price&gt;-13.30&lt;/Price&gt;
              &lt;/Book&gt;
              .
              .
              .
      &lt;/Main-Library&gt;
      &lt;Second-Library&gt;
              &lt;Book&gt;
                  &lt;Title&gt;Book Name&lt;/Title&gt;
                  &lt;Author&gt;John Smith&lt;/Author&gt;
                  &lt;Genre&gt;Fiction&lt;/Genre&gt;
                  &lt;Loaned&gt;2020-09-03 13:13:48&lt;/Loaned&gt;
                  &lt;Price&gt;-13.30&lt;/Price&gt;
              &lt;/Book&gt;
              .
              .
              .
      &lt;/Second-Library&gt;
  &lt;/Root&gt;
  </code></pre>
  <p>I need to take Loaned and Price from the first parent element Main-Library and place them within the following html:</p>
  <pre><code>&lt;p class=&quot;feed&quot;&gt;
  &lt;span class=&quot;feed-text-large&quot;&gt;Status: &lt;/span&gt;
  &lt;span class=&quot;price&quot;&gt;$35.98&lt;/span&gt;
  &lt;span class=&quot;timestamp&quot;&gt;Loaned at 13:13 on September 03, 2020&lt;/span&gt;
  &lt;/p&gt;
  </code></pre>
  <p>with price and the date coming from the XML, and refreshing as the xml changes.</p>
  <p>Any help to get me started on this will be greatly appreciated. Thanks!</p>