I maintain the JDOM project and I am trying to 'certify' it on Android. Most things work fine, but XML Schema validation is proving problematic...
My questions are: Is there a way to do XMLSchema validation on Android? If there is, how?
Questions like this have been asked before, but no conclusive answer is given:
This is what I currently 'know' (correct me if I am wrong)...:
- SchemaFactory.newInstance("http://www.w3.org/2001/XMLSchema") - fails with IllegalArgumentException
- the default 'ExpatParser' in Android from the Harmony project does not support XMLSchema validation.
- It is possible to load Xerces in an Android app, and even parse with it, but not to do a Validating parse - when you try you get 'FATAL' Android exceptions causing application crashes.
I have been working on this for some time now, and I have put together the following 'research':
If anyone has any more information about XMLSchema Validation on Android I would greatly appreciate any input at all.
If anyone has successfully done XMLSchema validation on XML and can help me get the functionality working for JDOM they'll get thousands of internet points ... ;-) and will be immortalized in the JDOM code and commit messages.