title: Read the content of a DIV from an XML file
body: <p>I need help with this project that I have to load the content of a <code>&lt;div&gt;</code> from an XML file and not from the HTML itself. And I don't know how I could realize that.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;all&gt; &lt;!-- this is root --&gt;
    &lt;dean&gt; 
      &lt;p&gt;The Faculty of Computer Science seeks to prepare students for careers as computer specialists of the highest international standards, to enter careers in computer or software design, and for advanced study in computer science.The Faculty of Computer Science has accredited undergraduate degree in computer science, internet computing and software engineering disciplines. The degree was evaluated and accredited by the Egyptian Supreme Council of Higher Education in 1998. Furthermore, Computer Science students can successfully join other universities in Europe and North America, to complete their undergraduate and postgraduate studies. Our programme is designed to provide students with a combination of fundamental knowledge and lifelong learning skills that prepare graduates for a successful career in the computer science, software engineering and internet computing fields. At the same time, our curriculum provides students with the necessary practical skills to enable them to be productive from their first day on the job.&lt;/p&gt;
      &lt;image&gt;image.jpg&lt;/image&gt;
    &lt;/dean&gt;
    &lt;dean&gt; 
      &lt;p&gt; Graduates of the Faculty of Computer Science at MSA are specialized in several areas within the computing professions. Their expertise and skills are due to unlimited facilities, an up to date curriculum and a group of prominent faculty members.&lt;/p&gt;
    &lt;/dean&gt;
    &lt;dean&gt;
      &lt;p&gt; Being in touch with international sites, through the Internet and computer usage, is an integrated part of the Computer Science program. In addition, students receive extra attention as they are divided into small groups. Long contact hours and close supervision give students the chance to make the most of their faculty experience. Students are thus, provided with capabilities that prepare them for practical fields in computer science at an international professional level. The Faculty maintains close relationships with computer companies, which provide support to our programme. We aim to be a centre of excellence in computer science for our students, faculty, and local industry.&lt;/p&gt;
    &lt;/dean&gt;
    &lt;dean&gt;
      &lt;p&gt;Graduates of the Faculty of Computer Science have found satisfying careers in leading computer companies. We welcome all students interested in hard and excellent education in Computer Science, of the highest international standards in a unique pleasant educational environment. We are dedicated in providing a high quality education for all our students.&lt;/p&gt;
    &lt;/dean&gt;
    &lt;dean&gt;
      &lt;p&gt;Your future awaits you here at MSA,&lt;/p&gt;
    &lt;/dean&gt;        &lt;!-- fixed and added end tag in EDIT for XML well-formed-ness --&gt;
    &lt;dean&gt; 
      &lt;p&gt;Prof. Dr. Ali Hamed El Bastawissy&lt;/p&gt;
    &lt;/dean&gt;
    &lt;dean&gt;
      &lt;p&gt;Dean of the Faculty of Computer Sciences.&lt;/p&gt;
    &lt;/dean&gt;
    &lt;dean&gt;
      &lt;p&gt;MSA University.&lt;/p&gt;
    &lt;/dean&gt;
  &lt;/all&gt;
  </code></pre>
  
  <p>And here's my code:</p>
  
  <pre><code>$(document).ready(function() {
    $.ajax({
      type: "GET",
      url:"read.xml,
      dataType:"xml",
      success: xmlParser
    });
  });
  
  
  function xmlParser(xml){
    $('#load').fadeOut();
    $(xml).find("dean").each(function(){
      $("#certificate").append('&lt;div class="dean "&gt;&lt;img src=" images/'+$(this).find("image").text()+' "width="200" height="225" alt=" '+$(this).find("p").text+' "/&gt; &lt;br/&gt; &lt;div class="dean"&gt;'+$ (this).find("p").text()+'&lt;br/&gt;$'+$(this).find("p").text()+'&lt;/div&gt;&lt;/div&gt;');
      $(".p").fadeIn(1000);
    });
  }
  </code></pre>
  
  <p>The <code>#certificate</code>'s <code>DIV</code> is the DIV that I want to load from the XML and pass to the output.</p>