# Class XSSAXParsers

java.lang.Object
com.io7m.xstructural.vanilla.internal.XSSAXParsers

public final class XSSAXParsers extends Object
A provider of hardened SAX parsers.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `XSSAXParsers()`
  Construct a provider.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `XMLReader`
  `createXMLReader(Path baseDirectory, SXMLResources resources)`
  Create a XSD-validating XML reader.
  `XMLReader`
  `createXMLReaderNonValidating()`
  Create a non-validating XML reader.

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### XSSAXParsers

    public XSSAXParsers()
    Construct a provider.

- ## Method Details

  - ### createXMLReaderNonValidating

    public XMLReader createXMLReaderNonValidating() throws ParserConfigurationException, SAXException
    Create a non-validating XML reader.
    Returns:
      A new non-validating XML reader
    Throws:
      `ParserConfigurationException` - On parser configuration errors
      `SAXException` - On SAX parser errors

  - ### createXMLReader

    public XMLReader createXMLReader(Path baseDirectory, SXMLResources resources) throws Exception
    Create a XSD-validating XML reader.
    Parameters:
      `baseDirectory` - The base directory
      `resources` - A resource resolver
    Returns:
      A new XSD-validating XML reader
    Throws:
      `ParserConfigurationException` - On parser configuration errors
      `SAXException` - On SAX parser errors
      `Exception` - On other errors