replacing xml tags using replace function dont works
===

    <lb/>pis est) les oultragerent grandement les
              <lb/>appellans Trop diteulx, Breschedens,
              <lb/>Plaisans rousseaulx, Galliers, Chien-


i want to replace the <lb/> tag with <br/> so that i can parse it easily should i use simple replace function of javascript or some regular expresions also!!!!

    //open the document xml
    $(document).ready(function()
    {
      $.ajax({
        type: "GET",
        url: "GP.xml",
        dataType: "xml",
        success: parseXml
      });
    });
    
    //pasre the document
    function parseXml(xml)
    {
      //find head and its text in the line breaks 
      $(xml).find("div").each(function()
      {
        $("#output").append($(this).replace(/\n/g, "<br>");
      });
      }