edu.northwestern.at.utils.xml

## Class SchemaUtils

- java.lang.Object
- - edu.northwestern.at.utils.xml.SchemaUtils

-     public class SchemaUtils
      extends java.lang.Object

  XML Schema utilities.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SchemaUtils()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static Schema` | `parseSchema(java.lang.String schemaURI)` Get a parsed schema given a schema URI.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SchemaUtils

          public SchemaUtils()

  - ### Method Detail

    - #### parseSchema

          public static Schema parseSchema(java.lang.String schemaURI)
                                    throws org.jdom2.JDOMException,
                                           java.io.IOException

      Get a parsed schema given a schema URI.
      Parameters:
        `schemaURI` - SchemaURI as a string.
      Returns:
        Parsed schema. Null if schema cannot be parsed.
      Throws:
        `java.io.IOException` - if schema URI cannot be read.
        `org.jdom2.JDOMException` - if anything else goes wrong.

        Schema URIs ending in ".rng" (any case) are assumed to point to a Relax NG schema.

        Schema URIs ending in ".xsd" (any case) are assumed to point to a W3C schema.

        Schema URIs ending in anything else are unrecognized.