Eliot Stock wrote:


The problem is this: my DocumentHandler's characters() method is not being 
called for the whitespace between elements if I set the parser to do validation 
and use a DTD like so:

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE doc SYSTEM "voip.dtd">
<doc>
<INVOICE...

but it *is* being called if I ommit the DTD reference:

<?xml version="1.0" encoding="iso-8859-1"?>
<doc>
<INVOICE...


You need to implement the ignorableWhiteSpace method. Simplest solution is to just have that method delegate its arguments to characters. See the SAX JavaDoc.


--
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]



Reply via email to