Skip to content

XSDDocument.make() and XSLDocument.make()

Compare
Choose a tag to compare
@yegor256 yegor256 released this 08 Dec 08:23
· 504 commits to master since this release

This version fixed a few bugs and introduced two new static methods: XSDDocument.make() and XSLDocument.make(). They are useful when you need to create a reusable artifact, for example:

class Foo {
  private static final XSD SCHEMA = XSDDocument.make(
    Foo.class.getResourceAsStream("schema.xsd")
  );
}

This make() method re-throws IOException as a RuntimeException.