Note that there are some explanatory texts on larger screens.

plurals
  1. POXMLSchema validation on Android
    text
    copied!<p>I maintain the <a href="http://www.jdom.org/" rel="nofollow noreferrer" title="JDOM Project">JDOM project</a> and I am trying to 'certify' it on Android. Most things work fine, but XML Schema validation is proving problematic...</p> <p>My questions are: Is there a way to do XMLSchema validation on Android? If there is, how?</p> <p>Questions like this have been asked before, but no conclusive answer is given:</p> <ul> <li><a href="https://stackoverflow.com/questions/801144/android-schema-validation">Android schema validation</a></li> <li><a href="https://stackoverflow.com/questions/846748/xml-schema-validation-in-android">XML Schema Validation in Android</a></li> </ul> <p>This is what I currently 'know' (correct me if I am wrong)...:</p> <ul> <li>SchemaFactory.newInstance("<a href="http://www.w3.org/2001/XMLSchema" rel="nofollow noreferrer">http://www.w3.org/2001/XMLSchema</a>") - fails with IllegalArgumentException</li> <li>the default 'ExpatParser' in Android from the Harmony project does not support XMLSchema validation.</li> <li>It is possible to load Xerces in an Android app, and even parse with it, but not to do a <strong>Validating</strong> parse - when you try you get 'FATAL' Android exceptions causing application crashes.</li> </ul> <p>I have been working on this for some time now, and I have put together the following 'research':</p> <ul> <li><a href="https://github.com/hunterhacker/jdom/wiki/JDOM2-and-Android" rel="nofollow noreferrer">JDOM2 and Android</a></li> <li><a href="https://github.com/hunterhacker/jdom/wiki/JDOM2---Android-with-Xerces" rel="nofollow noreferrer">JDOM2 - Android with Xerces</a></li> </ul> <p>If anyone has any more information about XMLSchema Validation on Android I would greatly appreciate any input at all.</p> <p>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.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload