Any idea why this error is happening and how to fix it? I\'m getting this error when trying to parse/load a config file:
Error
Warning: validation wa
If your parsing an XML document with validation turned on, you need to specify either a DTD or an XML schema in a DOCTYPE at the start of your XML document. Your parser is basically complaining that it doesn't know how to validate your document because no grammer has been specified to validate the mark up.
You already have an XML schema, so you probably want:
If you want to turn off validation, you need something like:
spf.setValidating(false); (Where spf is a SaxParserFactory)