Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support javax.xml.validation #21

Open
GoogleCodeExporter opened this issue Sep 9, 2015 · 2 comments
Open

Support javax.xml.validation #21

GoogleCodeExporter opened this issue Sep 9, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

JDK 1.5 introduced the javax.xml.validation package.  We should support this.

Original issue reported on code.google.com by jjc.jclark.com on 27 Oct 2008 at 1:05

@GoogleCodeExporter
Copy link
Author

Started. Still to do:

testing
supporting Source that isn't SAXSource
factor out into separate module with its own lean 'n' mean jar
property for DatatypeLibraryFactory
ID/IDREF DTD compatibility support, including infoset modification
feasible schema support
documentation
resolve nits with JAXP spec
rename package from javax to jaxp

Original comment by jjc.jclark.com on 8 Nov 2008 at 10:23

  • Changed state: Started
  • Added labels: Priority-High
  • Removed labels: Priority-Medium

@GoogleCodeExporter
Copy link
Author

To validate a document with JAXP in Java 1.6, I had to add the following:

System.setProperty(SchemaFactory.class.getName() + ":" + 
XMLConstants.RELAXNG_NS_URI,
"com.thaiopensource.relaxng.jaxp.CompactSyntaxSchemaFactory");
SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);

This allows me to use Jing to validate an XML document against a Compact RELAX 
NG
schema. Full example attached.

Original comment by rwald...@gmail.com on 20 Jan 2010 at 6:54

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant