Roberto Cosenza wrote:
Hi. I'm writing an application that has to parse and MODIFY some XHTML. The result of the operation has to be the modified XHTML. I started using SAX (xerces) and, though seemed to work, I found out that SAX does not keep my doctype (all parsed documents take the XHTML Strict doctype). Besides, I was using the XHTMLSerializer class which is deprecated. Maybe I should use DOM for this job? The document is usually small. I'm missing some point?
XSLT is probably the easiest way to go with this sort of problem. If necessary that can be integrated with DOM, XOM, JDOM, etc.
-- Elliotte Rusty Harold [EMAIL PROTECTED] XML in a Nutshell 3rd Edition Just Published! http://www.cafeconleche.org/books/xian3/ http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
