title: How to Read XML Multiple Tags in JAVA
body: <p>I have a XML format stored in a String variable. It's like this,</p>
  
  <p>String xml = "myXML";</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;shiporder orderid="889923"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation="shiporder.xsd"&gt;
    &lt;orderperson&gt;John Smith&lt;/orderperson&gt;
    &lt;shipto&gt;
      &lt;name&gt;Ola Nordmann&lt;/name&gt;
      &lt;address&gt;Langgt 23&lt;/address&gt;
      &lt;city&gt;4000 Stavanger&lt;/city&gt;
      &lt;country&gt;Norway&lt;/country&gt;
    &lt;/shipto&gt;
    &lt;item&gt;
      &lt;title&gt;Empire Burlesque&lt;/title&gt;
      &lt;note&gt;Special Edition&lt;/note&gt;
      &lt;quantity&gt;1&lt;/quantity&gt;
      &lt;price&gt;10.90&lt;/price&gt;
    &lt;/item&gt;
    &lt;item&gt;
      &lt;title&gt;Hide your heart&lt;/title&gt;
      &lt;quantity&gt;1&lt;/quantity&gt;
      &lt;price&gt;9.90&lt;/price&gt;
    &lt;/item&gt;
  &lt;/shiporder&gt;
  </code></pre>
  
  <p>In above XML you can see there are multiple ITEMS. Can somebody tell using a loop or something,How can i store each Item in a arrayList or something? I would love if i can give it a try, But unfortunately i don't have an idea how to do it.</p>
  
  <p>Appreciate if someone could help?</p>
  
  <p>Please note that the XML is stored in the string variable as a String.</p>