I have a schema I would like to use for validation and parsing of XML files that may originate from external sources. The schema in the language of relax ng. I'm having a hard time just setting the schema. My errors seem to originate from the SchemaFactory.newInstance static method.
String language = XMLConstants.RELAXNG_NS_URI; SchemaFactory factory = SchemaFactory.newInstance(language); <- IllegalArgumentException The docs say that there must be an implementation of the SchemaFactory for that language. "To be compliant with the spec, the implementation is only required to support W3C XML Schema 1.0. However, if it chooses to support other schema languages listed here, it must conform to the relevant behaviors described in this spec." The two schema languages listed in the docs are: W3C_XML_SCHEMA_NS_URI and RELAXNG_NS_URI. Is there not an relax ng implementation of SchemaFactory bundled with the android SDK? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

