|
Re: Parsing HTML: msg#00087java.enhydra.xmlc
Actually, now that I think about it further, this doesn't really work for me. I have one servlet that can be used by multiple "sponsors." Each time you pass a different referrer ID to the servlet, it loads a different header and footer, so I couldn't recompile each time. The way I'm doing it now works just fine for the browsers I've tested, even though the HTML wouldn't pass a validator. The only problem with my method is that it tends to chop off the last part of my footer file when I load it like this: String footer = readFile(footerFile); Node footerNode = html.getElementById("footer"); if (footerNode != null) { ((LazyText) footerNode.getFirstChild()).setPreFormattedText(footer); } If I output the footer string right after I read it, I can see that it's all there. When viewing the source after the page is generated, it has chopped off part of it. At 12:30 PM 3/26/2003, you wrote: On Wednesday 26 March 2003 18:33, Ben Sinclair wrote: -- Ben Sinclair ben@xxxxxxxxxxxxxxx
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Parsing HTML, Richard Kunze |
|---|---|
| Next by Date: | Re: Parsing HTML, Ben Sinclair |
| Previous by Thread: | Re: Parsing HTML, Richard Kunze |
| Next by Thread: | Re: Parsing HTML, Ben Sinclair |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |