Quoting i t <[EMAIL PROTECTED]>:

> Hello All,
>  
>   I now have the basic HTMLParser code working with a new document.  What I
> need though is to be able to add regular iText elements to a document that is
> open and then add an "element" via the HTMLParser.parse to the same document.

Take a look at
http://www.lowagie.com/iText/examples/Chap1201.java
Do you see how the internal class MyHandler extends SAXmyHandler?
(It's an internal class only to have all the code of the example
in one file.)

You should do something similar: override the start- and endElement
method and test isDocumentRoot(...). If the document root tag is
encountered, do nothing. If not, just refer to the methods of the
superclass.

br,
Bruno


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to