Hi Paulo, On Mon, Feb 6, 2012 at 10:48 PM, Paulo Soares <psoa...@glintt.com> wrote: > Here's some working code: > > using System; > using System.Collections.Generic; > using System.Text; > using System.IO; > using iTextSharp.text; > using iTextSharp.text.pdf; > using iTextSharp.tool.xml; > using iTextSharp.tool.xml.pipeline; > > namespace TestsXMLWorker { > public class MyHandler : IElementHandler { > public List<IElement> elements = new List<IElement>(); > > public void Add(IWritable w) { > if (w is WritableElement) { > elements.AddRange(((WritableElement)w).Elements()); > } > } > } > > public class TestListElements { > public static void Test() { > MyHandler mh = new MyHandler(); > using (StreamReader sr = new StreamReader("/html/walden.html")) > { > XMLWorkerHelper.GetInstance().ParseXHtml(mh, sr); > } > // use mh.elements > } > } > } > Paulo
Thanks, you read my mind - exactly what I was looking for. And sorry, should have figured it out myself - keith ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php