can I set SAXFactory.setValidation(true) without a DTD or schema ? I set it to true because I thought this way the white space will be ignored automatically. Plus I don't have a DTD or schema and it still works fine.
So, can I assume that I can set SAXFactory.setValidation(true) without a DTD or schema ?
As a follow-up question, actually I find that when I don't have a schema or DTD, the white space is *not* picked up by the ignorableWhiteSpace, it is actually picked up by "characters()" method. Am I right ? So what I have to do is to manipulate it in the character() method (like truncating them). Is it the right approach ?