Re: Using Jivan in a Barracuda App
"Arno Schatz" <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
David, Parsing the html you posted has been done with Jivan before, and I checked it again, the parser parses it correctly. I tried to replicate the DOM manipulations which happens is BTemplate and couldn't see any problems. I haven't used BTemplate actually, so I don't know exactly what's going on in there. But you can print out the DOM before and after BTemplate is being called. Can you call org.jivan.html.test.DOMTest.print( doc, "") before and after BTemplate? Sorry I can give you a better answer, I haven't used Barracuda myself, yet. -Arno > That was a typo on the message... David > > Christian Cryder wrote: > > >><table><tr><td> > >>BBB > >></tr></td></table> > >> > >> > > > >Not sure if that was a typo or not, but I see an obvious problem...your > ></tr></td> are in the wrong order. They should be reversed. > > > >Christian > >---------------------------------------------- > >Christian Cryder > >Internet Architect, ATMReports.com > >Project Chair, BarracudaMVC - http://barracudamvc.org > >---------------------------------------------- > >"Coffee? I could quit anytime, just not today" > > > > > > > > > >>-----Original Message----- > >>From: [email protected] > >>[mailto:[email protected]]On Behalf Of David R Robison > >>Sent: Tuesday, November 25, 2003 7:42 AM > >>To: [email protected] > >>Subject: Re: [Barracuda] Using Jivan in a Barracuda App > >> > >> > >>The JivanDOMWriter did NOT fix the problem. I now believe that > >>the problem might > >>lie somewhere in the Jivan parser. It appears to be very > >>sensitive to how the > >>text file is layed out. For example, the following code renders > correctly: > >> > >><table><tr><td> > >>BBB > >></tr></td></table> > >> > >>however, if there is line breaks and space between the elements such > as... > >> > >><table> > >> <tr> > >> <td> > >> BB > >> </td> > >> </tr> > >></table> > >> > >>then it likes to insert empty <tr></tr> and <td></td> blocks. > >> > >>David Robison > >> > >> -- NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien... Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService Jetzt kostenlos anmelden unter http://www.gmx.net +++ GMX - die erste Adresse für Mail, Message, More! +++