title: How to get "specific id XML Data" with Java
body: <p>I want to output like</p>
  
  <blockquote>
    <p>id = C00001 name = H2O
    id = C00002 name = ATP</p>
  </blockquote>
  
  <p>And input like</p>
  
  <blockquote>
    <p>ids = {"C00001","C00002"...}
    names = {"H2O", "ATP"...}</p>
  </blockquote>
  
  <p>How to code?</p>
  
  <p>I can read like</p>
  
  <pre><code> &lt;spescies&gt;H2O&lt;/species&gt;
  </code></pre>
  
  <p>But I cant read like: </p>
  
  <p><code>&lt;species id="C00001" name="H2O"/&gt;</code> </p>
  
  <p>Here the whole XML example:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;sbml xmlns="http://www.sbml.org/sbml/level2" level="2" version="1" 
        xmlns:html="http://www.w3.org/1999/xhtml"&gt;
      &lt;model id="ehmn"&gt;
          &lt;listOfCompartments&gt;
              &lt;compartment id="Human"/&gt;
          &lt;/listOfCompartments&gt;
          &lt;listOfSpecies&gt;
              &lt;species id="C00001" name="H2O"/&gt;
              &lt;species id="C00002" name="ATP"/&gt;
              &lt;species id="C00003" name="NAD+"/&gt;
              &lt;species id="C00004" name="NADH"/&gt;
          &lt;/listOFSpeceies&gt;
      &lt;/model&gt;
  &lt;/sbml&gt;
  </code></pre>
  
  <p>no error</p>