Thanks for the input Bruno! I hope to get a chance to work on it! Right now I have a bigger issue. The code I had working
HtmlParser.parse(document222, baisStrm2);
has quit working with the following error :
error = Insertion of illegal Element: 20
The HTML I am using is:
<html>
<head>
<title>Temp title</title>
</head>
<body>
<table width='10%' cellpadding='1.0' cellspacing='1.0' border='2.00' bordercolor='#0011ff'>
</tr>
<td width='20.0%'>This is a test table.</td>
</tr>
</table>
</body>
</html>
<head>
<title>Temp title</title>
</head>
<body>
<table width='10%' cellpadding='1.0' cellspacing='1.0' border='2.00' bordercolor='#0011ff'>
</tr>
<td width='20.0%'>This is a test table.</td>
</tr>
</table>
</body>
</html>
I had it work about 10 times in a row and then it just started giving me this error. I am not aware of having changed anything. Any clues???
Thank you,
Jim
Bruno <[EMAIL PROTECTED]> wrote:
Bruno <[EMAIL PROTECTED]> wrote:
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
ituser111
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
