|
Re: Parsing HTML: msg#00077java.enhydra.xmlc
Actually I see now that the problem with the way I was doing it before isn't exactly because I have two <body> or other tags. The following code should add my footer, not the best way to do it, but it partially works. The footer string contains my footer, and if I print it, I see that it's all there. When it gets added and I view the source of the produced page, it has chopped off the last few tags of the footer. Does anyone know why it might do that? String footer = readFile(footerFile); Node footerNode = html.getElementById("footer"); if (footerNode != null) { ((LazyText) footerNode.getFirstChild()).setPreFormattedText(footer); } -- Ben Sinclair ben@xxxxxxxxxxxxxxx
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Parsing HTML, Ben Sinclair |
|---|---|
| Next by Date: | Re: Parsing HTML, Jacob Kjome |
| Previous by Thread: | Re: Parsing HTML, Ben Sinclair |
| Next by Thread: | Re: Parsing HTML, Jacob Kjome |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |