title: How to read xml format data and how to get attributes in java
body: <p>In my table i'm maintains one <strong>xml</strong> column in that column data in <strong>xml</strong> format,so now i got this column with query.</p>
  
  <p>Now how to read xml format data.</p>
  
  <p>here my code:</p>
  
  <pre><code>public Object readingSqlResultedRecord(ResultSet result)
  {
  
      try {
  
          String xml = result.getString(1);
          System.out.println("----xml----"+xml);
      }catch (SQLException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
  }
  </code></pre>
  
  <p>S.o.p printing <strong>xml</strong> data,in that data contains one property tag,that tag contains <strong>id</strong> and <strong>name</strong> and <strong>title</strong>.
  Now how to get <strong>title</strong> attribute.</p>