title: In Jsoup, how to create an element without document?
body: <p>Now I use this to create an element</p>
  
  <pre><code>&lt;!-- language: lang-java --&gt;
  
          Document doc = Jsoup.parseBodyFragment("&lt;ol&gt;&lt;/ol&gt;");
          Elements ols=doc.getElementsByTag("ol");
          Element ol=ols.get(0);
  </code></pre>
  
  <p>But this is too complex, because I create many dom in the program, if every use three line to create an element, it is not convenient.</p>
  
  <p>Can I create an element without using the document and elements?</p>
  
  <p>like this:</p>
  
  <pre><code>&lt;!-- language: lang-js --&gt;
  var ol=$('&lt;ol&gt;&lt;/ol&gt;');
  </code></pre>