richard cai wrote:However, I just ran into a case in that the presense of <!DOCTYPE ...> seems to screw up the parsing (to be exact, public void characters(char ch[], int start,int length) seems no longer be able to function.). Any ideas?
By any chance is the problem that you're missing nodes that contain only white space? If so this is the expected behavior, and you need to use the ignorableWhiteSpace() method too. This method only gets invoked when the document has a DTD that can identify certain elements as having only child element content.
--
+-----------------------+------------------------+-------------------+ | Elliotte Rusty Harold | [EMAIL PROTECTED] | Writer/Programmer | +-----------------------+------------------------+-------------------+ | The XML Bible, 2nd Edition (Hungry Minds, 2001) | | http://www.ibiblio.org/xml/books/bible2/ | | http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/ | +----------------------------------+---------------------------------+ | Read Cafe au Lait for Java News: http://www.cafeaulait.org/ | | Read Cafe con Leche for XML News: http://www.ibiblio.org/xml/ | +----------------------------------+---------------------------------+
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
