title: iText XML to PDF using latest version
body: <p>I found a few examples showing how to use the XML to PDF using a iText XML document. But they are all for the older version 4.x. Is there any examples or can someone post an example of the required/updated code to do the same in version 5.x?</p>
  
  <p>All the examples refere to code like this, but I can not find what to use to replace the ITextHandler class with in the new version.<br>
  <a href="http://www.ridgway.co.za/archive/2005/07/31/itextsharpxmltopdfexample.aspx" rel="noreferrer">http://www.ridgway.co.za/archive/2005/07/31/itextsharpxmltopdfexample.aspx</a></p>
  
  <pre><code>Document document = new Document();
  PdfWriter.GetInstance(document, new FileStream("ExampleDoc.pdf", FileMode.Create));
  ITextHandler xmlHandler = new ITextHandler(document);
  xmlHandler.Parse("ExampleDoc.xml");
  </code></pre>
  
  <p>Also, I am not trying to go from HTML to PDF. The CSS styling never comes out as expected.</p>
  
  <p>Editing to bump it up, really need some help here. Anyone at all?</p>