title: Java - The method replace() is undefined for the type OutputDocument
body: <p>Hey i'm using Eclipse on a Java EE Project and it's showing the problem </p>
  
  <blockquote>
    <p>The method replace(Element, String) is undefined for the type
    OutputDocument</p>
  </blockquote>
  
  <p>I've already import the <strong>au.id.jericho.lib.html.OutputDocument</strong> library, i don't know what else to do</p>
  
  <p>This is where it's used</p>
  
  <pre><code>for (Iterator i = linkStartTags.iterator(); i.hasNext();) {
       Element el = (Element)i.next();
  
       Attributes attributes = el.getAttributes();
       String rel = attributes.getValue(atributo);
       if ((rel != null) &amp;&amp; (!"".equalsIgnoreCase(rel)))
       {
  
         if ((valores != null) &amp;&amp; 
           (valores.containsKey(rel))) {
           String valor = (String)valores.get(rel);
           outputDocument.replace(el, valor);
         }
       }
     }
  </code></pre>
  
  <p>P.S I didn't write this code.</p>
  
  <p><strong><em>EDIT:</em></strong>
  I was using the wrong version of the library, i was using <em>jericho-html-2.1</em> and i changed to <em>jericho-html-2.3</em>, now it's working, thanks </p>