title: How to resolve class conflict in import statements
body: <p>Im trying to write a program that will read an xml file and print to itext.</p>
  
  <p>However, I getting a class conflict in import statements. I dont know how to resolve this issue.</p>
  
  <pre><code>import org.dom4j.Document;
  import org.dom4j.DocumentException;
  import org.dom4j.Element;
  import org.dom4j.Node;
  import org.dom4j.io.SAXReader;
  
  import org.w3c.dom.NodeList;
  import org.w3c.dom.*;
  
  import com.itextpdf.text.Annotation;
  import com.itextpdf.text.BaseColor;
  import com.itextpdf.text.Chunk;
  import com.itextpdf.text.Document;
  import com.itextpdf.text.DocumentException;
  import com.itextpdf.text.Element;
  import com.itextpdf.text.Font;
  import com.itextpdf.text.FontFactory;
  import com.itextpdf.text.PageSize;
  import com.itextpdf.text.Paragraph;
  import com.itextpdf.text.Phrase;
  import com.itextpdf.text.pdf.PdfAction;
  import com.itextpdf.text.pdf.PdfPCell;
  import com.itextpdf.text.pdf.PdfPTable;
  import com.itextpdf.text.pdf.PdfWriter;
  </code></pre>
  
  <p>The "Document" and "Element" classes between dom4j and itext are conflicting.</p>
  
  <p>Does anyone know a workaround? Is there any eclipse magic I can do?</p>