title: html to xml conversion using javascript?
body: <p>Is it possible to convert all div child information into XML or JSON using JavaScript? </p>
  
  <pre><code>$("#droppable").droppable({
  drop : function(event, ui) {
      var id = $(ui.draggable).attr("id");
      var cloneObj = $((ui.draggable).clone());
      $(cloneObj).removeClass("draggable ui-draggable");
      if (id === "txt") {
          inputOBj = document.createElement("input");
          inputOBj.setAttribute("id", "txt" + i);
          $("#droppable").append(inputOBj);
      } else if (id == "combo") {
          inputOBj = document.createElement("select");
          inputOBj.setAttribute("id", "select" + i);
          console.log("");
      }
    });
  </code></pre>