Re: Parsing HTML
Ben Sinclair <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.xmlc |
|---|---|
| Message-ID | <[email protected]> |
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:
> > Is there good documentation on how to do [ automatic reloading
> > of *ML pages ]?
>
>Sorry, there's not much documentation at the site yet, I didn't get around to
>document the new features. Maybe you want to write a howto based on your
>experiences?
--
Ben Sinclair
[email protected]