Thanks for the response Mike, I still have a dilemma though, because if I set Xerces' http://apache.org/xml/features/nonvalidating/load-external-dtd to false, it stops adding the rowspan="1"'s, but it also removes all the 's from the document. Do you have any suggestions? I'm going to manually remove the added attributes, but I don't really like this solution. --Evan
Mike Skells wrote: > Hi Evan, > Thi is not DOM4J doing this I dont think, as it does not understand HMTL! > Perhaps it is a validating SAX Parser, or someting else in the parse chain > > Mike > > >> -----Original Message----- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf >> Of Evan Kirkconnell >> Sent: 22 June 2006 23:01 >> To: dom4j-user@lists.sourceforge.net >> Subject: [dom4j-user] Extra Attributes >> >> DOM4J seems to be adding attributes to my document. I don't >> know if this is when it's loaded, or when it's serialized, >> and I'd guess it has something to do with the XHTML DTD. >> It's adding rowspan="1" and colspan="1" to my td's and like >> clear="none" or something like that to br's. I'm using a >> pre-existing style document, and this is changing the layout. >> I know it sounds kind of silly, but it is changing how the >> browsers render the content. Is there a way to turn this off? >> --Evan >> >> >> All the advantages of Linux Managed Hosting--Without the Cost >> and Risk! >> Fully trained technicians. The highest number of Red Hat >> certifications in the hosting industry. Fanatical Support. >> Click to learn more >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729& >> dat=121642 >> _______________________________________________ >> dom4j-user mailing list >> dom4j-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/dom4j-user >> >> > > > Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ dom4j-user mailing list dom4j-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-user